Inderjit Singh Dhanjal
04/01/2024, 4:22 PMBrady Etz
04/01/2024, 4:29 PMsave
statement in your spice control block? Please try adding a line reading save din0 din1 din2 ...
with the voltages and currents you wish to save, and which you need for analysis. Otherwise, ngspice will try saving everything, which occupies a lot of memory and slows down the sim.Inderjit Singh Dhanjal
04/01/2024, 4:30 PMBrady Etz
04/01/2024, 4:32 PMInderjit Singh Dhanjal
04/01/2024, 4:34 PMInderjit Singh Dhanjal
04/01/2024, 4:37 PMBrady Etz
04/01/2024, 4:42 PMsave
statement before the tran
statement, and all inside the .control
block. I'll attach an example.Brady Etz
04/01/2024, 4:43 PMv( )
braces. I just use it to be explicit.Inderjit Singh Dhanjal
04/01/2024, 4:46 PMInderjit Singh Dhanjal
04/02/2024, 8:19 AMBrady Etz
04/02/2024, 1:12 PMdisplay
. This will display a list of everything Ngspice saved during the sim. The longer this list is, the more work Ngspice is doing to log data during the transient sim.
What happens if you change the second line in your spice code block from save all
to save out10bitdac
? If you run the display
command after this sim, you should only see time
and out10bitdac
listed.Brady Etz
04/02/2024, 1:19 PMset num_threads=##
in the .spiceinit file, where you replace ##
with the number of threads you can give Ngspice. The location for this file is in the home directory where Xschem has created a .xschem
folder. For me: ~/.xschem/simulations/.spiceinit
.Inderjit Singh Dhanjal
04/02/2024, 1:22 PMInderjit Singh Dhanjal
04/02/2024, 3:03 PMInderjit Singh Dhanjal
04/02/2024, 3:08 PMInderjit Singh Dhanjal
04/02/2024, 3:28 PMInderjit Singh Dhanjal
04/02/2024, 4:07 PMInderjit Singh Dhanjal
04/02/2024, 4:58 PM