Chapter 1 of 14 · about 10 min
The analog design flow, with free tools
This tutorial takes one circuit, a two-stage CMOS operational amplifier (the classic design of Allen & Holberg, CMOS Analog Circuit Design), through the complete analog design flow: schematic, simulation, a behavioural model, layout, verification and post-layout simulation, then process corners and Monte Carlo. It is the same journey as the course’s original Cadence tutorial, now made only with free and open-source software and a real, public 130 nm process: IHP SG13G2.
Libraries, cells and views
Designs are organised as in Cadence. A library holds cells (an op-amp, a current mirror, a testbench). Each cell has several views, each one a different description of the same thing, edited with its own program:
| View | What it is | File | Program |
|---|---|---|---|
| schematic | the circuit: devices and wires | cell.sch | xschem |
| symbol | the box that represents the cell in a bigger schematic | cell.sym | xschem |
| veriloga | a behavioural model, as equations | cell.va | text editor + OpenVAF |
| layout | the drawing the factory builds from | cell.gds | KLayout |
| extracted | the circuit read back from the layout (LVS) | generated | KLayout LVS |
| extracted + parasitics | the same, with wire capacitances (PEX) | generated | Magic |
The FOSSLab Library Manager shows libraries, cells and views side by side and opens every view in the right program, already set up for the IHP process. From inside the schematic editor and the layout editor, a FOSSLab menu jumps to the other views of the same cell: from a schematic to its layout and back, to the whole design hierarchy, to the verification results.
From Cadence to free tools
| Job | Cadence (original tutorial) | This tutorial |
|---|---|---|
| Design manager | Library Manager | FOSSLab Library Manager |
| Schematic and symbol | Virtuoso Schematic (Composer) | xschem |
| Simulation | Spectre + ADE | ngspice, driven from xschem or FOSSLab |
| Waveforms | ViVA / WaveScan | xschem graphs, gaw |
| Behavioural model | Verilog-A in Spectre | Verilog-A compiled by OpenVAF, run by ngspice |
| Layout | Virtuoso Layout (XL), PCells | KLayout with IHP’s PCells |
| DRC, LVS | Assura | KLayout with IHP’s rule decks |
| Parasitic extraction | Assura RCX | Magic |
| Process | AMS 0.35 µm (HIT-Kit) | IHP SG13G2 130 nm, open PDK |
The flow, step by step
- Schematic capture of the op-amp, with input/output pins, and its symbol.
- A testbench: a separate cell that uses the op-amp’s symbol, adds supplies and sources, and tells the simulator what to do. Simulate; compare with the specifications; go back to the schematic until they are met.
- A Verilog-A model of the op-amp, for fast system-level simulations, checked against the transistor-level circuit.
- The layout, with the process’s parameterised cells (PCells).
- DRC (design rule check): is it manufacturable? LVS (layout versus schematic): is it the same circuit?
- Parasitic extraction and post-layout simulation: how much do the wires change the performance?
- Corners and Monte Carlo: does it still work when the process, the supply and the temperature move?
