Add cost to README for Dmux8Way

This commit is contained in:
Nemo 2020-05-20 14:46:51 +05:30
parent f4dcbfd853
commit de816a702f
5 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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);
}

View File

@ -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);

View File

@ -15,6 +15,5 @@ CHIP Not {
OUT out;
PARTS:
// Put your code here:
Nand(a=in,b=in,out=out);
}

View File

@ -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);