I'm running a transient, then dc analysis: `.param...
# xschem
m
I'm running a transient, then dc analysis:
.param mc_mm_switch=0
.control
save all
tran 500p 2u uic
set appendwrite
write testbench.raw
set appendwrite
dc Vcm 0 1.8 0.01
write testbench.raw
*quit 0
.endc
.end
when spice finishes, I can plot mod_r and bus
image.png
but I can't find a way to do that inside xschem
the mod_r signal is not in the signal list
image.png
I've tried changing the dataset from -1 to others, but it doesn't seem to make a difference
I guess it's an issue with saving the signals
I tried this too:
writing to a different test bench file works
👍 1
s
@Matt Venn can you send the complete .spice file? also try to add a
remzerovec
line before the write instructions.
m
why the remzerovec? I thought that was just for performance issues on big files - or does it effect other things
s
In some cases if a vector contains no data (for example body current of a mosfet) instead of just skipping it ngspice botches and does not write the raw file. I consider this a ngspice bug. However adding
remzerovec
before
write
fixes the issue (i always add this line before write).
1
m
thanks!
that fixes the issue I had
I spoke too soon, I had the dataset set in the graph window
setting it back to testbench.raw and the signals are gone again
s
@Matt Venn I also saw a problem in your commands. If you have
set appendwrite
before the first
write
command in a testbench you will keep appending data to an ever growing raw file and xschem will load the first sections so you don't see the last simulation data but only the first datasets.
---
.param mc_mm_switch=0
.control
save all
tran 500p 2u uic
set appendwrite
write testbench.raw
set appendwrite
dc Vcm 0 1.8 0.01
write testbench.raw
*quit 0
.endc
m
will check
have just startd to write everything to its own file to help debug
l
my pattern is like
Copy code
set f=some_circuit
shell rm -v {$f}*
set appendwrite

...

tran whatever
write {$f}-tran.raw
tran again
write {$f}-tran.raw

dc whatever
write {$f}-dc.raw
so i can freely add and remove analyses without worry
I have also made very heavy use of the new shift-T shortcut to disable/enable code_shown.sym to toggle between different experiments. Thanks again @Stefan Schippers