Pritesh Ps
04/14/2023, 2:19 AMPritesh Ps
04/14/2023, 2:21 AMLuis Henrique Rodovalho
04/14/2023, 6:43 AMStefan Schippers
04/14/2023, 7:57 AMStefan Schippers
04/14/2023, 8:10 AMLuis Henrique Rodovalho
04/14/2023, 8:19 AMStefan Schippers
04/14/2023, 8:38 AMLuis Henrique Rodovalho
04/14/2023, 8:57 AMStefan Schippers
04/14/2023, 9:00 AMtstep
parameter in a .tran
should always be a 'suggested' timestep, the simulator must choose the actual timestep depending on the speed of the signals. Attached the modified schematic with Xyce commands in addition to ngspice. SO it seems ngspice has some problems simulating a low frequency circuit for a long time, I will try to run the simulation in ngspice with a very low tstep to see if the problem goes away.Stefan Schippers
04/14/2023, 10:32 AMStefan Schippers
04/14/2023, 10:37 AMPritesh Ps
04/14/2023, 10:58 AMStefan Schippers
04/14/2023, 11:10 AMPritesh Ps
04/14/2023, 11:26 AMPritesh Ps
04/14/2023, 11:44 AMPritesh Ps
04/14/2023, 12:10 PMStefan Schippers
04/14/2023, 12:16 PMAnd only changed time step to 1u i.e. 'tran 1u 5m uic ' to reduce the simulation time rather than using 1nSec. and I got as following image.
At this point i'm totally not able to understand, what's the issue for not getting proper response
This is your original problem. If you reset the timestep back to 1us you get back the original problem.
This is a problem with ngspice and should be filed as a bug. May be i can manage to create a super simple test case (a frequency divider) and submit the problem.
For the time being there is no alternative, you have to use 1ns tstep parameter in .tran and wait...
... or use XyceStefan Schippers
04/14/2023, 12:21 PM.options method=gear trtol=1
this will probably fix the simulation even with 1us time step.Pritesh Ps
04/14/2023, 1:26 PMStefan Schippers
04/14/2023, 1:51 PMdevices/spice_probe.sym
symbols attached to nets.
nets with this symbol attached will be saved in the raw file. Nets without this symbol will not be saved. I used these symbols to save only the nets i am interested in and removing the 'save all' line from the commands. This will reduce the size of the raw file considerably and make the simulation run a bit faster.Pritesh Ps
04/14/2023, 2:01 PMChris
04/14/2023, 7:36 PMMatthew Siyu Chen
05/31/2024, 11:59 PMStefan Schippers
06/04/2024, 4:17 PMsave all
and .option savecurrents
(if present) and do a save
of interesting nodes only.