The nmos
and pmos
transistors have different placements for their source and drain anchors (for nmos
, drain is on top and source on bottom; for pmos
, source is on top and drain is on bottom). Why is this?
\begin{circuitikz}
\draw (0,0) node[nmos](n){}
(n.gate) node[anchor=east]{G}
(n.drain) node[anchor=south]{D}
(n.source) node[anchor=north]{S}
%
(3,0) node[pmos](p){}
(p.gate) node[anchor=east]{G}
(p.drain) node[anchor=north]{D}
(p.source) node[anchor=south]{S};
\end{circuitikz}