7. Designing using pygmid tool

7.1. Pygmid installation and configuration

pygmid is a Python 3 version of the gm/ID starter kit by Prof. Boris Murmann of Stanford University. The package also offers some scripts from the Paul Jesper’s and Boris Murmann’s book entitled: “Systematic Design of Analog CMOS Circuits: Using Pre-Computed Lookup Tables” To be used with IHP-Open-PDK it latest release hosted on github.

After successful cloning of the repository you can execute:

cd pygmid
python3 install .

7.2. Device characterization using pygmid

The device characterization is done once per technology according to the configuration. The example configuration file is stored under the following location tests/pygmid/sweep/IHP130nm.cfg in the ngspice branch. In order to characterize the mosfet devices run the following command:

python3 -m pygmid --mode sweep --config ~./tests/pygmid/sweep/IHP130nm.cfg

Tip

Since the pygmid tool calls ngspice in the cwd the psp103_nqs.osdi file has to be present in the same directory.

7.3. Basic usage of pygmid