Module for handling and analyzing spice netlists
Project description
SPATK - Spice Analysis ToolKit
Tools for handling and analyzing Spice netlists
- Provides an easy interface to netlist manipulation.
- Uses Python standard library only.
- Easy to extend.
Example
* mynetlist.spice
C1 vdd vss 1n
R1 net1 net2 1k
XM1 out in vdd vdd pmos_3p3 L=1u W=1u nf=1
XM2 out in vss vss nmos_3p3 L=1u W=1u nf=1
import spatk
cir = spatk.Circuit("mynetlist.spice")
for mos in cir.mosfets:
print(mos.model, mos.args.w)
pmos_3p3 1u
nmos_3p3 1u
Installation
Clone the repository into your preferred location and make it available in your Python environment using:
pip intall .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spatk-1.0.0.tar.gz
(49.7 kB
view hashes)
Built Distribution
spatk-1.0.0-py3-none-any.whl
(41.1 kB
view hashes)