\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee2.tikz}
\begin{document}
\begin{circuitikz}
% the circuit
\draw (1.3,0.8) node[nmos](m2){} (m2.east) node[right]{$M_2$};
\draw (m2.G) -- ++(-0.8,0) node[circ]{} node[left]{$V_\mathrm{b}$};
\draw (m2.S) node[ground]{};
\draw (m2.D) -- ++(0,0.6) node[nmos, anchor=S](m1){} (m1.east) node[right]{$M_1$};
\draw (m1.G) -- ++(-0.8,0) node[circ]{} node[left]{$V_\mathrm{in}$};
\draw (m1.D) -- ++(0,0.4) coordinate(o) -- ++(0,0.1) coordinate(c);
\draw (c) ++(0,1.8) coordinate(t) to[american current source, l=Ideal] (c);
\draw (t) ++(-0.5,0) -- ++(1.0,0);
\draw (o) node[circ]{} to[short, -o] ++(1.2,0) node[right]{$V_\mathrm{out}$};
\draw[->, gaaccent] ($(o)+(-0.75,0.25)$) node[note, left]{sig} -- ($(o)+(-0.1,0.05)$);
% G_m
\begin{scope}[xshift=6.4cm]
\draw (1.3,0.8) node[nmos](n2){} (n2.east) node[right]{$M_2$};
\draw (n2.G) -- ++(-0.5,0) coordinate(g2) -- (g2 |- 0,0.2) node[ground]{};
\draw (n2.S) -- (n2.S |- 0,0.2) node[ground]{};
\draw (n2.D) -- ++(0,0.6) node[nmos, anchor=S](n1){} (n1.east) node[right]{$M_1$};
\draw (n1.G) -- ++(-0.8,0) node[ocirc]{} node[left]{$V_\mathrm{in}$};
\draw (n1.D) -- ++(0,0.4) coordinate(o) -- ++(2.0,0) to[short, i<=$I_\mathrm{out}$] ++(0.6,0) coordinate(r) -- (r |- 0,1.6) node[ground]{};
\draw[dashed] (-0.3,-0.25) rectangle (2.2,1.5);
\node[font=\small, align=left, anchor=east] at (-0.4,0.6) {ac\\GND};
\node at (2.6,0.6) {$\equiv$};
\draw (3.3,1.3) -- (3.3,1.2) to[R, l=$r_\mathrm{o2}$] (3.3,-0.1) node[ground]{};
\end{scope}
\end{circuitikz}
\end{document}
