Re: Plotting integration
al davis <[email protected]> Sun, 11 Feb 2018 11:42:23 -0500
| Newsgroups | gmane.comp.gnu.gnucap.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 11 Feb 2018 16:00:23 +0100 Patrick Mulder <[email protected]> wrote: > However, I am bit confused on the direction of currents in the Nmos > transistor. > they should be >0 mA not negative ? > > Vds 1 0 DC +10V > Vgs 2 0 DC +3V > M1 1 2 0 0 nmos_enhance L=10u W=400u > > .print DC V(1) I(Vds) I(device) gives the current flowing into the first node of that device. For a voltage source, supplying power, that current is negative. You could: .print dc Id(M1) to get the drain current of M1. No need to add dummy voltage sources to use as current probes.