Emmanuel Innocent
05/26/2024, 9:19 AMStefan Schippers
05/26/2024, 11:14 PMvdiff voltage that is the difference `v(plus) - v(minus)`:
dc vminus 2.3 2.7 0.001
let vdiff = v(plus) - v(minus)
settype voltage vdiff
write cmos_example_ngspice.raw
2):
from the xschem prompt do this:
xschem raw add vdiff {plus minus -}
This will create a new vdiff vector in the loaded raw file, in addition to the nodes saved by ngspice.
then either if using 1) or 2) you can use vdiff as the sweep variable in the graphEmmanuel Innocent
05/29/2024, 2:37 AM