DMUX done. Almost getting better at this.

This commit is contained in:
Nemo 2020-05-19 19:03:02 +05:30
parent 2cfa691be3
commit 1ea9c671bf
2 changed files with 8 additions and 1 deletions

View File

@ -14,5 +14,7 @@ CHIP DMux {
OUT a, b;
PARTS:
// Put your code here:
And(a=in, b=sel, out=b);
Not(in=sel, out=nsel);
And(a=in, b=nsel, out=a);
}

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

@ -0,0 +1,5 @@
| in | sel | a | b |
| 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |