Setup

Imports

PySpice

Compiled libraries for ngspice 36 are provided compiled for either CentOS 7 or Ubuntu20.04 so simulation can be performed without needing to install ngspice. One can comment out the setting of the NGPSICE_LIBRARY_PATH environment variable and then ngspice executable in the path will be used to find the shared library. When using own ngspice it is adviced to use version 35 or later to speed up the Also the provided .spiceinit file in the running directory is needed to get this speed up.

klayout

Bandgap design

3.3V

1.8V low Vt

1.8V reg. Vt

Write out results to gds file