\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee2.tikz}
\begin{document}
\begin{circuitikz}
% A: M1 on top of Q2
\draw (1.6,4.0) node[nmos](m1){};
\node[right] at (m1.east) {$M_1$};
\draw (m1.G) -- ++(-0.6,0) node[ocirc]{};
\draw (m1.S |- 0,2.6) node[npn, anchor=C](q2){};
\draw (m1.S) -- (q2.C);
\node[right] at (q2.east) {$Q_2$};
\draw (q2.B) -- ++(-0.6,0) node[ocirc]{};
\draw (q2.E) -- ++(0,-0.2) node[ground]{};
\draw (m1.D) -- ++(0,0.4) node[ocirc](o){};
\draw[->] (2.8,4.4) |- ($(o)+(0.25,0)$);
\node[anchor=north] at (2.8,4.35) {$R_\mathrm{out,A}$};
\draw[dashed, gagray] ($(q2.center)+(-0.1,0)$) ellipse [x radius=1.1cm, y radius=0.75cm];
\node[anchor=east] at (0.4,2.4) {$r_\mathrm{o2} =$};
\node[font=\large] at (1.4,0.7) {A};
% B: Q2 on top of M1
\begin{scope}[xshift=5.4cm]
\draw (2.4,4.6) node[npn](q){};
\node[right] at (q.east) {$Q_2$};
\coordinate (bp) at ($(q.B)+(-0.5,0)$);
\coordinate (ep) at ($(q.E)+(0,-1.0)$);
\draw (q.B) -- ++(-0.9,0) node[ocirc]{};
\draw (bp) node[circ]{} to[R, l_=$r_{\pi2}$] (bp |- ep) -- (ep) node[circ]{};
\draw (q.E) -- (ep);
\draw (ep |- 0,2.4) node[nmos, anchor=D](m){};
\draw (ep) -- (m.D);
\node[right] at (m.east) {$M_1$};
\draw (m.G) -- ++(-0.6,0) node[ocirc]{};
\draw (m.S) -- ++(0,-0.2) node[ground]{};
\draw (q.C) -- ++(0,0.4) node[ocirc](o){};
\draw[->] (3.6,5.0) |- ($(o)+(0.25,0)$);
\node[anchor=north] at (3.6,4.95) {$R_\mathrm{out,B}$};
\draw[dashed, gagray] ($(m.center)+(-0.1,0)$) ellipse [x radius=1.1cm, y radius=0.75cm];
\node[anchor=west] at (3.4,1.85) {$= r_\mathrm{o1}$};
\node[font=\large] at (2.2,0.7) {B};
\end{scope}
\node[anchor=west] at (10.6,3.2) {$r_\mathrm{o1} = r_\mathrm{o2}$};
\end{circuitikz}
\end{document}
