bwukki

Untitled

Nov 20th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. /** Outputs 1 if either or both inputs are 1
  2. Author: Curtis Michels
  3. */
  4.  
  5. CHIP Or {
  6. IN a, b;
  7. OUT out; // 1 if they are the same
  8. PARTS:
  9. Nand(a=a, b=a, out = na);
  10. Nand(a=b, b=b, out = nb);
  11. Nand(a=na, b=nb, out = out);
  12. }
Add Comment
Please, Sign In to add comment