Single-Ended Operational Amplifier Characterization loosely based on AC²E.
With pip
:
$ pip install git+https://github.com/augustunderground/serafin.git
From source:
$ git clone https://github.com/augustunderground/serafin.git
$ pushd serafin
$ pip install .
A few things need to be adjusted to run the example:
- Correct PDK path in
./example/gpdk180.yml
- Derived statements for transistors in
./example/sym.scs
- Change
nmos
andpmos
name in./example/sym.scs
according to PDK
import serafin as sf
pdk = './example/gpdk180.yml'
net = './example/sym.scs'
ckt = './example/sym.yml'
sym = sf.operational_amplifier(pdk, ckt, net)
rsz = sf.random_sizing(sym)
prf = sf.evaluate(sym, rsz)