Add cost to README for Dmux8Way
This commit is contained in:
parent
f4dcbfd853
commit
de816a702f
|
@ -24,4 +24,4 @@ Build order as per the website. Cost for each gate in NAND in brackets.
|
|||
- [x] `Mux4Way16` (339)
|
||||
- [x] `Mux8Way16` (791)
|
||||
- [x] `DMux4Way` (37, Fun)
|
||||
- [ ] `DMux8Way` ()
|
||||
- [x] `DMux8Way` (101)
|
||||
|
|
|
@ -16,7 +16,6 @@ CHIP And {
|
|||
OUT out;
|
||||
|
||||
PARTS:
|
||||
// Put your code here:
|
||||
Nand(a=a, b=b, out=w);
|
||||
Nand(a=w, b=w, out=out);
|
||||
}
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
* b[i] if sel == 1
|
||||
*/
|
||||
|
||||
// COST = 113
|
||||
|
||||
CHIP Mux16 {
|
||||
IN a[16], b[16], sel;
|
||||
OUT out[16];
|
||||
|
||||
PARTS:
|
||||
// Put your code here:
|
||||
// 1 NAND
|
||||
Not(in=sel, out=n);
|
||||
|
||||
|
|
|
@ -15,6 +15,5 @@ CHIP Not {
|
|||
OUT out;
|
||||
|
||||
PARTS:
|
||||
// Put your code here:
|
||||
Nand(a=in,b=in,out=out);
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ CHIP Xor {
|
|||
OUT out;
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue