\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee2.tikz}
\begin{document}
\begin{circuitikz}
% input side: D1, G1,2
\draw (0,0) node[ground]{} to[american current source, l=$i_\mathrm{i}$] (0,2.4) -- (0.9,2.4) node[ocirc]{};
\draw (0.9,2.4) -- (2.2,2.4) node[circ]{} node[above]{$D_1, G_{1,2}$} coordinate(n);
\draw (n) to[R, l_=$r_\mathrm{o1}$] (2.2,0) node[ground]{};
\draw (n) -- (4.2,2.4) node[circ]{} to[american controlled current source, l=$g_\mathrm{m1}v_\mathrm{gs}$] (4.2,0) node[circ]{} node[ground]{};
\node[right, font=\small] at (4.35,-0.2) {$S$};
\draw (4.2,2.4) -- (6.4,2.4) node[ocirc]{};
\node at (6.4,1.9) {$+$};
\node at (6.4,1.3) {$v_\mathrm{gs}$};
\node at (6.4,0.7) {$-$};
% output side: D2
\begin{scope}[xshift=8.6cm]
\draw (0,0) node[ground]{} to[american controlled current source, l=$g_\mathrm{m2}v_\mathrm{gs}$, invert] (0,2.4) -- (2.0,2.4) node[circ]{} coordinate(d2) node[above left]{$D_2$};
\draw (d2) to[R, l=$r_\mathrm{o2}$] (2.0,0) node[ground]{};
\draw[dashed] (d2) -- ++(1.6,0);
\draw[->] ([xshift=1.3cm, yshift=0.25cm]d2) -- ++(-0.7,0) node[midway, above]{$i_\mathrm{o}$};
\end{scope}
\end{circuitikz}
\end{document}
