Init
This commit is contained in:
40
IEC/AndIEC.tex
Normal file
40
IEC/AndIEC.tex
Normal file
@@ -0,0 +1,40 @@
|
||||
%!tikz editor 1.0
|
||||
\documentclass{article}
|
||||
\usepackage{tikz}
|
||||
\usepackage[graphics, active, tightpage]{preview}
|
||||
\usepackage{circuitikz}
|
||||
\PreviewEnvironment{tikzpicture}
|
||||
|
||||
%!tikz preamble begin
|
||||
\usetikzlibrary{circuits.logic.IEC, positioning}
|
||||
\usepackage[utf8]{inputenc}
|
||||
%!tikz preamble end
|
||||
|
||||
|
||||
\begin{document}
|
||||
%!tikz source begin
|
||||
\begin{tikzpicture}[scale=6, transform shape,circuit logic IEC]
|
||||
\tikzstyle{branch}=[fill,shape=circle,minimum size=1pt,inner sep=pt]
|
||||
|
||||
\node[nand gate] at (1,1)(n1){};
|
||||
\node[nand gate] at (3,1)(n2){};
|
||||
|
||||
\node (a) at (0,1.165) {$a$};
|
||||
\node (b) at (0,0.825) {$b$};
|
||||
\node (out1) at (2.25,1) {};
|
||||
\node (y) at (4.25,1) {$out$};
|
||||
|
||||
|
||||
\draw(n1.input 1) -- (a);
|
||||
\draw(n1.input 2) -- (b);
|
||||
\draw(n2.input 1) -| ($(out1)$);
|
||||
\draw(n2.input 2) -| ($(out1)$);
|
||||
|
||||
\fill (out1) circle (1pt);
|
||||
\draw(n1.output) --($(out1)$);
|
||||
\draw(n2.output) -- (y);
|
||||
|
||||
\end{tikzpicture}
|
||||
%!tikz source end
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user