\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{tikzpicture}
% NMOS on a p-substrate
\draw (-0.3,0) -- (3.9,0);
\foreach \x in {0.4,3.2}{\draw[fill=white] (\x-0.45,0) arc (180:360:0.45 and 0.4); \node[font=\scriptsize] at (\x,-0.16){$n^+$};}
\draw (0.3,0.06) rectangle (3.3,0.16); \draw (0.4,0.16) rectangle (3.2,0.42);
\node[above] at (1.8,0.42) {NMOS};
\draw (0.5,-1.3) -- (3.4,-1.3); \node[above, font=\small] at (1.8,-1.3) {$p$-sub};
% PMOS on an n-substrate
\begin{scope}[xshift=5.4cm]
\draw (-0.3,0) -- (3.9,0);
\foreach \x in {0.4,3.2}{\draw[fill=white] (\x-0.45,0) arc (180:360:0.45 and 0.4); \node[font=\scriptsize] at (\x,-0.16){$p^+$};}
\draw (0.3,0.06) rectangle (3.3,0.16); \draw (0.4,0.16) rectangle (3.2,0.42);
\node[above] at (1.8,0.42) {PMOS};
\draw (0.2,-1.3) -- (3.6,-1.3); \node[above, font=\small] at (1.8,-1.3) {$n$-sub};
\end{scope}
\end{tikzpicture}
\end{document}
