https://open-source-silicon.dev logo
#analog-design
Title
# analog-design
v

Vicente Osorio

01/30/2023, 5:46 PM
Hello @Harald Pretl, I've got some issues while simulating a DC transfer function line in ngspice in the Docker container, but in a previous version of ngspice (ver. 36) it works perfectly. The problem is that it can't store a vector from the simulation because it "doesn't exist", but if I swap the simulation line for a transient, the problem won't appear. I wanted to make sure if the problem is related just to ngspice or if it is caused by the way ngspice is installed in the container (I understand from the Dockerfile that you have another version only for the libraries). If you could help me to understand the origin of this problem, I would be very happy. Let me know if you need the file or SPICE sim code as such 😄.
s

Stefan Schippers

01/30/2023, 9:30 PM
Try to add the
remzerovec
command before the write command:
.control
...
save all
dc vin 0 1.8 0.01
remzerovec
write testbench.raw
...
...
.endc
v

Vicente Osorio

01/30/2023, 10:03 PM
Still having the problem, the message says that "no such function as dc.v or dc.v(D) is not available."
s

Stefan Schippers

01/30/2023, 10:44 PM
Use
dc1.v(D)
v

Vicente Osorio

01/31/2023, 2:15 AM
It displayed the same message but now with
dc1
h

Harald Pretl

01/31/2023, 7:30 AM
@Vicente Osorio This sounds like an
ngspice
issue. Please file a ticket at https://sourceforge.net/p/ngspice/_list/tickets, the ngspice team is currently preparing the next version, and if there is a degrade in the latest version then they need to know so that they can fix it.
v

Vicente Osorio

01/31/2023, 2:24 PM
@Harald Pretl @Stefan Schippers Thank you for your help, I'll file a ticket.
s

Stefan Schippers

01/31/2023, 2:31 PM
@Vicente Osorio after the simulation is finished you can give the
display
command to see the list of saved variables. You can also give
echo $plots
to see the saved simulations. You can switch to a plot by using
setplot dc1