xschem can't load the raw sim data on startup as its path is wrong. After running simulation, the pa...
m
xschem can't load the raw sim data on startup as its path is wrong. After running simulation, the path is fixed and it can load it
image.png
you can see it is looking in ~/.xschem/simulations for some reason
then after I run the simulation this is corrected to ./simulation
as in the xschemrc file in the local directory I have:
set local_netlist_dir 1
would be nice to load the raw data at startup - is this a bug?
s
where did you specify to load raw file on startup?
the location to look for simulation files is ~/.xschem/simulations by default, it can be changed in xschemrc for example by setting
set local_netlist_dir 1
, if you want to load some raw files at startup after all the xschemrc settings have been applied use this command in the
xschemrc
file:
Copy code
set postinit_commands {
  set rawfile $netlist_dir/[file rootname [xschem get current_name]].raw
  xschem raw read $rawfile tran
  xschem redraw
}
m
when I control left click the arrow that loads the data. The first time I click it after startup it fails with the above error
then I run simulation and the raw file is regenerated in ./simulations
then the control left click starts working
so it seems the path is wrong at startup, but is fixed by running simulation
the location for raw files should be ./simulations because I have
set local_netlist_dir 1
set in the local xschem init file
s
Thank you for the details will check.
🙌 1
m
let me know if you need anything
s
I think not, I know where the problem is and will fix in 1 min.
1000 thanks for reporting this !
m
glad to be of some use!
s
@Matt Venn can you please check if you have a definition for netlist_dir (
set netlist_dir ...
) in your xschemrc that follows the
set local_netlist_dir 1
? In this case you overwrite the netlist_dir destination. If this is the case comment the
set netlist_dir
line.
m
image.png
s
@Matt Venn I have tried to load waveforms immediately after loading your testbench and it just works. I have also tried to roll back the xschem to some older commits, still can't see problems.
Copy code
schippes@asus:~/.xschem/xschem_library/tt06-analog-r2r-dac/xschem$ xschem testbench.sch 
Warning: PDK_ROOT env. var. not found or empty, trying to find an open_pdks install
open_pdks installation: using /home/schippes/share/pdk
SKYWATER_MODELS: /home/schippes/share/pdk/sky130A/libs.tech/ngspice
SKYWATER_STDCELLS: /home/schippes/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice
setup_tcp_bespice: success : listening to TCP port: 2022
xschem [~/.xschem/xschem_library/tt06-analog-r2r-dac/xschem] Raw file data read: /home/schippes/.xschem/xschem_library/tt06-analog-r2r-dac/xschem/simulation/testbench.raw
points=27777, vars=80, datasets=1 sim_type=tran
If you can after calling xschem testbench.sch try to do this in the xschem terminal:
Copy code
puts $netlist_dir
/home/schippes/.xschem/xschem_library/tt06-analog-r2r-dac/xschem/simulation
Do you get the correct directory (simulation/ under the xschem directory) ?