\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../fm.tikz}
\begin{document}
\begin{tikzpicture}[font=\small]
\draw (0,0) node[pmos](m){}; \node[right] at (m.east) {$M_1$};
\draw (m.G) -- ++(-0.8,0) node[circ]{} node[left]{$V_\mathrm{b}$};
\draw (m.S) -- ++(0,0.4) -- ++(-1.6,0) node[ocirc]{} node[left]{$V_\mathrm{in}$};
\draw (m.D) -- ++(0,-0.4) node[circ]{} coordinate(o) to[R, l_=$R_\mathrm{D}$] ++(0,-1.6) coordinate(b);
\draw (o) -- ++(1.0,0) node[ocirc]{} node[right]{$V_\mathrm{out}$};
\draw (3.0,0.6) node[nmos, xscale=-1](q){}; \node[left] at ([xshift=-0.1cm]q.east) {$M_2$};
\draw (q.D) -- ++(0,0.35) coordinate(tt) -- ++(0.9,0) coordinate(tr) node[right]{$V_\mathrm{DD}$}; \draw (tt) ++(-0.4,0) -- (tt); \draw (q.G) -- (q.G -| tr) -- (tr);
\draw (q.S) -- (q.S |- b) node[circ]{} coordinate(n) -- (b); \draw (n) to[I, l=$I_1$] ++(0,-1.5) node[ground]{};
\draw[gaaccent, ->] ([shift={(0.3,-1.2)}]q.S) -- ([shift={(0.3,-0.75)}]q.S); \node[right, font=\footnotesize] at ([shift={(0.35,-1.0)}]q.S) {$\frac{1}{g_\mathrm{m2}}$};
\end{tikzpicture}
\end{document}
