How can I draw a 3-input logic gate with circuitikz? Is there a way to do so?
For example,
\begin{circuitikz}
\draw
(0,0) node[and port](myand){}
(myand.in 1) node[left]{A}
(myand.in 2) node[left]{B}
(myand.in 3) node[left]{C}
(myand.out) node[right]{Y}
\end{circuitikz}
Best Answer
By slight modification of this code you can acheive gates with more inputs (modifying
inputs=nnn
and\foreach \a in {1,...,3}
).For more, check TikZ & PGF manual section 29.3 Page 300