Init
This commit is contained in:
29
Grafiken/AndANSI.tex
Normal file
29
Grafiken/AndANSI.tex
Normal file
@@ -0,0 +1,29 @@
|
||||
\begin{tikzpicture}[scale=1,transform shape]
|
||||
\ctikzset{
|
||||
logic ports=ieee,
|
||||
logic ports/scale=1,
|
||||
% logic ports/fill=lightgray
|
||||
% Koordinaten für Kreuzpunkte
|
||||
}
|
||||
\coordinate (A) at (2.75,0.5);
|
||||
\fill (A) circle (1.5pt);
|
||||
|
||||
% Eingangsvariablen
|
||||
\node (x2) at (0.15,0.225) {b};
|
||||
\node (x1) at (0.15,0.775) {a};
|
||||
|
||||
% Ausgangsvariable
|
||||
\node (y) at (6,0.5) {out};
|
||||
|
||||
% Gatter
|
||||
\node[nand port] at (1.5,0.5) (n1) {};
|
||||
\node[nand port] at (4,0.5) (n2) {};
|
||||
|
||||
\draw(x1) -- (n1.in 1);
|
||||
\draw(x2) -- (n1.in 2);
|
||||
\draw(n1.out) -- (A);
|
||||
\draw(A) |- (n2.in 2);
|
||||
\draw(A) |- (n2.in 1);
|
||||
\draw(n2.out) -- (y);
|
||||
|
||||
\end{tikzpicture}
|
||||
Reference in New Issue
Block a user