You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

  1. \item \lect Compute the propositional formula of the following circuit.
  2. \tikzstyle{branch}=[fill,shape=circle,minimum size=3pt,inner sep=0pt]
  3. \begin{tikzpicture}[label distance=2mm]
  4. \node (a) at (0,0) {$a$};
  5. \node (b) at (0,-1) {$b$};
  6. \node (c) at (0,-2) {$c$};
  7. \node (z) at (8,-1) {$z$};
  8. \node (am) at (1,0) {};
  9. \node (bm) at (1,-1) {};
  10. \node[or gate US, draw, logic gate inputs=nn] at ($(2,-.5)$) (or1) {\tiny OR};
  11. \node[not gate US, draw, logic gate inputs=n] at ($(2,-2)$) (not1) {\tiny NOT};
  12. \node[and gate US, draw, logic gate inputs=nn] at ($(4,-1)$) (and1) {\tiny AND};
  13. \node[not gate US, draw, logic gate inputs=n] at ($(6,-1)$) (not2) {\tiny NOT};
  14. \node (or1m) at (3,-.5) {};
  15. \node (not1m) at (3,-2) {};
  16. \draw (a.east) -| (am.center) |- (or1.input 1);
  17. \draw (b.east) |- (bm.center) |- (or1.input 2);
  18. \draw (or1.output) |- (or1m.center) node[above] {$w$} |- (and1.input 1);
  19. \draw (c.east) |- (not1.input);
  20. \draw (not1.output) |- (not1m.center) node[below] {$x$} |- (and1.input 2);
  21. \draw (and1.output) -- node[below] {$y$} (not2.input);
  22. \draw (not2.output) -- (z);
  23. \end{tikzpicture}