This commit is contained in:
Nemo 2020-05-19 18:26:05 +05:30
parent 1b1b3f4cdd
commit 627d56f1eb
2 changed files with 9 additions and 1 deletions

View File

@ -14,4 +14,7 @@ CHIP Xor {
PARTS:
// Put your code here:
}
Nand(a=a, b=b, out=w);
Or(a=a, b=b, out=x);
And(a=x, b=w, out=out);
}

5
projects/01/Xor.out Normal file
View File

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