# Setup¶

## 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.

## setup¶

Currently code is stored locally in file ADC_support.py to speed up co-development of the code and this notebook. Code in the file can be reloaded by executing cell below without the need to restart the kernel.

common library to store generated ADC cells

common setup for verification; verify ADC operation at 100MHz clock