\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{circuitikz}
% V_out = V_in - V_D,on
\begin{axis}[sketch, width=6cm, height=3.6cm, xmin=0, xmax=1.1, ymin=-1.3, ymax=1.2, xlabel={$t$}]
  \addplot[black, line width=0.8pt, domain=0:1, samples=150] {0.8*sin(deg(2*pi*x))+0.1};
  \addplot[line width=1.4pt, domain=0:1, samples=150] {0.8*sin(deg(2*pi*x))-0.35};
  \node[font=\small, anchor=south] at (axis cs:0.25,0.9) {$V_\mathrm{in}$};
  \node[font=\small] at (axis cs:0.3,-1.0) {$V_\mathrm{out}$};
\end{axis}
\begin{scope}[shift={(7.6,-1)}]
\draw (-1.2,3.2) node[left]{$V_\mathrm{in}$} -- (0,3.2) to[empty diode] (0,1.6) node[circ]{} -- (1,1.6) node[circ, label=right:$V_\mathrm{out}$]{};
\node[font=\small] at (0.35,3.0) {$+$}; \node[font=\small] at (0.35,1.8) {$-$}; \node[font=\small, anchor=west] at (0.4,2.4) {$V_\mathrm{D,on}$};
\draw (0,1.6) to[american current source, l_=$I$] (0,0) node[ground]{};
\end{scope}
\end{circuitikz}
\end{document}
