\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
% \stepicon{(x,y)}: a small voltage-step glyph
\newcommand\stepicon[1]{\draw[line width=0.8pt] #1 ++(-0.25,-0.12) -- ++(0.2,0) -- ++(0,0.24) -- ++(0.2,0);}
% \mikev{(x,y)}: microphone as a small circle sitting in a vertical wire
\newcommand\mikev[1]{\draw[line width=1pt, fill=white] #1 circle (0.22);}
% \ssm{gate label}{ctrl voltage}{source label}: G/S port with the controlling voltage, a current source and D
\begin{document}
\begin{circuitikz}
\draw (0,0) node[nmos](M){};
\draw (M.G) -- ++(-0.8,0) to[battery1] ++(0,-1.2) coordinate(b);
\draw (b) -- (b -| 1.5,0);
\draw (M.S) -- (M.S |- b) node[circ]{};
\draw (M.D) |- (1.5,1.0) to[battery1] (1.5,0 |- b);
\node[note, anchor=west] at (2.0,0.2) {compute bias conditions ($g_\mathrm{m}\cdots$)};
\begin{scope}[shift={(0,-3.2)}]
\draw (0,0) node[nmos](N){};
\draw (N.G) -- ++(-0.8,0) to[american voltage source, l_=$v_\mathrm{in}$] ++(0,-1.2) coordinate(c);
\draw (c) -- (c -| N.S) -- (N.S);
\draw (N.D) -- ++(0,0.4) coordinate(d) -- ++(0.9,0);
\draw[->] ($(d)+(0.9,0)$) -- ($(d)+(0.35,0)$);
\node[right, font=\small] at ($(d)+(0.9,0)$) {$i_\mathrm{D}$};
\end{scope}
\end{circuitikz}
\end{document}
