Public » Elements of Computing
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Mux4Way16 and Mux8Way16

Changeset c98c2fe2cfa3

Parent 681272718683

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to 2 files · Browse files at c98c2fe2cfa3 Showing diff from parent 681272718683 Diff from another changeset...

Change 1 of 1 Show Entire File 01/​Mux4Way16.hdl Stacked
 
16
17
18
19
20
 
 
 
 
 
 
16
17
18
 
 
 
19
20
21
22
@@ -16,5 +16,7 @@
  OUT out[16];     PARTS: - // Put your code here: -} \ No newline at end of file
+ Mux16(a=a, b=b, sel=sel[0], out=ab); + Mux16(a=c, b=d, sel=sel[0], out=cd); + Mux16(a=ab, b=cd, sel=sel[1], out=out); +}
Change 1 of 1 Show Entire File 01/​Mux8Way16.hdl Stacked
 
18
19
20
21
22
 
 
 
 
 
 
18
19
20
 
 
 
21
22
23
24
@@ -18,5 +18,7 @@
  OUT out[16];     PARTS: - // Put your code here: -} \ No newline at end of file
+ Mux4Way16(a=a, b=b, c=c, d=d, sel=sel[0..1], out=abcd); + Mux4Way16(a=e, b=f, c=g, d=h, sel=sel[0..1], out=efgh); + Mux16(a=abcd, b=efgh, sel=sel[2], out=out); +}