comparator

Run StrongArm dynamic comparator simulations with ngspice and Python.

13|1|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/Arcadia-1/analog-circuit-skills --skill comparator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comparator
Source: https://github.com/Arcadia-1/analog-circuit-skills/tree/main/comparator
Command: npx skills add https://github.com/Arcadia-1/analog-circuit-skills --skill comparator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, matplotlib, scipy, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Simulates and analyzes StrongArm dynamic comparators with ngspice and Python to provide end-to-end insights into speed, noise, offset, and power for design sizing.

Core Features & Use Cases

  • Transient waveform simulations to understand VX nodes, latch regeneration, and output timing.
  • Noise extraction using probit methods and transfer-curve fitting to derive sigma_n and FOM values.
  • Parameter sweeps for transistor widths and topology comparisons (StrongArm vs Miyahara) to study speed–power–noise trade-offs.
  • Automated reporting including plots, logs, and FOM reports for engineering decisions.

Quick Start

Run python comparator/scripts/run_tran_strongarm_comp.py to execute the full StrongArm comparator suite.

Frequently Asked Questions about comparator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simulate StrongArm comparator transient waveforms to analyze latch regeneration?

You can run StrongArm comparator transient waveform simulations using ngspice and Python to analyze VX nodes, latch regeneration, and output timing by executing the run_tran_strongarm_comp.py script.

What is the best way to extract noise and sigma values for a dynamic comparator?

Noise extraction for a dynamic comparator is performed using probit methods and transfer-curve fitting in Python to derive sigma_n and calculate Figure of Merit (FOM) values.

Can I sweep transistor widths to compare StrongArm and Miyahara topology trade-offs?

Yes, you can run parameter sweeps for transistor widths and perform cross-topology comparisons between StrongArm and Miyahara configurations to evaluate speed, power, and noise trade-offs.

Do I need ngspice on PATH to run comparator simulations and generate reports?

Yes, ngspice must be on PATH along with Python 3, numpy, matplotlib, and scipy to execute the simulation scripts and generate automated plots, logs, and FOM reports.

How does automated timing and ramp analysis work across different PTM nodes?

Timing and ramp analyses are automated by running the repository's Python scripts, which interface with ngspice to simulate and compare comparator performance metrics across different PTM nodes.