FOSSlab

Chapter 8 of 14 · about 30 min

Parasitic extraction and post-layout simulation

The layout adds wire capacitances that the schematic does not have. Post-layout simulation tells what they cost.

1. Extract

FOSSLab > Extract parasitics (PEX) or the PEX button. Magic reads the layout and writes opamp_pex.spice: the transistors (one per finger: 70 for the reference layout) and every capacitance between wires and to substrate (424 here). It appears as the view Extracted + parasitics.

2. Simulate with the extracted view

Select the testbench tb_opamp_ac, right-click > Run > Simulate with extracted views… and tick opamp. The testbench is not changed: FOSSLab replaces the op-amp’s schematic by its extracted netlist in the simulation, connecting the pins by name (the extractor orders them its own way). This is what choosing the extracted view in Cadence’s hierarchy editor does. From the command line: fosslab sim opamp_tut tb_opamp_ac --extracted opamp.

3. What the layout costs

SchematicPost-layoutChange
DC gain57.61 dB57.61 dBnone
Unity-gain frequency16.17 MHz15.71 MHz−2.9 %
Phase margin60.4°58.6°−1.8°
Slew rate (rise / fall)10.6 / 10.3 V/µs10.4 / 9.9 V/µs−2 to −4 %
Offset1.73 mV1.72 mVnone

DC results do not change (wires add no DC path); everything that depends on capacitance does. The extra capacitance at the first stage’s output and at OUT lowers the second pole: less bandwidth and phase margin. All specifications are still met.