Completed And and Not gates

This commit is contained in:
Benjamyn Love 2018-04-22 01:08:50 +10:00
parent 8810895529
commit 7f0704ddf6
5 changed files with 13 additions and 4 deletions

View File

@ -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);
}

View File

@ -0,0 +1,5 @@
| a | b | out |
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |

View File

@ -13,5 +13,5 @@ CHIP Not {
OUT out;
PARTS:
// Put your code here:
}
Nand(a=in, b=in, out=out);
}

View File

@ -0,0 +1,3 @@
| in | out |
| 0 | 1 |
| 1 | 0 |

View File

@ -1 +1 @@
/home/benjamyn/.git/nand2tetris-work/nand2tetris/tools/builtInChips
/home/benjamyn/.git/nand2tetris-work/nand2tetris/projects/01