Ahmed Reda
10/24/2024, 12:36 PMStefan Schippers
10/24/2024, 8:36 PMxschem raw read file analysis
example:
xschem raw read $netlist_dir/poweramp.raw tran
See the manual page:
in particular the section Specify a different raw file in a graph
and following.
You can display more graphs, each one using one different raw file
OR you can plot more signals in the same graph, each signal from a different raw file.
the xschem raw
comand is quite powerful, see the description here (search for raw what ...
)Ahmed Reda
10/29/2024, 11:25 AM.raw
files but I was expecting the waveform graph to display the specified signal from all the loaded .raw
files once I ctrl-left click
on the waveform launcher. Here's my use case: I load all the .raw
files that are listed in a file called `tran_sim_base_file.txt`` using the tcl code shown in the snapshot and I though that If I write a signal name, say por
, in the graph dialog box then all por
signals from the loaded .raw
files will be displayed which isn't the case because only the latest loaded .raw
file is active. Instead, I had to go and list all the paths for the different .raw
files within the dialog box, as shown in the other snapshot.
Ideally, I would like the same signal from all loaded files to be displayed automatically once the signal name is specified. I guess I'll have to automate that inside the dialog box, somehow. Is that doable? Is there an easier way?Stefan Schippers
10/29/2024, 4:14 PMappend node "\\\"por$cnt; por % $netlist_dir/$raw_file_path tran\\\"\n"
where cnt is a counter variable. (0, 1, 2, ...)
at the end of the raw loading loop assign the node variable to the graph node attribute:
xschem setprop rect 2 3 node $node
in above line, '2' is the grap rectangle layer number. It is always 2 (grey)
the '3' above is the graph number in the schematic, in the example it is the fourth graph (0, 1, 2, 3).
You can get the graph number by selecting it (click close to the inner border and press Shift-S).
Pay attention to the backslashes above. \\
means "add a backslash', \"
means "add a quote".
These are needed because we are already using quotes to group the whole line, and quotes inside quotes, as well as backslashes must be escaped by a backslash.Ahmed Reda
10/30/2024, 6:01 PM.raw
files such that when you click on one of them, only the relevant signals are shown in the search list. This way each signal will be linked to a known .raw file and we could also add the capability to group multiple .raw
files where grouping implies that only common signals would appear in the search list, and if you add any of these signals it would be plotted from all the grouped files with, maybe, a suffix added to the plotted signal names that refers to the relevant .raw
file.Ahmed Reda
10/30/2024, 6:05 PMappend node "\\\"por$cnt; por % $netlist_dir/$raw_file_path tran\\\"\n"
to the launcher symbol. It kept giving an error about a missing close brace. It only worked when I replaced the enclosing ""
with {}
or wrote the command into a separate script and then called it from within the launcher.Stefan Schippers
10/30/2024, 10:41 PMAhmed Reda
10/31/2024, 10:42 AM