\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../fm.tikz}
\begin{document}
\begin{tikzpicture}[font=\small]
\draw (0,0) node[nmos](m){}; \node[right] at (m.east) {$M_1$};
\draw (m.S) node[ground]{}; \draw (m.G) -- ++(-0.8,0) node[ocirc]{} node[left]{$V_\mathrm{in}$};
\draw (m.D) -- ++(0,0.4) node[circ]{} coordinate(x) node[left]{$X$} to[R, l=$R_\mathrm{D1}$] ++(0,2.6) coordinate(t);
\draw (2.2,1.5) node[nmos, xscale=-1](q){}; \node[left] at ([xshift=-0.1cm]q.east) {$M_2$};
\draw (q.G) -- ++(0.7,0) node[circ]{} node[right]{$V_\mathrm{b}$};
\draw (q.S) |- (x);
\draw (q.D) -- ++(0,0.3) node[circ]{} coordinate(o) to[R, l_=$R_\mathrm{D2}$] (o |- t);
\draw (o) -- ++(1.1,0) node[ocirc]{} node[right]{$V_\mathrm{out}$};
\draw (t) ++(-0.3,0) -- ([xshift=0.4cm]o |- t) node[right]{$V_\mathrm{DD}$};
\end{tikzpicture}
\end{document}
