Completed And and Not gates
This commit is contained in:
1 parent
8810895529
commit
7f0704ddf6
5 files changed
+12
-3
No files matched your search
@@ -14,5 +14,6 @@ CHIP And {
|
||||
OUT out;
|
||||
|
||||
PARTS:
|
||||
// Put your code here:
|
||||
Nand(a=a, b=b, out=nOut);
|
||||
Not(in=nOut, out=out);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
| a | b | out |
|
||||
| 0 | 0 | 0 |
|
||||
| 0 | 1 | 0 |
|
||||
| 1 | 0 | 0 |
|
||||
| 1 | 1 | 1 |
|
||||
@@ -13,5 +13,5 @@ CHIP Not {
|
||||
OUT out;
|
||||
|
||||
PARTS:
|
||||
// Put your code here:
|
||||
Nand(a=in, b=in, out=out);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
| in | out |
|
||||
| 0 | 1 |
|
||||
| 1 | 0 |
|
||||
@@ -1 +1 @@
|
||||
/home/benjamyn/.git/nand2tetris-work/nand2tetris/tools/builtInChips
|
||||
/home/benjamyn/.git/nand2tetris-work/nand2tetris/projects/01
|
||||
Reference in new issue
Block a user