Completed And and Not gates
This commit is contained in:
parent
8810895529
commit
7f0704ddf6
@ -14,5 +14,6 @@ CHIP And {
|
|||||||
OUT out;
|
OUT out;
|
||||||
|
|
||||||
PARTS:
|
PARTS:
|
||||||
// Put your code here:
|
Nand(a=a, b=b, out=nOut);
|
||||||
|
Not(in=nOut, out=out);
|
||||||
}
|
}
|
||||||
|
|||||||
5
nand2tetris/projects/01/And.out
Normal file
5
nand2tetris/projects/01/And.out
Normal file
@ -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;
|
OUT out;
|
||||||
|
|
||||||
PARTS:
|
PARTS:
|
||||||
// Put your code here:
|
Nand(a=in, b=in, out=out);
|
||||||
}
|
}
|
||||||
3
nand2tetris/projects/01/Not.out
Normal file
3
nand2tetris/projects/01/Not.out
Normal file
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user