Commit b0f6bd39 by Jaime Arias

 \documentclass[preview]{standalone} \input{../../base.tex} \begin{document} \begin{figure} \centering \scalebox{.75}{ \begin{tikzpicture}[every node/.style={ultra thick,draw=red}] % depth 0 \node[and gate US,point up,logic gate inputs=nn] (a7) {\rotatebox{-90}{$A_7$}}; % depth 1 \node[and gate US,point up,logic gate inputs=nn, below = 9mm of a7.west, yshift=14mm] (a6) {\rotatebox{-90}{$A_6$}}; \draw (a6.east) -- ([yshift=0.15cm]a6.east) -| (a7.input 1); \node[state, below = 3.6mm of a7.west, xshift=9mm] (l8) {$l_8$}; \draw (l8.north) -- ([yshift=0.15cm]l8.north) -| (a7.input 2); % depth 2 \node[and gate US,point up,logic gate inputs=nn, below = 9mm of a6.west, yshift=30mm] (a4) {\rotatebox{-90}{$A_4$}}; \draw (a4.east) -- ([yshift=0.15cm]a4.east) -| (a6.input 1); \node[and gate US,point up,logic gate inputs=nn, below = 9mm of a6.west, yshift=-22mm] (a5) {\rotatebox{-90}{$A_5$}}; \draw (a5.east) -- ([yshift=0.15cm]a5.east) -| (a6.input 2); % depth 3 \node[and gate US,point up,logic gate inputs=nn, below = 9mm of a4.west, yshift=18mm] (a1) {\rotatebox{-90}{$A_1$}}; \draw (a1.east) -- ([yshift=0.15cm]a1.east) -| (a4.input 1); \node[and gate US,point up,logic gate inputs=nn, below = 9mm of a4.west, yshift=-10mm] (a2) {\rotatebox{-90}{$A_2$}}; \draw (a2.east) -- ([yshift=0.15cm]a2.east) -| (a4.input 2); \node[and gate US,point up,logic gate inputs=nn, below = 9mm of a5.west, yshift=14mm] (a3) {\rotatebox{-90}{$A_3$}}; \draw (a3.east) -- ([yshift=0.15cm]a3.east) -| (a5.input 1); \node[state, below = 3.6mm of a5.west, xshift=9mm] (l7) {$l_7$}; \draw (l7.north) -- ([yshift=0.15cm]l7.north) -| (a5.input 2); % depth 4 \node[state, below = 3.6mm of a1.west, xshift=-9mm] (l1) {$l_1$}; \draw (l1.north) -- ([yshift=0.15cm]l1.north) -| (a1.input 1); \node[state, below = 3.6mm of a1.west, xshift=9mm] (l2) {$l_2$}; \draw (l2.north) -- ([yshift=0.15cm]l2.north) -| (a1.input 2); \node[state, below = 3.6mm of a2.west, xshift=-9mm] (l3) {$l_3$}; \draw (l3.north) -- ([yshift=0.15cm]l3.north) -| (a2.input 1); \node[state, below = 3.6mm of a2.west, xshift=9mm] (l4) {$l_4$}; \draw (l4.north) -- ([yshift=0.15cm]l4.north) -| (a2.input 2); \node[state, below = 3.6mm of a3.west, xshift=-9mm] (l5) {$l_5$}; \draw (l5.north) -- ([yshift=0.15cm]l5.north) -| (a3.input 1); \node[state, below = 3.6mm of a3.west, xshift=9mm] (l6) {$l_6$}; \draw (l6.north) -- ([yshift=0.15cm]l6.north) -| (a3.input 2); \end{tikzpicture} } \end{figure} \end{document}