Why Spectre Fails to Converge
1. Hunt Down Floating Nodes and Open Bulks
- MOSFET Bulk Pins: Tie every NMOS body to gnd! (or its low rail) and every PMOS body to vdd! (or its well). One floating bulk pin breaks the DC matrix.
- AC-Coupled Gates: A gate fed only through a coupling cap has no DC bias path. Add a big bias resistor (10 MΩ to 1 GΩ) or a weak diode-tied MOS device to set its DC point.
- Series Current Sources: Two ideal current sources pushing into one high-Z net will drive that node voltage toward infinity.
2. Pick nodeset Over ic for DC Loops
- Start with nodeset: Open ADE (Simulation -> Convergence Aids -> Node Set) and hint one side of a latch (such as Q = 1.8V, Q_bar = 0V). Spectre uses that guess to find the start point, then lets go so the final bias stays exact.
- Save ic for transient runs: Initial conditions (ic) clamp a node hard during the DC step. Leaving ic on during a DC or AC sweep can skew your bias currents.
3. Turn On homotopy and Check gmin
4. Fix "Timestep Too Small" in Transient Runs
- Avoid Zero-Edge Pulses: Ideal vpulse sources with tr = 0 or tf = 0 push huge current spikes through Cgd. Always set real edge times, like tr = 50p and tf = 50p.
- Swap the Solver Mode: The default trapezoidal rule can ring on ideal coils or switched caps. Switch to method = gear2only in Transient Options to damp fake ringing.
- Smooth Verilog-A Jumps: Hard if/else edges in Verilog-A blocks break slopes that the solver needs. Wrap steps with transition() or smooth tanh() curves.
- Kick-Start Clocks and Tanks: Symmetric ring clocks and LC tanks can freeze at VDD/2 in noise-free runs. Add a short start pulse or use skipdc=yes with ic on one node.