Stefan Schippers
12/24/2020, 8:19 PMlappend tcl_files ${XSCHEM_SHAREDIR}/ngspice_backannotate.tcl,
this will export a ngspice::annotate
command... the command searches for a .raw file in the simulation directory with the same name as the schematic you want to annotate. Then you place in teh schematic these symbols: ngspice_get_expr.sym
(for combining multiple items saved in raw file into an expression, useful for power calculation, SOA, etc) , ngspice_probe.sym
(for voltages) , ngspice_get_value.sym
(for all things that are saved in raw file like conductances etc).Tom
12/25/2020, 12:02 AMStefan Schippers
12/25/2020, 12:21 AMTom
12/25/2020, 2:51 AMStefan Schippers
12/26/2020, 4:26 AMStefan Schippers
12/26/2020, 4:28 AMStefan Schippers
12/26/2020, 1:52 PMTom
12/27/2020, 5:12 PMStefan Schippers
12/27/2020, 8:08 PMStefan Schippers
12/28/2020, 2:01 AMTom
12/28/2020, 2:03 AMTom
12/28/2020, 6:22 PMStefan Schippers
12/28/2020, 7:39 PMngspice_get_value.sym
show the same value.
I have updated in xschem the ngspice_get_value.sym since it was chopping off part of the name displayed (the first line) however this is only graphics, the current was showing correctly:Stefan Schippers
12/28/2020, 7:41 PMTom
12/28/2020, 7:43 PMStefan Schippers
12/28/2020, 7:50 PMtclcommand="textwindow $netlist_dir/schematic_name.raw"
, so you easily open the raw file (the 1st part is ascii and shows all variables saved therein) so you can copy paste the name. Those names are insanely long.yrrapt
12/28/2020, 8:54 PMyrrapt
12/28/2020, 8:55 PMTom
12/28/2020, 9:11 PMStefan Schippers
12/28/2020, 9:23 PMTom
12/28/2020, 9:43 PMStefan Schippers
12/28/2020, 10:02 PMnode=i(@r.${path}xm1.rd[i])
and in the lower level block you use ${path}
instead of x0. or x1 that will work only for one (or the other) instance.Stefan Schippers
12/28/2020, 11:47 PMArunAshok
12/29/2020, 12:20 AMStefan Schippers
12/29/2020, 12:49 AMTom
12/29/2020, 3:32 PMStefan Schippers
12/29/2020, 7:04 PMxschem
tcl command i have to prepare a comprehensive documentation.Stefan Schippers
12/29/2020, 7:08 PMxschem
commands can be attached as a 'tclcommand' to symbols, so by ctrl-clicking on it an action is executed. For example if you attach this attribute to an instance: tclcommand="xschem netlist; xschem simulate"
by ctrl-clicking on the instance xschem does a netlist of current schematic and invoke the simulatorStefan Schippers
12/29/2020, 7:12 PMStefan Schippers
12/29/2020, 7:14 PM