diff --git a/doc/xschem_man/backannotation12.png b/doc/xschem_man/backannotation12.png index 9b0062f2..d5bffb39 100644 Binary files a/doc/xschem_man/backannotation12.png and b/doc/xschem_man/backannotation12.png differ diff --git a/doc/xschem_man/backannotation15.png b/doc/xschem_man/backannotation15.png new file mode 100644 index 00000000..65ba0448 Binary files /dev/null and b/doc/xschem_man/backannotation15.png differ diff --git a/doc/xschem_man/tutorial_ngspice_backannotation.html b/doc/xschem_man/tutorial_ngspice_backannotation.html index 2703e62e..ce629cd2 100644 --- a/doc/xschem_man/tutorial_ngspice_backannotation.html +++ b/doc/xschem_man/tutorial_ngspice_backannotation.html @@ -144,8 +144,13 @@ write cmos_example.raw calculated as V(GN) * Id(m3).
+ you can wrap the whole expression inside a [to_eng ... ] to have the value displayed inengineering form + using the usual SPICE suffixes (example: 131u for 131e-6) +
+
+
- The example shown uses this component to display a (meaningless, but shows the usage) gm ratio of 2 transistors: + The example shown below uses this component to display a (meaningless, but shows the usage) gm ratio of 2 transistors:
diff --git a/xschem_library/examples/cmos_example.sch b/xschem_library/examples/cmos_example.sch index b7200d14..d5359d90 100644 --- a/xschem_library/examples/cmos_example.sch +++ b/xschem_library/examples/cmos_example.sch @@ -1589,3 +1589,6 @@ C {ngspice_get_value.sym} 520 -310 0 0 {name=r6 node=i(@$\{path\}m4[id]) descr="I="} C {ngspice_get_value.sym} 670 -310 0 1 {name=r7 node=i(@$\{path\}m5[id]) descr="I="} +C {ngspice_get_expr.sym} 160 -160 0 0 {name=r8 node="[expr \{[ngspice::get_voltage gn] * [ngspice::get_current \{m3[id]\}]\}]" +descr="Power=" +}