Initial Commit with everything done

This commit is contained in:
2021-04-13 00:07:23 +03:00
commit 20cf599d89
33 changed files with 1019 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
// 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/DMux.hdl
/**
* Demultiplexor:
* {a, b} = {in, 0} if sel == 0
* {0, in} if sel == 1
*/
CHIP DMux {
IN in, sel;
OUT a, b;
PARTS:
And(a=in,b=sel,out=b);
Not(in=sel,out=negSel);
And(a=in,b=negSel,out=a);
}