Hello all!
I have a perhaps rather odd question for ngspice: I am running a loop of transient simulations and I was wondering if there is a way I can force ngspice to clear the data after I write the data out? I would like to run longer simulations (without resorting to python), but I’m running to the memory constraint of my machine.
I have looked at
unset
and
unlet
attempting to release a whole plot and
unset *
but that doesn’t seem to work. Do you have any ideas?
Thanks a lot!
y
yrrapt
09/16/2022, 10:29 PM
I think you may want to use
destroy
m
Micah Tseng
09/16/2022, 10:32 PM
@yrrapt That’s it! Thank you!!
s
Stefan Schippers
09/16/2022, 10:33 PM
Also ensure the following lines are present in the .
spiceinit
file that must reside in the directory where the simulator is running (and where netlist is created):
set ngbehavior=hsa
set ng_nomodcheck
The second line in particulsr reduces memory usage dramatically, even by 10x on big designs.
m
Micah Tseng
09/16/2022, 10:34 PM
@Stefan Schippers Thank you! Is there a way to verify that ngspice has loaded .spiceinit?
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.