How can ac waveforms i.e. gain, phase be plotted i...
# xschem
v
How can ac waveforms i.e. gain, phase be plotted in gaw or xschem internal viewer ?
s
there is an example in `sky130_tests/test_ac.sch`:
v
Thanks Stefan, I got the idea from this TB. But why waveforms seems to be not loading in
test_ac. sch
tb after pressing load waveform button ?
s
If you presss Simulate button the fllowing ngspice window must appear:
Then to load waveforms press the control key and left-button click on the
Load/Unload AC waveforms
symbol.
v
Thanks @Stefan Schippers Where can i find more info about using launcher for running various tasks as in xschem example testbenches.
s
The launcher.sym is just a symbol, like any other component, but does not appear in the netlist. You can attach the following attributes to a launcher instance: `descr`: prints a description in the launcher symbol `url`: a location (a http link, or a file path). The default application will be launched to open the url (for example firefox or other browser for web pages, a pdf viewer for pdf files and so on). `program`: the application to use to open the location listed in url. This is useful if no default application is configured on the system for the url. `tclcommand`: execute a tcl command. the tclcommand and url are mutually exclusive. this attribute can be used to launch parallel processes, using the xschem
execute
procedure. the second parameter of execute (1 or 0) determines if a status dialog box must be shown when process ends, with stdout and stderr messages. example:
tclcommand="execute 0 sh -c \"cd $netlist_dir; xterm\""
will launch a terminal in the directory where xschem creates netlists. You can attach a url attribute to any component in your schematic. For example I use this to show datasheet of discrete transistors.
c
Thanks, Stefan. I am able to plot ac in the internal graph feature of xschem. Just want to confirm that other features like horizontal cursors and markers are not available yet?
s
@Calvin Yan there are no horizontal markers. With a simple trick you can draw a horizontal trace at a specific Y axis value: marker1 is a waveform with constant value 8 (note the space, this is needed so xschem knows the part to the right of
;
is an expression and not a spice node named '8').
🙌 1
@Calvin Yan if you press the 'm' key in a graph you get a tooltip showing X and Y values of the graph at mouse position. (in image below the mouse pointer is not visible, this is just an issue with the screen snapshot tool).
🙌 1