It is possible to graph I(M2) vs I(M8)? using xschem and ngspice?
r
Rita
12/29/2022, 4:46 AM
there is an ammeter symbol in xschem
Rita
12/29/2022, 4:47 AM
you can also place a voltage source with voltage 0, then plot i(Vn)
i don't think ngspice calculates currents unless you tell it to by using an ammeter or voltage source
s
Stefan Schippers
12/29/2022, 10:44 AM
You can create a graph in xschem and change the sweep variable, This example plots drain current of mos1 vs mos2
Stefan Schippers
12/29/2022, 10:46 AM
You need to specify the
sweep
variable in the graph dialog box. Double click in the middle of the graph to bring it up:
Stefan Schippers
12/29/2022, 10:49 AM
You can do this also in ngspice:
plot i(vd1) vs i(vd2)
Stefan Schippers
12/29/2022, 10:51 AM
I usually place ammeter devices as @Rita suggested because the syntax for ammeter current is simple, while referencing a mos drain current is very complex and ngspice specific. If you port the design to Xyce it will not work.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.