help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnucap] Plotting integration


From: al davis
Subject: Re: [Help-gnucap] Plotting integration
Date: Sun, 11 Feb 2018 11:42:23 -0500

On Sun, 11 Feb 2018 16:00:23 +0100
Patrick Mulder <address@hidden> 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.
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]