Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This file is part of www.nand2tetris.org
- // and the book "The Elements of Computing Systems"
- // by Nisan and Schocken, MIT Press.
- // File name: projects/01/FourAnd.hdl
- /**
- * 1bit bitwise 4And:
- * for i = 0..15: out[i] = (a[i] and b[i])
- */
- CHIP FourAnd {
- IN a, b, c, d;
- OUT out;
- PARTS:
- // Put your code here:
- ThreeAnd(a= a, b = b, c = c, out = q);
- And(a = d, b = q, out = out);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement