Darío San Martín Molina02/11/2022, 7:21 PM
However in my case I have a relatively small circuit which only uses two types of devices, sky130_fd_pr__nfet_01v8 and sky130_fd_pr__pfet_01v8, so I wonder is it possible to get it to fetch only those devices used in the circuit? Even telling it somehow. That would speed things up a lot, in particular for quick iteration (optimization) over a circuit. Otherwise every time I make a small change on the circuit the sim takes a few minutes to run, which is quite impractical. I'm pretty sure somebody has encountered this issue before. Is there a way to do this, to speed up the simulation cycle speed? Thanks
.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
Arman Avetisyan02/11/2022, 9:09 PM
Stefan Schippers02/12/2022, 1:48 AM
file in the directory where ngspice runs with following contents?
this speeds model file parsing a lot, from several minutes to ~30 seconds on my very old laptop.
set ngbehavior=hsa set ng_nomodcheck
Darío San Martín Molina02/12/2022, 5:29 PM
in the folder where my netlist resides which is the folder from where I launch ngspice (in batch mode from terminal with ngspice -b etc...) and no speed improvement. So, the
file only helps if I run the sims from Xschem?
Stefan Schippers02/12/2022, 7:33 PM
Darío San Martín Molina02/12/2022, 9:10 PM
darunix@darunix-VirtualBox:~/GitSandboxes/VCO/vco/xschem$ time ngspice -b -o ./mycircuit_tb.log ./mycircuit_tb.spice ****** ** ngspice-31 : Circuit level simulation program ** The U. C. Berkeley CAD Group ** Copyright 1985-1994, Regents of the University of California. ** Please get your ngspice manual from <http://ngspice.sourceforge.net/docs.html> ** Please file your bug-reports at <http://ngspice.sourceforge.net/bugrep.html> ** Creation Date: Sun Oct 27 09:07:06 UTC 2019 ****** Batch mode Comments and warnings go to log-file: ./mycircuit_tb.log real 3m43,673s user 1m47,017s sys 0m2,693s
Stefan Schippers02/13/2022, 2:07 AM
Darío San Martín Molina02/14/2022, 3:36 PM