Skip to content

Instantly share code, notes, and snippets.

@mertyildiran
Created May 2, 2017 02:29
Show Gist options
  • Save mertyildiran/e06aa03b325e82165962c4816499ae65 to your computer and use it in GitHub Desktop.
Save mertyildiran/e06aa03b325e82165962c4816499ae65 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage[width=1000mm,left=12mm,paperwidth=1000mm,height=5000mm,top=12mm,paperheight=5000mm]{geometry}
\usepackage{circuitikz}
\begin{document}
% https://tex.stackexchange.com/a/32843/132144
\begin{circuitikz}
\node[nand port] at (0,-400) (nand1) {};
\node[nand port] at (-2,1) (nand2) {};
\node[nand port] at (-2,-1) (nand3) {};
\draw (nand2.out) -- (nand1.in 1);
\draw (nand3.out) -- (nand1.in 2);
\node (i0) at (-4,1.3) {$I_0$};
\node (i1) at (-4,0.7) {$I_1$};
\node (i2) at (-4,-0.7) {$I_2$};
\node (i3) at (-4,-1.3) {$I_3$};
\node (o0) at (1,0) {$O_0$};
\draw (i0) -- (nand2.in 1);
\draw (i1) -- (nand2.in 2);
\draw (i2) -- (nand3.in 1);
\draw (i3) -- (nand3.in 2);
\draw (nand1.out) -- (o0);
\end{circuitikz}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment