Free as in Freedom: Codeberg.org. Create your repos and join us!
Join Donate
Spectre2Spice netlist converter.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thomas Benz ff612defea Initial commit. 1 week ago
bin Initial commit. 1 week ago
example Initial commit. 1 week ago
spectre2spice Initial commit. 1 week ago
tech_example Initial commit. 1 week ago
.gitignore Initial commit. 1 week ago
LISENCE Initial commit. 1 week ago
README.md Initial commit. 1 week ago
setup.py Initial commit. 1 week ago

README.md

Spectre2Spice

This is the home of Spectre2Spice.

Description

Spectre2Spice is a standalone application to translate netlists from the Cadence Spectre Circuit Simulator format to SPICE.

Usage

spectre2spice -h

Install

Install:

python3 setup.py install --user

Install by creating symlinks:

python3 setup.py develop --user

Example netlist

An example netlist is included to test Spectre2Spice. Run the following command to start the translation:

spectre2spice example/ my_top.scs output/ tech_example/

With logging activated:

spectre2spice example/ my_top.scs output/ tech_example/ --log_path logs/

Run the translated netlist

ngspice output/my_top.sp

Once ngspice is running type run the simulation like this:

op

With

print all

the node voltages can be displayed. Expected is:

v_v0#branch = -8.90967e-05
v_v1#branch = 0.000000e+00
vd = 2.409033e+00
vdd = 3.300000e+00
vg = 2.000000e+00