Design and simulation of a Miller-Compensated Two-Stage CMOS Operational Amplifier using Cadence Virtuoso. The design covers DC, AC, and Transient analyses, verified through PVT corner sweeps and Monte Carlo mismatch simulations.
Author: Eleana Zeri
Course: Electronics III — ECE, Aristotle University of Thessaloniki (AUTH)
Tool: Cadence Virtuoso (Schematic Editor + ADE L/XL)
- Project Overview
- Specifications vs. Achieved Performance
- Circuit Architecture
- Transistor Sizing
- Simulations & Verification
- How to Run / Reproduction
- Conclusion
This repository contains the complete design and simulation of a Two-Stage CMOS Operational Amplifier, developed as part of the Electronics III course at the Department of Electrical and Computer Engineering, Aristotle University of Thessaloniki (ECE AUTH).
A primary design goal was achieving closed-loop stability (Phase Margin > 45°) without sacrificing gain or bandwidth, under a tight 50 μA supply current budget from a low 1 V supply rail. The final design was verified across Process-Voltage-Temperature (PVT) corners and Monte Carlo statistical mismatch to validate robustness.
Key design objectives:
- Maximize voltage gain while staying within the power budget
- Ensure PM > 45° through Miller compensation
- Achieve a slew rate suitable for fast analog signal processing
- Demonstrate robustness to manufacturing variability and temperature extremes
All specifications were met at the nominal operating point (TT corner, 27°C, VDD = 1 V).
| Parameter | Symbol | Specification | Achieved | Status |
|---|---|---|---|---|
| Supply Voltage | VDD | 1 V | 1 V | Pass |
| Load Capacitance | CL | 4 pF | 4 pF | Pass |
| Supply Current | Isup | ≈ 50 μA | 48.12 μA | Pass |
| DC Gain | Av | > 30 dB | 53.07 dB | Pass |
| Gain-Bandwidth Product | GBW | > 500 kHz | 6.685 MHz | Pass |
| Phase Margin | PM | > 45° | 50.68° | Pass |
| Slew Rate | SR | ≥ 1 V/μs | 6.766 V/μs | Pass |
| Input Offset Voltage | Voffset | < 20 mV | 0.118 mV | Pass |
The amplifier is organized into three functional blocks, implemented entirely in CMOS technology.
The bias block generates stable, supply-independent reference voltages and currents using current mirrors. It sets the quiescent operating points for both amplifier stages, ensuring that all transistors remain in saturation under nominal conditions.
The first stage is a differential pair with an active load, which provides the bulk of the open-loop voltage gain:
- Input pair: NMOS differential pair (matched transistors) for the amplifying function
- Active load: PMOS current mirror load, converting the differential signal to a single-ended output
- This stage exploits both the high transconductance (gm) of NMOS devices and the high output impedance (ro) of the mirror load to maximize gain
The second stage is a common-source amplifier that provides additional voltage gain and output drive capability:
- Driver transistor: PMOS common-source device (PM4)
- Load transistor: NMOS active load (NM9)
- Miller Compensation: A feedback capacitor (~2 pF, multiplier = 66) is connected between the output of the second stage and the output of the first stage. This introduces a dominant pole splitting effect, pushing the first pole to a lower frequency and the second pole to a higher frequency, thereby securing Phase Margin > 45° across all operating conditions.
The Miller capacitor was a critical design decision. Initial simulations showed a Phase Margin of only 34.7°, which violated the stability specification. Doubling the capacitance to 2 pF raised the PM to 50.68° while preserving the generous GBW of 6.685 MHz.
All transistors were sized to satisfy the specified bias currents and the required small-signal performance metrics (gm, ro). The final sizing is summarized below.
| Transistor | Role | W / L | Drain Current (ID) |
|---|---|---|---|
| NM8 | Bias Reference | 5 μm / 2 μm | ≈ 4.5 μA |
| NM6 | Differential Tail Current | 15 μm / 2 μm | ≈ 13.2 μA |
| NM9 | Output Stage Active Load | 30 μm / 2 μm | ≈ 30.4 μA |
| PM4 | Output Stage Driver | 50 μm / 2 μm | ≈ 30.4 μA |
All devices operate in saturation under nominal conditions, as verified by DC analysis. Long channel lengths (L = 2 μm) were chosen to maximize output impedance and suppress channel length modulation effects, boosting the intrinsic gain (gm·ro) of each stage.
All simulations were performed using Cadence ADE L / ADE XL. The following sections present the key results with corresponding simulation outputs.
Objective: Verify biasing, saturation of all transistors, and total supply current compliance.
| Metric | Result |
|---|---|
| Total Supply Current (Isup) | 48.12 μA |
| Bias Current (NM8 branch) | ≈ 4.5 μA |
| First Stage Tail Current | ≈ 13.2 μA |
| Second Stage Current | ≈ 30.4 μA |
| All transistors | In Saturation |
The total current of 48.12 μA is comfortably within the 50 μA budget, leaving a small headroom for PVT variations.
Figure 1a: DC testbench with supply current measurement — Isup = 48.12 μA.
Figure 1b: DC operating point annotation — all transistors confirmed in saturation.
Objective: Extract open-loop gain, GBW, and Phase Margin via loop gain (stb) or open-loop AC analysis.
| Metric | Result |
|---|---|
| DC Gain | 53.07 dB |
| Gain-Bandwidth Product (GBW) | 6.685 MHz |
| Phase Margin (PM) | 50.68° |
| Unity Gain Frequency | ~6.7 MHz |
Miller Compensation Sizing:
| CMiller | Phase Margin | Status |
|---|---|---|
| ~1 pF (initial) | 34.7° | Fail — PM spec not met |
| ~2 pF (final) | 50.68° | Pass |
Doubling the Miller capacitor created sufficient pole splitting to meet the 45° PM target. The GBW of 6.685 MHz — more than 13× the minimum specification — demonstrates that stability was achieved without sacrificing bandwidth.
Figure 2a: Open-loop Bode plot showing 53.07 dB DC gain, 6.685 MHz GBW, and 50.68° Phase Margin.
Figure 2b: Stability (STB) analysis summary — loop gain, GBW, and Phase Margin tabulated.
Figure 2c: ADE Calculator expressions used to extract gain, GBW, and PM from simulation data.
Objective: Measure the large-signal Slew Rate (SR) using a full-swing pulse input.
Setup: Unity-gain feedback configuration, input pulse from 0 V → 1 V.
| Metric | Result |
|---|---|
| Slew Rate (SR) | 6.766 V/μs |
| Input Pulse Range | 0 V → 1 V |
| Configuration | Unity-gain (voltage follower) |
The measured SR of 6.766 V/μs is nearly 7× the minimum specification of 1 V/μs. The transient response shows minimal overshoot and rapid settling, confirming that the design operates correctly at large signal amplitudes.
Figure 3a: Transient testbench — unity-gain configuration with 0V→1V pulse input.
Figure 3b: Transient response to a 0V–1V pulse input. Slew rate measured on the rising edge.
Figure 3c: ADE Calculator SR measurement — rising and falling edge slopes extracted automatically.
Objective: Validate robustness across Process, Voltage, and Temperature extremes.
Sweep parameters:
- Process corners:
tt(typical),ff(fast-fast),ss(slow-slow) - Temperature range: −40°C to +125°C
- Supply voltage: nominal 1 V
| Corner | Temperature | DC Gain | GBW | Phase Margin | Status |
|---|---|---|---|---|---|
| tt | 27°C | 53.07 dB | 6.685 MHz | 50.68° | Pass |
| ff | −40°C | — | — | — | Pass |
| ff | +125°C | — | — | 44.35° | Marginal |
| ss | −40°C | — | — | — | Pass |
| ss | +125°C | — | — | — | Pass |
Worst-case PM: 44.35° at the hot/fast (ff, 125°C) corner — a deviation of only 1.4% from the 45° specification. This is a negligible margin that confirms the design's inherent robustness and is well within typical engineering tolerance for analog design at extreme process corners.
Figure 4a: ADE XL PVT corner sweep — full results table across all process/temperature combinations.
Figure 4b: Phase Margin across all PVT corners. Worst-case deviation is 1.4% at the hot/fast corner.
Figure 4c: DC Gain (A₀) and GBW variation across process corners and temperature range.
Figure 4d: Supply current (Isup) variation across temperature — power budget maintained across all corners.
Figure 4e: Input offset voltage and Slew Rate variation with temperature across process corners.
Figure 4f: Overlaid Bode plots across all PVT corners — gain and phase curves remain tightly grouped.
Objective: Quantify the statistical distribution of input offset voltage (Voffset) due to transistor mismatch.
Setup: 200+ Monte Carlo iterations with device mismatch models enabled.
| Statistical Metric | Value |
|---|---|
| Mean Offset (μ) | ≈ 0.118 mV |
| Standard Deviation (σ) | ≈ 0.7 mV |
| Worst-case offset observed | < 2.5 mV |
| Specification limit | < 20 mV |
| Margin to spec (worst case) | > 8× safety margin |
The Monte Carlo results demonstrate excellent offset performance. With σ ≈ 0.7 mV and a worst-case statistical result below 2.5 mV, the design meets the 20 mV offset specification with more than 8× margin — even accounting for 3σ (2.1 mV) and realistic tail-of-distribution outliers.
Figure 5a: Monte Carlo results — process variation sweep showing key parameter distributions.
Figure 5b: Monte Carlo mismatch analysis across corners — Voffset distribution remains tight.
Figure 5c: Combined process + mismatch Monte Carlo. σ ≈ 0.7 mV, worst-case < 2.5 mV, well within the 20 mV spec.
Prerequisites: Cadence Virtuoso suite with access to ADE L or ADE XL, and a valid process design kit (PDK) compatible with the library used in this design.
- Launch Cadence Virtuoso from your terminal:
virtuoso & - In the Library Manager, navigate to the project library.
- Open the cell view:
OpAmp_TwoStage → schematic.
- Launch ADE L from the schematic window:
Launch → ADE L. - Set analyses: DC with
Save Operating Point = yes. - Click Run Simulation (Shift+R).
- In the results browser, annotate VDS, VGS, Vth to confirm all transistors are in saturation.
- In ADE L, add AC analysis: frequency sweep from 1 Hz to 1 GHz (logarithmic, 100 pts/dec).
- Set the input source AC magnitude to 1.
- Run simulation and plot
vdb(vout)(magnitude in dB) andvp(vout)(phase in degrees). - Use the Marker Tool to read DC gain at low frequency and extract GBW at the 0 dB crossing.
- Insert a
stb(stability) probe in the feedback loop. - Add STB analysis in ADE L.
- Plot
loopGainmagnitude and phase; read the Phase Margin at the 0 dB crossing.
- Configure the input source as a PULSE: V1 = 0 V, V2 = 1 V, rise/fall time = 1 ns, PW = 5 μs, period = 10 μs.
- Set the amplifier in unity-gain (voltage follower) configuration.
- Add TRAN analysis: stop time = 20 μs, step = 1 ns.
- Plot
v(vout)and use the slope measurement tool on the rising edge to extract SR in V/μs.
- Open ADE XL and import the ADE L state.
- Define a Corners specification with variables:
process = {tt, ff, ss}andtemp = {-40, 27, 125}. - Add output expressions:
pm(Phase Margin),dcGain,gbw,isup. - Click Run All and review the worst-case results table.
- In ADE XL, select Monte Carlo analysis type.
- Enable Device Mismatch models; set number of runs = 200.
- Add output expression:
voffset = v(vout_dc) - vin. - Run and generate the histogram. Export σ and worst-case values.
This project demonstrates the complete design flow for a Miller-Compensated Two-Stage CMOS Operational Amplifier, from hand calculations and transistor sizing through full Cadence Virtuoso simulation and statistical verification.
Key achievements:
- DC Gain of 53.07 dB — exceeding the 30 dB target by 23 dB, achieved through careful transistor biasing in saturation and maximizing intrinsic gain (gm·ro)
- GBW of 6.685 MHz — over 13× the minimum specification, providing substantial bandwidth headroom
- Phase Margin of 50.68° — secured through a deliberate Miller capacitor design iteration (1 pF → 2 pF), converting an unstable design (PM = 34.7°) into a robustly stable one
- Slew Rate of 6.766 V/μs — nearly 7× the specification floor, ensuring fast large-signal response
- PVT robustness — worst-case Phase Margin of 44.35° (1.4% below spec) at the extreme ff/125°C corner, demonstrating excellent design margins across all realistic operating conditions
- Monte Carlo offset: σ ≈ 0.7 mV — providing an >8× safety margin against the 20 mV offset specification, confirming that mismatch effects are well controlled
Electronics III Project — Electrical & Computer Engineering, Aristotle University of Thessaloniki (ECE AUTH)
Eleana Zeri | 2025–2026

