Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. begin{center}
  2. begin{tikzpicture}[circuit logic US]
  3. % The two gates
  4. node[xor gate, inputs={nn}] (xor) at (0,1) {};
  5. node[and gate, inputs={nn}] (and) at (0,0) {};
  6.  
  7. % XOR input wires
  8. draw (xor.input 1) --++(left:1cm);
  9. draw (xor.input 2) --++(left:1cm);
  10.  
  11. % Drawing the nodes to be connected with the AND gate inputs
  12. draw (xor.input 1) node[left=4mm](a) {};
  13. draw[fill] (a) circle (0.02);
  14. draw (xor.input 2) node[left=7mm](b) {};
  15. draw[fill] (b) circle (0.02);
  16.  
  17. draw (and.input 1) -| (a);
  18. draw (and.input 2) -| (b);
  19. end{tikzpicture}
  20. end{center}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement