Hi everyone, I was trying to use the iic-jku osic tools docker image and it seems that for some reason, I can't view the waveforms using the integrated waveform viewer with xschem. I can plot them using the ngspice terminal, one by one....but that kinda gets complicated + if I want to scroll through the plot and find a specific point, like in [insert proprietary SPICE tool here] I can't do it with just the native ngspice viewer + I would just prefer gaw instead of having to type plot for all the waveforms I wanna see.....anyone know how to fix this? and see my plots with gaw, when I open it using the external viewer option it is empty. I have even used the .save all command, despite that it shows that the raw file for the waveform doesn't exist.
s
Stefan Schippers
05/22/2024, 1:40 PM
Modify the SPICE commands as follows:
.temp 75
.ic v(Vosc)=0
.control
save all
tran 1ps 0.2ns
remzerovec
write Oscillator.raw
.endc
👍 1
k
Koustubh
05/22/2024, 1:47 PM
Thanks, it works now. Though could you please explain, which zero length vector was being removed with
remzerovec
? so that I don't repeat such mistakes in the future.
s
Stefan Schippers
05/22/2024, 1:50 PM
the
remzerovec
removes empty vectors. Without this if there are zero length vectors (for example some body currents of transistors) the
write
statement fails. Since it is irritating to have
write
refusing to create the raw file because of zero length vectors I always add this statement before
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.