3.2 Terminal Voltages
Terminal voltages and Vdsx calculations:
devsign={1−1for NMOSfor PMOS(3.207)
Vgs_noswap=devsign⋅[V(‘IntrinsicGate)−V(si)](3.208)
Vds_noswap=devsign⋅[V(di)−V(si)](3.209)
Vgd_noswap=devsign⋅[V(‘IntrinsicGate)−V(di)](3.210)
Ves_jct=devsign⋅[V(e)−V(si)](3.211)
Ved_jct=devsign⋅[V(e)−V(di)](3.212)
Vge=V(‘IntrinsicGate)−V(e)(3.213)
sigvds=1.0(3.214)
If Vds_noswap<0.0 then,
sigvds=−1.0(3.215)
Vgs=Vgs_noswap−Vds_noswap(3.216)
Vds=−1.0⋅Vds_noswap(3.217)
Ves=Ved_jct(3.218)
else
Vgs=Vgs_noswap(3.219)
Vds=Vds_noswap(3.220)
Ves=Ves_jct(3.221)
Vdsx=√Vds2+0.01−0.1(3.222)
In RDSMOD=1 a resistor is added to the intrinsic FET element topology between the intrinsic source and the extrinsic source and a resistor is added to the intrinsic FET element topology between the intrinsic drain and the extrinsic drain. The external source/drain nodes are still labeled s and d while the intrinsic source and intrinsic drain nodes are labeled si and di respectively.
V(si,s)=Vsi−Vs(3.223)
V(di,s)=Vdi−Vd(3.224)