@Stefan Schippers Is there any setting in xschem-ngspice to increase
TRAN
simulation runtime by using more CPU cores or multi threading ?
Any option to reduce
.raw
file output size? For certain simulation it is forming into GB which takes time to load waveforms.
s
Stefan Schippers
04/17/2024, 8:56 AM
raw size is reduced by saving a selected set of variables. This means:
⢠do not use
.options savecurrents
⢠do not use
save all
(or
.save all
)
⢠explicitly tell what you want to save, by adding
save v(xxx) i(xxx) .....
lines
To indicate voltage nodes you want to save you can use the
spice_probe.sym
component. This will automatically add the .save ... instruction for you.
š 1
Stefan Schippers
04/17/2024, 8:59 AM
You should have a
.spiceinit
file in the directory where ngspice runs simulations. this line:
set num_threads=4
tells ngspice to use more threads.
Don't be too optimistic, the solver is not parallel, increasing threads will give no benefit for the solver. More threads are used to evaluate device equations that usualy takes 50% of total simulation time. Above 4 threads there are no significant advantages in my tests.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.