I’ve installed xschem and ngspice and I get errors when running ngspice after netlisting. The issue is that there is a “.save i(v1)” in my spice netlist that ngspice doesn’t like. Any ideas how to stop xschem spitting this out. My sch has no commands that would do this and I followed Stephans tutorial to the letter. Just curious if anyone here has experience this. I’ve spend over a day trying to figure this out. Rebuilt both tools and used different repos. Same result.
BTW if I hand edit the netlist spice file and remove the .save i(v1) it works fine. However I don’t want to be editing this file every time a netlist changes and I want to simulate. PITA
@@ZeroToASICcourse No. So as it turns out the VSource symbol by default has a “.save (@v)” attribute in it and this gets dumped into the netlist. The other Voltage Source symbols don’t have this. I’ve done a load of SPICE stuff in the past and wasn’t expecting a released symbol to have this in. I suspect Stephan was doing an experiment and it got accidentally checked in.
It’s a “.save. ….something attribute”. Can’t recall off hand what exactly it is now since I’m not in front of the tools etc. Descend into the symbol and press “q” on the keyboard to see it. I put a “*” in front of it to comment it out.