Steven Bos
09/04/2022, 8:23 PMSteven Bos
09/05/2022, 11:16 AMStefan Schippers
09/05/2022, 3:41 PM"VREF; vcc 2 /"
to draw aline at VCC/2.
To save all signals do this:
.control
.save all
tran .... (or dc ... or ac ...)
write <schematic_name>.raw
.endc
save all should be before the analysis line (tran, ac, dc).
If you need all device currents add a
.option savecurrents
outside (and before) the .control block.Steven Bos
09/05/2022, 8:31 PMSteven Bos
09/05/2022, 8:38 PMStefan Schippers
09/05/2022, 11:45 PMmake
yous should do a make intall
. This installs the pdk and the .lib file you need is there, under ..../share/pdk/sy130A/libs.tech/ngspice
. Numerous corrections are done in installed files.Steven Bos
09/06/2022, 6:43 AMSteven Bos
09/06/2022, 6:44 AMStefan Schippers
09/06/2022, 6:54 AM"GND; 0"
trick to show a 0V level, the space in the quoted expression is very important.
A space is used by xschem to detect an expression, like:
VREF; VCC 2 /"
If you remove the space the "GND;0"
is knot recognized as an expression.
The reason is that (integer) numbers are valid spice nodes, so for example:
"TEST;5"
means "draw the waveform of node 5
,while:
"`TEST: 5"` means "draw a line at y value `5`"Steven Bos
09/06/2022, 7:00 AMStefan Schippers
09/06/2022, 7:07 AM"LEVEL;1"
and i didn't see any waveform, until i realized xschem was right, it was looking for a saved node named 1
. This is because for convenience you can reference (in xschem graphs) node names as out
, in
, bias
in addition to v(out)
, v(in)
, v(bias)
.
The space is the best candidate do discriminate expressions from node names, since space is not allowed in node names. Most other characters are possible in the spice node syntax.Steven Bos
09/06/2022, 7:16 AM