bwukki

Untitled

Nov 20th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. /**
  2. * Demultiplexor:
  3. * {a, b} = {in, 0} if sel == 0
  4. * {0, in} if sel == 1
  5. */
  6.  
  7. CHIP DMux {
  8. IN in, sel;
  9. OUT a, b;
  10.  
  11. PARTS:
  12. Nand(a = sel, b = sel, out = out1);
  13. Nand(a = sel, b = in, out = out2);
  14. Nand(a = out1, b = in, out = out3);
  15. Nand(a = out3, b = out3, out = a);
  16. Nand(a = out2, b = out2, out = b);
  17. }
Add Comment
Please, Sign In to add comment