Post processing the ngspice simulation outputs using Python

  • make sure the simulation raw files are in binary format.

Python script

PyPlot_C5_inverter.py

Transient analysis
trise:  220.9172 ps
tfall:  206.2974 ps
tdelay:  38.3503 ps
VTC analysis
Vsw:  2.4591 V
Vih:  2.858 V
Voh:  4.4045 V
Vil:  1.9659 V
Vol:  0.5603 V
The max DC gain is 16.7198(V/V) at VIN=2.4720(V)