aboutsummaryrefslogtreecommitdiff
path: root/projects/01
diff options
context:
space:
mode:
Diffstat (limited to 'projects/01')
-rw-r--r--projects/01/And.cmp5
-rw-r--r--projects/01/And.hdl20
-rw-r--r--projects/01/And.out5
-rw-r--r--projects/01/And.tst29
-rw-r--r--projects/01/And16.cmp7
-rw-r--r--projects/01/And16.hdl33
-rw-r--r--projects/01/And16.out7
-rw-r--r--projects/01/And16.tst39
-rw-r--r--projects/01/And1With16.hdl22
-rw-r--r--projects/01/DMux.cmp5
-rw-r--r--projects/01/DMux.hdl21
-rw-r--r--projects/01/DMux.out5
-rw-r--r--projects/01/DMux.tst27
-rw-r--r--projects/01/DMux4Way.cmp9
-rw-r--r--projects/01/DMux4Way.hdl23
-rw-r--r--projects/01/DMux4Way.out9
-rw-r--r--projects/01/DMux4Way.tst43
-rw-r--r--projects/01/DMux8Way.cmp17
-rw-r--r--projects/01/DMux8Way.hdl23
-rw-r--r--projects/01/DMux8Way.out17
-rw-r--r--projects/01/DMux8Way.tst75
-rw-r--r--projects/01/Mux.cmp9
-rw-r--r--projects/01/Mux.hdl22
-rw-r--r--projects/01/Mux.out9
-rw-r--r--projects/01/Mux.tst49
-rw-r--r--projects/01/Mux16.cmp9
-rw-r--r--projects/01/Mux16.hdl34
-rw-r--r--projects/01/Mux16.out9
-rw-r--r--projects/01/Mux16.tst49
-rw-r--r--projects/01/Mux4Way16.cmp9
-rw-r--r--projects/01/Mux4Way16.hdl23
-rw-r--r--projects/01/Mux4Way16.out9
-rw-r--r--projects/01/Mux4Way16.tst49
-rw-r--r--projects/01/Mux8Way16.cmp17
-rw-r--r--projects/01/Mux8Way16.hdl25
-rw-r--r--projects/01/Mux8Way16.out17
-rw-r--r--projects/01/Mux8Way16.tst89
-rw-r--r--projects/01/Not.cmp3
-rw-r--r--projects/01/Not.hdl18
-rw-r--r--projects/01/Not.out3
-rw-r--r--projects/01/Not.tst17
-rw-r--r--projects/01/Not16.cmp6
-rw-r--r--projects/01/Not16.hdl33
-rw-r--r--projects/01/Not16.out6
-rw-r--r--projects/01/Not16.tst29
-rw-r--r--projects/01/Or.cmp5
-rw-r--r--projects/01/Or.hdl21
-rw-r--r--projects/01/Or.out5
-rw-r--r--projects/01/Or.tst29
-rw-r--r--projects/01/Or16.cmp7
-rw-r--r--projects/01/Or16.hdl33
-rw-r--r--projects/01/Or16.out7
-rw-r--r--projects/01/Or16.tst39
-rw-r--r--projects/01/Or8Way.cmp6
-rw-r--r--projects/01/Or8Way.hdl24
-rw-r--r--projects/01/Or8Way.out6
-rw-r--r--projects/01/Or8Way.tst29
-rw-r--r--projects/01/Xor.cmp5
-rw-r--r--projects/01/Xor.hdl22
-rw-r--r--projects/01/Xor.out5
-rw-r--r--projects/01/Xor.tst29
61 files changed, 0 insertions, 1256 deletions
diff --git a/projects/01/And.cmp b/projects/01/And.cmp
deleted file mode 100644
index 75e709a..0000000
--- a/projects/01/And.cmp
+++ /dev/null
@@ -1,5 +0,0 @@
-| a | b | out |
-| 0 | 0 | 0 |
-| 0 | 1 | 0 |
-| 1 | 0 | 0 |
-| 1 | 1 | 1 |
diff --git a/projects/01/And.hdl b/projects/01/And.hdl
deleted file mode 100644
index 754e54e..0000000
--- a/projects/01/And.hdl
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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/And.hdl
-
-/**
- * And gate:
- * out = 1 if (a == 1 and b == 1)
- * 0 otherwise
- */
-
-CHIP And {
- IN a, b;
- OUT out;
-
- PARTS:
- // Put your code here:
- Nand (a=a, b=b, out=nandab);
- Not (in=nandab, out=out);
-}
diff --git a/projects/01/And.out b/projects/01/And.out
deleted file mode 100644
index 8199ca5..0000000
--- a/projects/01/And.out
+++ /dev/null
@@ -1,5 +0,0 @@
-| a | b | out |
-| 0 | 0 | 0 |
-| 0 | 1 | 0 |
-| 1 | 0 | 0 |
-| 1 | 1 | 1 |
diff --git a/projects/01/And.tst b/projects/01/And.tst
deleted file mode 100644
index 7ace19d..0000000
--- a/projects/01/And.tst
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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/And.tst
-
-load And.hdl,
-output-file And.out,
-compare-to And.cmp,
-output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;
-
-set a 0,
-set b 0,
-eval,
-output;
-
-set a 0,
-set b 1,
-eval,
-output;
-
-set a 1,
-set b 0,
-eval,
-output;
-
-set a 1,
-set b 1,
-eval,
-output;
diff --git a/projects/01/And16.cmp b/projects/01/And16.cmp
deleted file mode 100644
index 32c8648..0000000
--- a/projects/01/And16.cmp
+++ /dev/null
@@ -1,7 +0,0 @@
-| a | b | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 |
-| 0000000000000000 | 1111111111111111 | 0000000000000000 |
-| 1111111111111111 | 1111111111111111 | 1111111111111111 |
-| 1010101010101010 | 0101010101010101 | 0000000000000000 |
-| 0011110011000011 | 0000111111110000 | 0000110011000000 |
-| 0001001000110100 | 1001100001110110 | 0001000000110100 |
diff --git a/projects/01/And16.hdl b/projects/01/And16.hdl
deleted file mode 100644
index 10c8603..0000000
--- a/projects/01/And16.hdl
+++ /dev/null
@@ -1,33 +0,0 @@
-// 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/And16.hdl
-
-/**
- * 16-bit bitwise And:
- * for i = 0..15: out[i] = (a[i] and b[i])
- */
-
-CHIP And16 {
- IN a[16], b[16];
- OUT out[16];
-
- PARTS:
- // Put your code here:
- And (a=a[0], b=b[0], out=out[0]);
- And (a=a[1], b=b[1], out=out[1]);
- And (a=a[2], b=b[2], out=out[2]);
- And (a=a[3], b=b[3], out=out[3]);
- And (a=a[4], b=b[4], out=out[4]);
- And (a=a[5], b=b[5], out=out[5]);
- And (a=a[6], b=b[6], out=out[6]);
- And (a=a[7], b=b[7], out=out[7]);
- And (a=a[8], b=b[8], out=out[8]);
- And (a=a[9], b=b[9], out=out[9]);
- And (a=a[10], b=b[10], out=out[10]);
- And (a=a[11], b=b[11], out=out[11]);
- And (a=a[12], b=b[12], out=out[12]);
- And (a=a[13], b=b[13], out=out[13]);
- And (a=a[14], b=b[14], out=out[14]);
- And (a=a[15], b=b[15], out=out[15]);
-}
diff --git a/projects/01/And16.out b/projects/01/And16.out
deleted file mode 100644
index fb8dbfc..0000000
--- a/projects/01/And16.out
+++ /dev/null
@@ -1,7 +0,0 @@
-| a | b | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 |
-| 0000000000000000 | 1111111111111111 | 0000000000000000 |
-| 1111111111111111 | 1111111111111111 | 1111111111111111 |
-| 1010101010101010 | 0101010101010101 | 0000000000000000 |
-| 0011110011000011 | 0000111111110000 | 0000110011000000 |
-| 0001001000110100 | 1001100001110110 | 0001000000110100 |
diff --git a/projects/01/And16.tst b/projects/01/And16.tst
deleted file mode 100644
index c8921e7..0000000
--- a/projects/01/And16.tst
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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/And16.tst
-
-load And16.hdl,
-output-file And16.out,
-compare-to And16.cmp,
-output-list a%B1.16.1 b%B1.16.1 out%B1.16.1;
-
-set a %B0000000000000000,
-set b %B0000000000000000,
-eval,
-output;
-
-set a %B0000000000000000,
-set b %B1111111111111111,
-eval,
-output;
-
-set a %B1111111111111111,
-set b %B1111111111111111,
-eval,
-output;
-
-set a %B1010101010101010,
-set b %B0101010101010101,
-eval,
-output;
-
-set a %B0011110011000011,
-set b %B0000111111110000,
-eval,
-output;
-
-set a %B0001001000110100,
-set b %B1001100001110110,
-eval,
-output; \ No newline at end of file
diff --git a/projects/01/And1With16.hdl b/projects/01/And1With16.hdl
deleted file mode 100644
index c6d412c..0000000
--- a/projects/01/And1With16.hdl
+++ /dev/null
@@ -1,22 +0,0 @@
-CHIP And1With16 {
- IN a, b[16];
- OUT out[16];
-
- PARTS:
- And (a=a, b=b[0], out=out[0]);
- And (a=a, b=b[1], out=out[1]);
- And (a=a, b=b[2], out=out[2]);
- And (a=a, b=b[3], out=out[3]);
- And (a=a, b=b[4], out=out[4]);
- And (a=a, b=b[5], out=out[5]);
- And (a=a, b=b[6], out=out[6]);
- And (a=a, b=b[7], out=out[7]);
- And (a=a, b=b[8], out=out[8]);
- And (a=a, b=b[9], out=out[9]);
- And (a=a, b=b[10], out=out[10]);
- And (a=a, b=b[11], out=out[11]);
- And (a=a, b=b[12], out=out[12]);
- And (a=a, b=b[13], out=out[13]);
- And (a=a, b=b[14], out=out[14]);
- And (a=a, b=b[15], out=out[15]);
-}
diff --git a/projects/01/DMux.cmp b/projects/01/DMux.cmp
deleted file mode 100644
index 6982094..0000000
--- a/projects/01/DMux.cmp
+++ /dev/null
@@ -1,5 +0,0 @@
-| in | sel | a | b |
-| 0 | 0 | 0 | 0 |
-| 0 | 1 | 0 | 0 |
-| 1 | 0 | 1 | 0 |
-| 1 | 1 | 0 | 1 |
diff --git a/projects/01/DMux.hdl b/projects/01/DMux.hdl
deleted file mode 100644
index b528313..0000000
--- a/projects/01/DMux.hdl
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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:
- // Put your code here:
- Not (in=sel, out=notsel);
- And (a=in, b=notsel, out=a);
- And (a=in, b=sel, out=b);
-}
diff --git a/projects/01/DMux.out b/projects/01/DMux.out
deleted file mode 100644
index 9a92ec0..0000000
--- a/projects/01/DMux.out
+++ /dev/null
@@ -1,5 +0,0 @@
-| in | sel | a | b |
-| 0 | 0 | 0 | 0 |
-| 0 | 1 | 0 | 0 |
-| 1 | 0 | 1 | 0 |
-| 1 | 1 | 0 | 1 |
diff --git a/projects/01/DMux.tst b/projects/01/DMux.tst
deleted file mode 100644
index 4adbc43..0000000
--- a/projects/01/DMux.tst
+++ /dev/null
@@ -1,27 +0,0 @@
-// 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.tst
-
-load DMux.hdl,
-output-file DMux.out,
-compare-to DMux.cmp,
-output-list in%B3.1.3 sel%B3.1.3 a%B3.1.3 b%B3.1.3;
-
-set in 0,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set in 1,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
diff --git a/projects/01/DMux4Way.cmp b/projects/01/DMux4Way.cmp
deleted file mode 100644
index eac35c4..0000000
--- a/projects/01/DMux4Way.cmp
+++ /dev/null
@@ -1,9 +0,0 @@
-| in | sel | a | b | c | d |
-| 0 | 00 | 0 | 0 | 0 | 0 |
-| 0 | 01 | 0 | 0 | 0 | 0 |
-| 0 | 10 | 0 | 0 | 0 | 0 |
-| 0 | 11 | 0 | 0 | 0 | 0 |
-| 1 | 00 | 1 | 0 | 0 | 0 |
-| 1 | 01 | 0 | 1 | 0 | 0 |
-| 1 | 10 | 0 | 0 | 1 | 0 |
-| 1 | 11 | 0 | 0 | 0 | 1 |
diff --git a/projects/01/DMux4Way.hdl b/projects/01/DMux4Way.hdl
deleted file mode 100644
index 18b725d..0000000
--- a/projects/01/DMux4Way.hdl
+++ /dev/null
@@ -1,23 +0,0 @@
-// 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/DMux4Way.hdl
-
-/**
- * 4-way demultiplexor:
- * {a, b, c, d} = {in, 0, 0, 0} if sel == 00
- * {0, in, 0, 0} if sel == 01
- * {0, 0, in, 0} if sel == 10
- * {0, 0, 0, in} if sel == 11
- */
-
-CHIP DMux4Way {
- IN in, sel[2];
- OUT a, b, c, d;
-
- PARTS:
- // Put your code here:
- DMux (in=in, sel=sel[1], a=e, b=f);
- DMux (in=e, sel=sel[0], a=a, b=b);
- DMux (in=f, sel=sel[0], a=c, b=d);
-}
diff --git a/projects/01/DMux4Way.out b/projects/01/DMux4Way.out
deleted file mode 100644
index 9dd708f..0000000
--- a/projects/01/DMux4Way.out
+++ /dev/null
@@ -1,9 +0,0 @@
-| in | sel | a | b | c | d |
-| 0 | 00 | 0 | 0 | 0 | 0 |
-| 0 | 01 | 0 | 0 | 0 | 0 |
-| 0 | 10 | 0 | 0 | 0 | 0 |
-| 0 | 11 | 0 | 0 | 0 | 0 |
-| 1 | 00 | 1 | 0 | 0 | 0 |
-| 1 | 01 | 0 | 1 | 0 | 0 |
-| 1 | 10 | 0 | 0 | 1 | 0 |
-| 1 | 11 | 0 | 0 | 0 | 1 |
diff --git a/projects/01/DMux4Way.tst b/projects/01/DMux4Way.tst
deleted file mode 100644
index 6fbbb56..0000000
--- a/projects/01/DMux4Way.tst
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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/DMux4Way.tst
-
-load DMux4Way.hdl,
-output-file DMux4Way.out,
-compare-to DMux4Way.cmp,
-output-list in%B2.1.2 sel%B2.2.2 a%B2.1.2 b%B2.1.2 c%B2.1.2 d%B2.1.2;
-
-set in 0,
-set sel %B00,
-eval,
-output;
-
-set sel %B01,
-eval,
-output;
-
-set sel %B10,
-eval,
-output;
-
-set sel %B11,
-eval,
-output;
-
-set in 1,
-set sel %B00,
-eval,
-output;
-
-set sel %B01,
-eval,
-output;
-
-set sel %B10,
-eval,
-output;
-
-set sel %B11,
-eval,
-output;
diff --git a/projects/01/DMux8Way.cmp b/projects/01/DMux8Way.cmp
deleted file mode 100644
index 375d44a..0000000
--- a/projects/01/DMux8Way.cmp
+++ /dev/null
@@ -1,17 +0,0 @@
-| in | sel | a | b | c | d | e | f | g | h |
-| 0 | 000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 010 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 110 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 000 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 001 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 010 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 011 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
-| 1 | 100 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
-| 1 | 101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
-| 1 | 110 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
-| 1 | 111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
diff --git a/projects/01/DMux8Way.hdl b/projects/01/DMux8Way.hdl
deleted file mode 100644
index 6038fa6..0000000
--- a/projects/01/DMux8Way.hdl
+++ /dev/null
@@ -1,23 +0,0 @@
-// 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/DMux8Way.hdl
-
-/**
- * 8-way demultiplexor:
- * {a, b, c, d, e, f, g, h} = {in, 0, 0, 0, 0, 0, 0, 0} if sel == 000
- * {0, in, 0, 0, 0, 0, 0, 0} if sel == 001
- * etc.
- * {0, 0, 0, 0, 0, 0, 0, in} if sel == 111
- */
-
-CHIP DMux8Way {
- IN in, sel[3];
- OUT a, b, c, d, e, f, g, h;
-
- PARTS:
- // Put your code here:
- DMux (in=in, sel=sel[2], a=i, b=j);
- DMux4Way (in=i, sel=sel[0..1], a=a, b=b, c=c, d=d);
- DMux4Way (in=j, sel=sel[0..1], a=e, b=f, c=g, d=h);
-}
diff --git a/projects/01/DMux8Way.out b/projects/01/DMux8Way.out
deleted file mode 100644
index ebf9304..0000000
--- a/projects/01/DMux8Way.out
+++ /dev/null
@@ -1,17 +0,0 @@
-| in | sel | a | b | c | d | e | f | g | h |
-| 0 | 000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 010 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 110 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 0 | 111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 000 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 001 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 010 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
-| 1 | 011 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
-| 1 | 100 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
-| 1 | 101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
-| 1 | 110 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
-| 1 | 111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
diff --git a/projects/01/DMux8Way.tst b/projects/01/DMux8Way.tst
deleted file mode 100644
index 56d827e..0000000
--- a/projects/01/DMux8Way.tst
+++ /dev/null
@@ -1,75 +0,0 @@
-// 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/DMux8Way.tst
-
-load DMux8Way.hdl,
-output-file DMux8Way.out,
-compare-to DMux8Way.cmp,
-output-list in%B2.1.2 sel%B2.3.2 a%B2.1.2 b%B2.1.2 c%B2.1.2 d%B2.1.2 e%B2.1.2 f%B2.1.2 g%B2.1.2 h%B2.1.2;
-
-set in 0,
-set sel %B000,
-eval,
-output;
-
-set sel %B001,
-eval,
-output;
-
-set sel %B010,
-eval,
-output;
-
-set sel %B011,
-eval,
-output;
-
-set sel %B100,
-eval,
-output;
-
-set sel %B101,
-eval,
-output;
-
-set sel %B110,
-eval,
-output;
-
-set sel %B111,
-eval,
-output;
-
-set in 1,
-set sel %B000,
-eval,
-output;
-
-set sel %B001,
-eval,
-output;
-
-set sel %B010,
-eval,
-output;
-
-set sel %B011,
-eval,
-output;
-
-set sel %B100,
-eval,
-output;
-
-set sel %B101,
-eval,
-output;
-
-set sel %B110,
-eval,
-output;
-
-set sel %B111,
-eval,
-output;
diff --git a/projects/01/Mux.cmp b/projects/01/Mux.cmp
deleted file mode 100644
index 7a5cc5b..0000000
--- a/projects/01/Mux.cmp
+++ /dev/null
@@ -1,9 +0,0 @@
-| a | b | sel | out |
-| 0 | 0 | 0 | 0 |
-| 0 | 0 | 1 | 0 |
-| 0 | 1 | 0 | 0 |
-| 0 | 1 | 1 | 1 |
-| 1 | 0 | 0 | 1 |
-| 1 | 0 | 1 | 0 |
-| 1 | 1 | 0 | 1 |
-| 1 | 1 | 1 | 1 |
diff --git a/projects/01/Mux.hdl b/projects/01/Mux.hdl
deleted file mode 100644
index aac2e36..0000000
--- a/projects/01/Mux.hdl
+++ /dev/null
@@ -1,22 +0,0 @@
-// 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/Mux.hdl
-
-/**
- * Multiplexor:
- * out = a if sel == 0
- * b otherwise
- */
-
-CHIP Mux {
- IN a, b, sel;
- OUT out;
-
- PARTS:
- // Put your code here:
- Not (in=sel, out=notsel);
- And (a=a, b=notsel, out=aandnotsel);
- And (a=sel, b=b, out=selandb);
- Or (a=aandnotsel, b=selandb, out=out);
-}
diff --git a/projects/01/Mux.out b/projects/01/Mux.out
deleted file mode 100644
index e4b51c6..0000000
--- a/projects/01/Mux.out
+++ /dev/null
@@ -1,9 +0,0 @@
-| a | b | sel | out |
-| 0 | 0 | 0 | 0 |
-| 0 | 0 | 1 | 0 |
-| 0 | 1 | 0 | 0 |
-| 0 | 1 | 1 | 1 |
-| 1 | 0 | 0 | 1 |
-| 1 | 0 | 1 | 0 |
-| 1 | 1 | 0 | 1 |
-| 1 | 1 | 1 | 1 |
diff --git a/projects/01/Mux.tst b/projects/01/Mux.tst
deleted file mode 100644
index 9b7afd9..0000000
--- a/projects/01/Mux.tst
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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/Mux.tst
-
-load Mux.hdl,
-output-file Mux.out,
-compare-to Mux.cmp,
-output-list a%B3.1.3 b%B3.1.3 sel%B3.1.3 out%B3.1.3;
-
-set a 0,
-set b 0,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set a 0,
-set b 1,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set a 1,
-set b 0,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set a 1,
-set b 1,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
diff --git a/projects/01/Mux16.cmp b/projects/01/Mux16.cmp
deleted file mode 100644
index 661ee67..0000000
--- a/projects/01/Mux16.cmp
+++ /dev/null
@@ -1,9 +0,0 @@
-| a | b | sel | out |
-| 0000000000000000 | 0000000000000000 | 0 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 1 | 0000000000000000 |
-| 0000000000000000 | 0001001000110100 | 0 | 0000000000000000 |
-| 0000000000000000 | 0001001000110100 | 1 | 0001001000110100 |
-| 1001100001110110 | 0000000000000000 | 0 | 1001100001110110 |
-| 1001100001110110 | 0000000000000000 | 1 | 0000000000000000 |
-| 1010101010101010 | 0101010101010101 | 0 | 1010101010101010 |
-| 1010101010101010 | 0101010101010101 | 1 | 0101010101010101 |
diff --git a/projects/01/Mux16.hdl b/projects/01/Mux16.hdl
deleted file mode 100644
index ff09c6b..0000000
--- a/projects/01/Mux16.hdl
+++ /dev/null
@@ -1,34 +0,0 @@
-// 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/Mux16.hdl
-
-/**
- * 16-bit multiplexor:
- * for i = 0..15 out[i] = a[i] if sel == 0
- * b[i] if sel == 1
- */
-
-CHIP Mux16 {
- IN a[16], b[16], sel;
- OUT out[16];
-
- PARTS:
- // Put your code here:
- Mux (a=a[0], b=b[0], sel=sel, out=out[0]);
- Mux (a=a[1], b=b[1], sel=sel, out=out[1]);
- Mux (a=a[2], b=b[2], sel=sel, out=out[2]);
- Mux (a=a[3], b=b[3], sel=sel, out=out[3]);
- Mux (a=a[4], b=b[4], sel=sel, out=out[4]);
- Mux (a=a[5], b=b[5], sel=sel, out=out[5]);
- Mux (a=a[6], b=b[6], sel=sel, out=out[6]);
- Mux (a=a[7], b=b[7], sel=sel, out=out[7]);
- Mux (a=a[8], b=b[8], sel=sel, out=out[8]);
- Mux (a=a[9], b=b[9], sel=sel, out=out[9]);
- Mux (a=a[10], b=b[10], sel=sel, out=out[10]);
- Mux (a=a[11], b=b[11], sel=sel, out=out[11]);
- Mux (a=a[12], b=b[12], sel=sel, out=out[12]);
- Mux (a=a[13], b=b[13], sel=sel, out=out[13]);
- Mux (a=a[14], b=b[14], sel=sel, out=out[14]);
- Mux (a=a[15], b=b[15], sel=sel, out=out[15]);
-}
diff --git a/projects/01/Mux16.out b/projects/01/Mux16.out
deleted file mode 100644
index d2e472e..0000000
--- a/projects/01/Mux16.out
+++ /dev/null
@@ -1,9 +0,0 @@
-| a | b | sel | out |
-| 0000000000000000 | 0000000000000000 | 0 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 1 | 0000000000000000 |
-| 0000000000000000 | 0001001000110100 | 0 | 0000000000000000 |
-| 0000000000000000 | 0001001000110100 | 1 | 0001001000110100 |
-| 1001100001110110 | 0000000000000000 | 0 | 1001100001110110 |
-| 1001100001110110 | 0000000000000000 | 1 | 0000000000000000 |
-| 1010101010101010 | 0101010101010101 | 0 | 1010101010101010 |
-| 1010101010101010 | 0101010101010101 | 1 | 0101010101010101 |
diff --git a/projects/01/Mux16.tst b/projects/01/Mux16.tst
deleted file mode 100644
index cf34155..0000000
--- a/projects/01/Mux16.tst
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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/Mux16.tst
-
-load Mux16.hdl,
-output-file Mux16.out,
-compare-to Mux16.cmp,
-output-list a%B1.16.1 b%B1.16.1 sel%D2.1.2 out%B1.16.1;
-
-set a 0,
-set b 0,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set a %B0000000000000000,
-set b %B0001001000110100,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set a %B1001100001110110,
-set b %B0000000000000000,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set a %B1010101010101010,
-set b %B0101010101010101,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output; \ No newline at end of file
diff --git a/projects/01/Mux4Way16.cmp b/projects/01/Mux4Way16.cmp
deleted file mode 100644
index 8704e79..0000000
--- a/projects/01/Mux4Way16.cmp
+++ /dev/null
@@ -1,9 +0,0 @@
-| a | b | c | d | sel | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 00 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 01 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 10 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 11 | 0000000000000000 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 00 | 0001001000110100 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 01 | 1001100001110110 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 10 | 1010101010101010 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 11 | 0101010101010101 |
diff --git a/projects/01/Mux4Way16.hdl b/projects/01/Mux4Way16.hdl
deleted file mode 100644
index a47dbae..0000000
--- a/projects/01/Mux4Way16.hdl
+++ /dev/null
@@ -1,23 +0,0 @@
-// 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/Mux4Way16.hdl
-
-/**
- * 4-way 16-bit multiplexor:
- * out = a if sel == 00
- * b if sel == 01
- * c if sel == 10
- * d if sel == 11
- */
-
-CHIP Mux4Way16 {
- IN a[16], b[16], c[16], d[16], sel[2];
- OUT out[16];
-
- PARTS:
- // Put your code here:
- Mux16 (a=a, b=b, sel=sel[0], out=out1);
- Mux16 (a=c, b=d, sel=sel[0], out=out2);
- Mux16 (a=out1, b=out2, sel=sel[1], out=out);
-}
diff --git a/projects/01/Mux4Way16.out b/projects/01/Mux4Way16.out
deleted file mode 100644
index 659176d..0000000
--- a/projects/01/Mux4Way16.out
+++ /dev/null
@@ -1,9 +0,0 @@
-| a | b | c | d | sel | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 00 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 01 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 10 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 11 | 0000000000000000 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 00 | 0001001000110100 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 01 | 1001100001110110 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 10 | 1010101010101010 |
-| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 11 | 0101010101010101 |
diff --git a/projects/01/Mux4Way16.tst b/projects/01/Mux4Way16.tst
deleted file mode 100644
index 3f4efa3..0000000
--- a/projects/01/Mux4Way16.tst
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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/Mux4Way16.tst
-
-load Mux4Way16.hdl,
-output-file Mux4Way16.out,
-compare-to Mux4Way16.cmp,
-output-list a%B1.16.1 b%B1.16.1 c%B1.16.1 d%B1.16.1 sel%B2.2.2 out%B1.16.1;
-
-set a 0,
-set b 0,
-set c 0,
-set d 0,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set sel 2,
-eval,
-output;
-
-set sel 3,
-eval,
-output;
-
-set a %B0001001000110100,
-set b %B1001100001110110,
-set c %B1010101010101010,
-set d %B0101010101010101,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set sel 2,
-eval,
-output;
-
-set sel 3,
-eval,
-output;
diff --git a/projects/01/Mux8Way16.cmp b/projects/01/Mux8Way16.cmp
deleted file mode 100644
index 1484e0a..0000000
--- a/projects/01/Mux8Way16.cmp
+++ /dev/null
@@ -1,17 +0,0 @@
-| a | b | c | d | e | f | g | h | sel | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 000 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 001 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 010 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 011 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 100 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 101 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 110 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 111 | 0000000000000000 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 000 | 0001001000110100 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 001 | 0010001101000101 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 010 | 0011010001010110 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 011 | 0100010101100111 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 100 | 0101011001111000 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 101 | 0110011110001001 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 110 | 0111100010011010 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 111 | 1000100110101011 |
diff --git a/projects/01/Mux8Way16.hdl b/projects/01/Mux8Way16.hdl
deleted file mode 100644
index 6c88945..0000000
--- a/projects/01/Mux8Way16.hdl
+++ /dev/null
@@ -1,25 +0,0 @@
-// 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/Mux8Way16.hdl
-
-/**
- * 8-way 16-bit multiplexor:
- * out = a if sel == 000
- * b if sel == 001
- * etc.
- * h if sel == 111
- */
-
-CHIP Mux8Way16 {
- IN a[16], b[16], c[16], d[16],
- e[16], f[16], g[16], h[16],
- sel[3];
- OUT out[16];
-
- PARTS:
- // Put your code here:
- Mux4Way16 (a=a, b=b, c=c, d=d, sel=sel[0..1], out=out1);
- Mux4Way16 (a=e, b=f, c=g, d=h, sel=sel[0..1], out=out2);
- Mux16 (a=out1, b=out2, sel=sel[2], out=out);
-}
diff --git a/projects/01/Mux8Way16.out b/projects/01/Mux8Way16.out
deleted file mode 100644
index 11ff518..0000000
--- a/projects/01/Mux8Way16.out
+++ /dev/null
@@ -1,17 +0,0 @@
-| a | b | c | d | e | f | g | h | sel | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 000 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 001 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 010 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 011 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 100 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 101 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 110 | 0000000000000000 |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 111 | 0000000000000000 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 000 | 0001001000110100 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 001 | 0010001101000101 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 010 | 0011010001010110 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 011 | 0100010101100111 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 100 | 0101011001111000 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 101 | 0110011110001001 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 110 | 0111100010011010 |
-| 0001001000110100 | 0010001101000101 | 0011010001010110 | 0100010101100111 | 0101011001111000 | 0110011110001001 | 0111100010011010 | 1000100110101011 | 111 | 1000100110101011 |
diff --git a/projects/01/Mux8Way16.tst b/projects/01/Mux8Way16.tst
deleted file mode 100644
index 59bb41c..0000000
--- a/projects/01/Mux8Way16.tst
+++ /dev/null
@@ -1,89 +0,0 @@
-// 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/Mux8Way16.tst
-
-load Mux8Way16.hdl,
-output-file Mux8Way16.out,
-compare-to Mux8Way16.cmp,
-output-list a%B1.16.1 b%B1.16.1 c%B1.16.1 d%B1.16.1 e%B1.16.1 f%B1.16.1 g%B1.16.1 h%B1.16.1 sel%B2.3.2 out%B1.16.1;
-
-set a 0,
-set b 0,
-set c 0,
-set d 0,
-set e 0,
-set f 0,
-set g 0,
-set h 0,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set sel 2,
-eval,
-output;
-
-set sel 3,
-eval,
-output;
-
-set sel 4,
-eval,
-output;
-
-set sel 5,
-eval,
-output;
-
-set sel 6,
-eval,
-output;
-
-set sel 7,
-eval,
-output;
-
-set a %B0001001000110100,
-set b %B0010001101000101,
-set c %B0011010001010110,
-set d %B0100010101100111,
-set e %B0101011001111000,
-set f %B0110011110001001,
-set g %B0111100010011010,
-set h %B1000100110101011,
-set sel 0,
-eval,
-output;
-
-set sel 1,
-eval,
-output;
-
-set sel 2,
-eval,
-output;
-
-set sel 3,
-eval,
-output;
-
-set sel 4,
-eval,
-output;
-
-set sel 5,
-eval,
-output;
-
-set sel 6,
-eval,
-output;
-
-set sel 7,
-eval,
-output;
diff --git a/projects/01/Not.cmp b/projects/01/Not.cmp
deleted file mode 100644
index e8c1191..0000000
--- a/projects/01/Not.cmp
+++ /dev/null
@@ -1,3 +0,0 @@
-| in | out |
-| 0 | 1 |
-| 1 | 0 |
diff --git a/projects/01/Not.hdl b/projects/01/Not.hdl
deleted file mode 100644
index e8aac51..0000000
--- a/projects/01/Not.hdl
+++ /dev/null
@@ -1,18 +0,0 @@
-// 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/Not.hdl
-
-/**
- * Not gate:
- * out = not in
- */
-
-CHIP Not {
- IN in;
- OUT out;
-
- PARTS:
- // Put your code here:
- Nand (a=in, b=in, out=out);
-}
diff --git a/projects/01/Not.out b/projects/01/Not.out
deleted file mode 100644
index 7b64092..0000000
--- a/projects/01/Not.out
+++ /dev/null
@@ -1,3 +0,0 @@
-| in | out |
-| 0 | 1 |
-| 1 | 0 |
diff --git a/projects/01/Not.tst b/projects/01/Not.tst
deleted file mode 100644
index 1e3bbe7..0000000
--- a/projects/01/Not.tst
+++ /dev/null
@@ -1,17 +0,0 @@
-// 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/Not.tst
-
-load Not.hdl,
-output-file Not.out,
-compare-to Not.cmp,
-output-list in%B3.1.3 out%B3.1.3;
-
-set in 0,
-eval,
-output;
-
-set in 1,
-eval,
-output;
diff --git a/projects/01/Not16.cmp b/projects/01/Not16.cmp
deleted file mode 100644
index 68a5512..0000000
--- a/projects/01/Not16.cmp
+++ /dev/null
@@ -1,6 +0,0 @@
-| in | out |
-| 0000000000000000 | 1111111111111111 |
-| 1111111111111111 | 0000000000000000 |
-| 1010101010101010 | 0101010101010101 |
-| 0011110011000011 | 1100001100111100 |
-| 0001001000110100 | 1110110111001011 |
diff --git a/projects/01/Not16.hdl b/projects/01/Not16.hdl
deleted file mode 100644
index f24fdb0..0000000
--- a/projects/01/Not16.hdl
+++ /dev/null
@@ -1,33 +0,0 @@
-// 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/Not16.hdl
-
-/**
- * 16-bit Not:
- * for i=0..15: out[i] = not in[i]
- */
-
-CHIP Not16 {
- IN in[16];
- OUT out[16];
-
- PARTS:
- // Put your code here:
- Not (in=in[0], out=out[0]);
- Not (in=in[1], out=out[1]);
- Not (in=in[2], out=out[2]);
- Not (in=in[3], out=out[3]);
- Not (in=in[4], out=out[4]);
- Not (in=in[5], out=out[5]);
- Not (in=in[6], out=out[6]);
- Not (in=in[7], out=out[7]);
- Not (in=in[8], out=out[8]);
- Not (in=in[9], out=out[9]);
- Not (in=in[10], out=out[10]);
- Not (in=in[11], out=out[11]);
- Not (in=in[12], out=out[12]);
- Not (in=in[13], out=out[13]);
- Not (in=in[14], out=out[14]);
- Not (in=in[15], out=out[15]);
-}
diff --git a/projects/01/Not16.out b/projects/01/Not16.out
deleted file mode 100644
index ae2ad1d..0000000
--- a/projects/01/Not16.out
+++ /dev/null
@@ -1,6 +0,0 @@
-| in | out |
-| 0000000000000000 | 1111111111111111 |
-| 1111111111111111 | 0000000000000000 |
-| 1010101010101010 | 0101010101010101 |
-| 0011110011000011 | 1100001100111100 |
-| 0001001000110100 | 1110110111001011 |
diff --git a/projects/01/Not16.tst b/projects/01/Not16.tst
deleted file mode 100644
index e7e2c3b..0000000
--- a/projects/01/Not16.tst
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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/Not16.tst
-
-load Not16.hdl,
-output-file Not16.out,
-compare-to Not16.cmp,
-output-list in%B1.16.1 out%B1.16.1;
-
-set in %B0000000000000000,
-eval,
-output;
-
-set in %B1111111111111111,
-eval,
-output;
-
-set in %B1010101010101010,
-eval,
-output;
-
-set in %B0011110011000011,
-eval,
-output;
-
-set in %B0001001000110100,
-eval,
-output; \ No newline at end of file
diff --git a/projects/01/Or.cmp b/projects/01/Or.cmp
deleted file mode 100644
index dab924c..0000000
--- a/projects/01/Or.cmp
+++ /dev/null
@@ -1,5 +0,0 @@
-| a | b | out |
-| 0 | 0 | 0 |
-| 0 | 1 | 1 |
-| 1 | 0 | 1 |
-| 1 | 1 | 1 |
diff --git a/projects/01/Or.hdl b/projects/01/Or.hdl
deleted file mode 100644
index f539fbf..0000000
--- a/projects/01/Or.hdl
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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/Or.hdl
-
- /**
- * Or gate:
- * out = 1 if (a == 1 or b == 1)
- * 0 otherwise
- */
-
-CHIP Or {
- IN a, b;
- OUT out;
-
- PARTS:
- // Put your code here:
- Not (in=a, out=nota);
- Not (in=b, out=notb);
- Nand (a=nota, b=notb, out=out);
-}
diff --git a/projects/01/Or.out b/projects/01/Or.out
deleted file mode 100644
index 8010688..0000000
--- a/projects/01/Or.out
+++ /dev/null
@@ -1,5 +0,0 @@
-| a | b | out |
-| 0 | 0 | 0 |
-| 0 | 1 | 1 |
-| 1 | 0 | 1 |
-| 1 | 1 | 1 |
diff --git a/projects/01/Or.tst b/projects/01/Or.tst
deleted file mode 100644
index 948b6b3..0000000
--- a/projects/01/Or.tst
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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/Or.tst
-
-load Or.hdl,
-output-file Or.out,
-compare-to Or.cmp,
-output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;
-
-set a 0,
-set b 0,
-eval,
-output;
-
-set a 0,
-set b 1,
-eval,
-output;
-
-set a 1,
-set b 0,
-eval,
-output;
-
-set a 1,
-set b 1,
-eval,
-output;
diff --git a/projects/01/Or16.cmp b/projects/01/Or16.cmp
deleted file mode 100644
index e2c3a30..0000000
--- a/projects/01/Or16.cmp
+++ /dev/null
@@ -1,7 +0,0 @@
-| a | b | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 |
-| 0000000000000000 | 1111111111111111 | 1111111111111111 |
-| 1111111111111111 | 1111111111111111 | 1111111111111111 |
-| 1010101010101010 | 0101010101010101 | 1111111111111111 |
-| 0011110011000011 | 0000111111110000 | 0011111111110011 |
-| 0001001000110100 | 1001100001110110 | 1001101001110110 |
diff --git a/projects/01/Or16.hdl b/projects/01/Or16.hdl
deleted file mode 100644
index 4b46ec5..0000000
--- a/projects/01/Or16.hdl
+++ /dev/null
@@ -1,33 +0,0 @@
-// 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/Or16.hdl
-
-/**
- * 16-bit bitwise Or:
- * for i = 0..15 out[i] = (a[i] or b[i])
- */
-
-CHIP Or16 {
- IN a[16], b[16];
- OUT out[16];
-
- PARTS:
- // Put your code here:
- Or (a=a[0], b=b[0], out=out[0]);
- Or (a=a[1], b=b[1], out=out[1]);
- Or (a=a[2], b=b[2], out=out[2]);
- Or (a=a[3], b=b[3], out=out[3]);
- Or (a=a[4], b=b[4], out=out[4]);
- Or (a=a[5], b=b[5], out=out[5]);
- Or (a=a[6], b=b[6], out=out[6]);
- Or (a=a[7], b=b[7], out=out[7]);
- Or (a=a[8], b=b[8], out=out[8]);
- Or (a=a[9], b=b[9], out=out[9]);
- Or (a=a[10], b=b[10], out=out[10]);
- Or (a=a[11], b=b[11], out=out[11]);
- Or (a=a[12], b=b[12], out=out[12]);
- Or (a=a[13], b=b[13], out=out[13]);
- Or (a=a[14], b=b[14], out=out[14]);
- Or (a=a[15], b=b[15], out=out[15]);
-}
diff --git a/projects/01/Or16.out b/projects/01/Or16.out
deleted file mode 100644
index 8664afe..0000000
--- a/projects/01/Or16.out
+++ /dev/null
@@ -1,7 +0,0 @@
-| a | b | out |
-| 0000000000000000 | 0000000000000000 | 0000000000000000 |
-| 0000000000000000 | 1111111111111111 | 1111111111111111 |
-| 1111111111111111 | 1111111111111111 | 1111111111111111 |
-| 1010101010101010 | 0101010101010101 | 1111111111111111 |
-| 0011110011000011 | 0000111111110000 | 0011111111110011 |
-| 0001001000110100 | 1001100001110110 | 1001101001110110 |
diff --git a/projects/01/Or16.tst b/projects/01/Or16.tst
deleted file mode 100644
index ea7b944..0000000
--- a/projects/01/Or16.tst
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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/Or16.tst
-
-load Or16.hdl,
-output-file Or16.out,
-compare-to Or16.cmp,
-output-list a%B1.16.1 b%B1.16.1 out%B1.16.1;
-
-set a %B0000000000000000,
-set b %B0000000000000000,
-eval,
-output;
-
-set a %B0000000000000000,
-set b %B1111111111111111,
-eval,
-output;
-
-set a %B1111111111111111,
-set b %B1111111111111111,
-eval,
-output;
-
-set a %B1010101010101010,
-set b %B0101010101010101,
-eval,
-output;
-
-set a %B0011110011000011,
-set b %B0000111111110000,
-eval,
-output;
-
-set a %B0001001000110100,
-set b %B1001100001110110,
-eval,
-output; \ No newline at end of file
diff --git a/projects/01/Or8Way.cmp b/projects/01/Or8Way.cmp
deleted file mode 100644
index 3f9fd54..0000000
--- a/projects/01/Or8Way.cmp
+++ /dev/null
@@ -1,6 +0,0 @@
-| in | out |
-| 00000000 | 0 |
-| 11111111 | 1 |
-| 00010000 | 1 |
-| 00000001 | 1 |
-| 00100110 | 1 |
diff --git a/projects/01/Or8Way.hdl b/projects/01/Or8Way.hdl
deleted file mode 100644
index 495972b..0000000
--- a/projects/01/Or8Way.hdl
+++ /dev/null
@@ -1,24 +0,0 @@
-// 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/Or8Way.hdl
-
-/**
- * 8-way Or:
- * out = (in[0] or in[1] or ... or in[7])
- */
-
-CHIP Or8Way {
- IN in[8];
- OUT out;
-
- PARTS:
- // Put your code here:
- Or (a=in[0], b=in[1], out=in01);
- Or (a=in01, b=in[2], out=in02);
- Or (a=in02, b=in[3], out=in03);
- Or (a=in03, b=in[4], out=in04);
- Or (a=in04, b=in[5], out=in05);
- Or (a=in05, b=in[6], out=in06);
- Or (a=in06, b=in[7], out=out);
-}
diff --git a/projects/01/Or8Way.out b/projects/01/Or8Way.out
deleted file mode 100644
index b9f8d99..0000000
--- a/projects/01/Or8Way.out
+++ /dev/null
@@ -1,6 +0,0 @@
-| in | out |
-| 00000000 | 0 |
-| 11111111 | 1 |
-| 00010000 | 1 |
-| 00000001 | 1 |
-| 00100110 | 1 |
diff --git a/projects/01/Or8Way.tst b/projects/01/Or8Way.tst
deleted file mode 100644
index e6fbba7..0000000
--- a/projects/01/Or8Way.tst
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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/Or8Way.tst
-
-load Or8Way.hdl,
-output-file Or8Way.out,
-compare-to Or8Way.cmp,
-output-list in%B2.8.2 out%B2.1.2;
-
-set in %B00000000,
-eval,
-output;
-
-set in %B11111111,
-eval,
-output;
-
-set in %B00010000,
-eval,
-output;
-
-set in %B00000001,
-eval,
-output;
-
-set in %B00100110,
-eval,
-output; \ No newline at end of file
diff --git a/projects/01/Xor.cmp b/projects/01/Xor.cmp
deleted file mode 100644
index a1e07b2..0000000
--- a/projects/01/Xor.cmp
+++ /dev/null
@@ -1,5 +0,0 @@
-| a | b | out |
-| 0 | 0 | 0 |
-| 0 | 1 | 1 |
-| 1 | 0 | 1 |
-| 1 | 1 | 0 |
diff --git a/projects/01/Xor.hdl b/projects/01/Xor.hdl
deleted file mode 100644
index 5ec4579..0000000
--- a/projects/01/Xor.hdl
+++ /dev/null
@@ -1,22 +0,0 @@
-// 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/Xor.hdl
-
-/**
- * Exclusive-or gate:
- * out = not (a == b)
- */
-
-CHIP Xor {
- IN a, b;
- OUT out;
-
- PARTS:
- // Put your code here:
- Not (in=a, out=nota);
- Not (in=b, out=notb);
- And (a=a, b=notb, out=aandnotb);
- And (a=nota, b=b, out=notaandb);
- Or (a=aandnotb, b=notaandb, out=out);
-}
diff --git a/projects/01/Xor.out b/projects/01/Xor.out
deleted file mode 100644
index 73a8d0c..0000000
--- a/projects/01/Xor.out
+++ /dev/null
@@ -1,5 +0,0 @@
-| a | b | out |
-| 0 | 0 | 0 |
-| 0 | 1 | 1 |
-| 1 | 0 | 1 |
-| 1 | 1 | 0 |
diff --git a/projects/01/Xor.tst b/projects/01/Xor.tst
deleted file mode 100644
index 658cbe5..0000000
--- a/projects/01/Xor.tst
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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/Xor.tst
-
-load Xor.hdl,
-output-file Xor.out,
-compare-to Xor.cmp,
-output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;
-
-set a 0,
-set b 0,
-eval,
-output;
-
-set a 0,
-set b 1,
-eval,
-output;
-
-set a 1,
-set b 0,
-eval,
-output;
-
-set a 1,
-set b 1,
-eval,
-output;