Add cost to README for Dmux8Way

pull/1/head
Nemo 3 years ago
parent f4dcbfd853
commit de816a702f
  1. 2
      README.md
  2. 1
      projects/01/And.hdl
  3. 3
      projects/01/Mux16.hdl
  4. 1
      projects/01/Not.hdl
  5. 1
      projects/01/Xor.hdl

@ -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…
Cancel
Save