Hello, i am trying to plot with internal waveform ...
# xschem
r
Hello, i am trying to plot with internal waveform graph two signal in a transient simulation. I already do this things several time, but in this testbench is not working. The file is generated, i con plot the signal with terminal, but when i want to load .raw file appear... "raw_read(): failed to open file /home/roberto/.xschem/simulations/tb_schmitt_strigger.raw for reading". Any idea? .temp = 27 .control save all tran 1n 6u plot v(IN) v(OUT) write schmitt_trigger_tran.raw .endc
s
If yoo want xschem to automatically load the raw file write it with the same name as the circuit:
write tb_schmitt_strigger.raw
instead of
write schmitt_trigger_tran.raw
r
same problem... I also added launcher arrow with the same name of the file that is wrote
s
check if
/home/roberto/.xschem/simulations/tb_schmitt_strigger.raw
is existing.
r
s
If you use a launcher set this `tclcommand`:
tclcommand="xschem raw_read $netlist_dir/tb_schmitt_strigger.raw"
in the ngspice testbench use thiw write instruction:
write tb_schmitt_strigger.raw
r
Copy code
tclcommand="xschem raw_read $netlist_dir/tb_schmitt_strigger.raw tran
still not working...
s
it's ok the file is ok I can open it:
r
unbelievable....
s
check the permissions of the file:
cd ~/.xschem/simulations
ls -l /tb_schmitt_strigger.raw
r
ls: cannot access '/tb_schmitt_strigger.raw': No such file or directory... strasnge it was always working
s
sorry my mistake, remove the '/' in front of the file
r
same results... cannot access
s
if you can't locate and access the file xschem has the same problem. Try to see where the file is. Run again simulation
r
sorry typing error... -rw-rw-r-- 1 roberto roberto 1253402 gen 19 21:52 tb_schmitt_trigger.raw
s
do you run xschem from a terminal? if so at the xschem prompt type this command:
puts $netlist_dir
what is the result?
r
yes, i go in the folder with the testbench and than i run from terminal. the netlist dir is: /home/roberto/.xschem/simulations
s
ok at the xschem terminal type this:
xschem raw_read $netlist_dir/tb_schmitt_trigger.raw
r
Simulation started: execution IDits/xschem/schmitt_trigger] xschem raw_read $netlist_dir/tb_schmitt_trigger.raw Raw file data read: /home/roberto/.xschem/simulations/tb_schmitt_trigger.raw points=6019, vars=26, datasets=1
s
ok now you can put a graph inside xschem and see waveforms
r
ok, now is working....
s
If you do Simulation -> Load/Unload Spice .raw file does that work? This is a toggle, it removes the raw file and then on next click it loads again...
r
no... it is not working. i removed the arrow. than Simulation -> Load/Unload Spice .raw... still the same error as before
s
Try to save the schematic, quit xschem and start over again. This is very strange.
r
the folder, try to run on your machine
I already restarted multiple times... I will switch off the PC... maybe can be the solution
if i reload the graph with your command line, than with the green arrow i can unload the file, but i can't reload the waveform
s
AAAARGHHHHH the name of your schematic is tb_schmitt_*`s`*trigger.sch there is an additional s I have done lot of other fixes, i will send you a clean folder in a moment.
Here the updated folder. I have corrected many absolute paths in the schematics. Unpack this folder (rename your original folder before), start xschem within this folder.
You can also plot v(out) vs v(in). just double click in the graph, set the 'sweep textbox to in. You need to manually set the graph ranges (0 : 3.3 x and y). Xschem can not do a full zoom automatically since v(in) is non monothonic (start from 0 and ends to 0)