DMUX done. Almost getting better at this.
This commit is contained in:
parent
2cfa691be3
commit
1ea9c671bf
|
@ -14,5 +14,7 @@ CHIP DMux {
|
||||||
OUT a, b;
|
OUT a, b;
|
||||||
|
|
||||||
PARTS:
|
PARTS:
|
||||||
// Put your code here:
|
And(a=in, b=sel, out=b);
|
||||||
|
Not(in=sel, out=nsel);
|
||||||
|
And(a=in, b=nsel, out=a);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
| in | sel | a | b |
|
||||||
|
| 0 | 0 | 0 | 0 |
|
||||||
|
| 0 | 1 | 0 | 0 |
|
||||||
|
| 1 | 0 | 1 | 0 |
|
||||||
|
| 1 | 1 | 0 | 1 |
|
Loading…
Reference in New Issue