|
|
XOR | |||
|
|
0 |
|
||
|
|
0 |
|
||
|
|
|
0 | ||
|
|
|
0 | ||
|
|
0 |
|
0 | 0 |
|
|
|
0 | 0 | |
|
|
0 |
|
0 | |
|
|
0 |
|
0 | |
|
|
|
|||
|
|
|
|||
|
|
0 |
|
0 | |
|
|
|
0 | ||
z3+ := (z0 and not x) or (z1 and x) z2+ := (z3 and not x) or (z0 and x) z1+ := (z3 and x) or (z2 and not x) z0+ := (z2 and x) or (z1 and not x) y := (z3 and not x) or (z1 and not x) or \\ (z0 and not x) or (z0 and x)
in der tabelle war ein fehler: der zustand 1 muss nicht als 0 kodiert sein. ist es auch, blos leider nur im zielzustand, im ausgangszustand, ist es eins. im zielzustand war es null
|
|
|||
| 0b1000 | 0 | 0b0100 | 1 |
| 0b1000 | 1 | 0b0010 | 0 |
| 0b0100 | 0 | 0b0010 | 0 |
| 0b0100 | 1 | 0b0001 | 0 |
| 0b0010 | 0 | 0b0001 | 0 |
| 0b0010 | 1 | 0b1000 | 1 |
| 0b0001 | 0 | 0b1000 | 1 |
| 0b0001 | 1 | 0b0100 | 1 |
jetzt haben wir das schaltnetz, dann gucke ich, dass ich das als schaltnetz tue, und zwar: soll ich mit kaneda, ja oder nein? ich denke so oder so, ja, aber ich mache es trotzdem mit LATEX. und zwar indem ich erst mal 8 UND Gatter hinmache 7408, oder wie, also nach IEEE-91/1984. ok: und: jetzt kommt: vier ODER Gatter, wir verbinden das, auch, dann kommt noch Kaneda. und dann 4 FF. wie von vorher übernommen.
kurze zeichenübung - ist teil der sache:
\begin{tikzpicture}[->, >=stealth', node distance=3cm, auto]
\node [and port] (and00) {$7408_1$};
\node [and port, below of=and00] (and01) {$7408_2$};
\node [and port, below of=and01] (and02) {$7408_3$};
\node [and port, below of=and02] (and03) {$7408_4$};
\node [and port, below of=and03] (and04) {$7408_1$};
\node [and port, below of=and04] (and05) {$7408_2$};
\node [and port, below of=and05] (and06) {$7408_3$};
\node [and port, below of=and06] (and07) {$7408_4$};
\node [or port, right of=and00] (or00) {$7432_1$};
\node [or port, right of=and02] (or01) {$7432_2$};
\node [or port, right of=and04] (or02) {$7432_3$};
\node [or port, right of=and06] (or03) {$7432_4$};
\draw (and00.out) -- (or00.in 1);
\draw (and01.out) -- (or00.in 2);
\draw (and02.out) -- (or01.in 1);
\draw (and03.out) -- (or01.in 2);
\draw (and04.out) -- (or02.in 1);
\draw (and05.out) -- (or02.in 2);
\draw (and06.out) -- (or03.in 1);
\draw (and07.out) -- (or03.in 2);
\node[flipflop D, right of=or00] (D00) {};
\draw (D00.pin 1) node[left] {$D$} ;
\draw (D00.pin 2) node[left] {CLK};
\draw (D00.pin 6) node[right] {$Q$};
\draw (D00.pin 4) node[right] {$\bar{Q}$};
\node[flipflop D, right of=or01] (D01) {};
\draw (D01.pin 1) node[left] {$D$} ;
\draw (D01.pin 2) node[left] {CLK};
\draw (D01.pin 6) node[right] {$Q$};
\draw (D01.pin 4) node[right] {$\bar{Q}$} {};
\node[flipflop D, right of=or02] (D02) {};
\draw (D02.pin 1) node[left] {$D$} ;
\draw (D02.pin 2) node[left] {CLK};
\draw (D02.pin 6) node[right] {$Q$};
\draw (D02.pin 4) node[right] {$\bar{Q}$};
\node[flipflop D, right of=or03] (D03) {};
\draw (D03.pin 1) node[left] {$D$} ;
\draw (D03.pin 2) node[left] {CLK};
\draw (D03.pin 6) node[right] {$Q$};
\draw (D03.pin 4) node[right] {$\bar{Q}$};
\draw (or00.out) -- (D00.pin 1);
\draw (or01.out) -- (D01.pin 1);
\draw (or02.out) -- (D02.pin 1);
\draw (or03.out) -- (D03.pin 1);
\draw (D00.pin 6) -- (and06.in 1);
\draw (D01.pin 6) -- (and07.in 1);
\draw (D03.pin 6) -- (and04.in 1);
\draw (D00.pin 6) -- (and05.in 1);
\draw (D03.pin 6) -- (and03.in 1);
\draw (D02.pin 6) -- (and02.in 1);
\draw (D01.pin 6) -- (and01.in 1);
\draw (D00.pin 6) -- (and00.in 1);
\draw (0,2) -- (2,2);
\draw (2,2) -- (2,4);
\end{tikzpicture}
Schnecke:
\begin{tikzpicture}[node distance=3cm, auto]
\node [and port] (and00) {$7408_1$};
\node [and port, below of=and00] (and01) {$7408_2$};
\node [and port, below of=and01] (and02) {$7408_3$};
\node [and port, below of=and02] (and03) {$7408_4$};
\node [and port, below of=and03] (and04) {$7408_1$};
\node [and port, below of=and04] (and05) {$7408_2$};
\node [and port, below of=and05] (and06) {$7408_3$};
\node [and port, below of=and06] (and07) {$7408_4$};
\node [or port, right of=and00] (or00) {$7432_1$};
\node [or port, right of=and02] (or01) {$7432_2$};
\node [or port, right of=and04] (or02) {$7432_3$};
\node [or port, right of=and06] (or03) {$7432_4$};
\draw (and00.out) -- (or00.in 1);
\draw (and01.out) -- (or00.in 2);
\draw (and02.out) -- (or01.in 1);
\draw (and03.out) -- (or01.in 2);
\draw (and04.out) -- (or02.in 1);
\draw (and05.out) -- (or02.in 2);
\draw (and06.out) -- (or03.in 1);
\draw (and07.out) -- (or03.in 2);
\node[flipflop D, right of=or00] (D00) {};
\draw (D00.pin 1) node[left] {$D$} ;
\draw (D00.pin 2) node[left] {CLK};
\draw (D00.pin 6) node[right] {$Q$};
\draw (D00.pin 4) node[right] {$\bar{Q}$};
\node[flipflop D, right of=or01] (D01) {};
\draw (D01.pin 1) node[left] {$D$} ;
\draw (D01.pin 2) node[left] {CLK};
\draw (D01.pin 6) node[right] {$Q$};
\draw (D01.pin 4) node[right] {$\bar{Q}$} {};
\node[flipflop D, right of=or02] (D02) {};
\draw (D02.pin 1) node[left] {$D$} ;
\draw (D02.pin 2) node[left] {CLK};
\draw (D02.pin 6) node[right] {$Q$};
\draw (D02.pin 4) node[right] {$\bar{Q}$};
\node[flipflop D, right of=or03] (D03) {};
\draw (D03.pin 1) node[left] {$D$} ;
\draw (D03.pin 2) node[left] {CLK};
\draw (D03.pin 6) node[right] {$Q$};
\draw (D03.pin 4) node[right] {$\bar{Q}$};
\draw (or00.out) -- (D00.pin 1);
\draw (or01.out) -- (D01.pin 1);
\draw (or02.out) -- (D02.pin 1);
\draw (or03.out) -- (D03.pin 1);
\draw (D00.pin 6) -- +(1,0) -- +(1,1);
\draw (D01.pin 6) -- +(2,0) -- +(2,8);
\draw (D02.pin 6) -- +(3,0) -- +(3,15);
\draw (D03.pin 6) -- +(4,0) -- +(4,22);
\end{tikzpicture}
z3+ := (z0 and not x) or (z1 and x) z2+ := (z3 and not x) or (z0 and x) z1+ := (z3 and x) or (z2 and not x) z0+ := (z2 and x) or (z1 and not x) y := (z3 and not x) or (z1 and not x) or \\ (z0 and not x) or (z0 and x)
\begin{tikzpicture}[node distance=2cm, auto]
\node [and port] (and00) {$7408_1$};
\node [and port, below of=and00] (and01) {$7408_2$};
\node [and port, below of=and01] (and02) {$7408_3$};
\node [and port, below of=and02] (and03) {$7408_4$};
\node [and port, below of=and03] (and04) {$7408_1$};
\node [and port, below of=and04] (and05) {$7408_2$};
\node [and port, below of=and05] (and06) {$7408_3$};
\node [and port, below of=and06] (and07) {$7408_4$};
\node [or port, right of=and00] (or00) {$7432_1$};
\node [or port, right of=and02] (or01) {$7432_2$};
\node [or port, right of=and04] (or02) {$7432_3$};
\node [or port, right of=and06] (or03) {$7432_4$};
\draw (and00.out) -- (or00.in 1);
\draw (and01.out) -- (or00.in 2);
\draw (and02.out) -- (or01.in 1);
\draw (and03.out) -- (or01.in 2);
\draw (and04.out) -- (or02.in 1);
\draw (and05.out) -- (or02.in 2);
\draw (and06.out) -- (or03.in 1);
\draw (and07.out) -- (or03.in 2);
\node[flipflop D, right of=or00] (D00) {};
\draw (D00.pin 1) node[left] {$D$} ;
\draw (D00.pin 2) node[left] {CLK};
\draw (D00.pin 6) node[right] {$Q$};
\draw (D00.pin 4) node[right] {$\bar{Q}$};
\node[flipflop D, right of=or01] (D01) {};
\draw (D01.pin 1) node[left] {$D$} ;
\draw (D01.pin 2) node[left] {CLK};
\draw (D01.pin 6) node[right] {$Q$};
\draw (D01.pin 4) node[right] {$\bar{Q}$} {};
\node[flipflop D, right of=or02] (D02) {};
\draw (D02.pin 1) node[left] {$D$} ;
\draw (D02.pin 2) node[left] {CLK};
\draw (D02.pin 6) node[right] {$Q$};
\draw (D02.pin 4) node[right] {$\bar{Q}$};
\node[flipflop D, right of=or03] (D03) {};
\draw (D03.pin 1) node[left] {$D$} ;
\draw (D03.pin 2) node[left] {CLK};
\draw (D03.pin 6) node[right] {$Q$};
\draw (D03.pin 4) node[right] {$\bar{Q}$};
\draw (or00.out) -- (D00.pin 1);
\draw (or01.out) -- (D01.pin 1);
\draw (or02.out) -- (D02.pin 1);
\draw (or03.out) -- (D03.pin 1);
\draw (D00.pin 6) -- +(1,0) -- +(1,1) -- +(-9,1) -- +(-9,-22);
\draw (D01.pin 6) -- +(2,0) -- +(2,6) -- +(-9.5,6) -- +(-9.5,-20);
\draw (D02.pin 6) -- +(3,0) -- +(3,11) -- +(-10,11) -- +(-10,-18);
\draw (D03.pin 6) -- +(4,0) -- +(4,17) -- +(-10.5,17) -- +(-10.5,-17);
\draw (and07.in 1) -- +(-3.5,0);
\draw (and06.in 1) -- +(-3,0);
\draw (and05.in 1) -- +(-3.5,0);
\draw (and04.in 1) -- +(-4,0);
\draw (and03.in 1) -- +(-4,0);
\draw (and02.in 1) -- +(-2.5,0);
\draw (and01.in 1) -- +(-3.0,0);
\draw (and00.in 1) -- +(-2.5,0);
\end{tikzpicture}