mirror of
https://github.com/soconnor0919/eceg431.git
synced 2025-12-11 22:54:43 -05:00
project01: Comments/cleanup
This commit is contained in:
@@ -20,7 +20,9 @@ CHIP Mux8Way16 {
|
||||
OUT out[16];
|
||||
|
||||
PARTS:
|
||||
Mux4Way16(a=a, b=b, c=c, d=d, sel=sel[0..1], out=tmp1);
|
||||
Mux4Way16(a=e, b=f, c=g, d=h, sel=sel[0..1], out=tmp2);
|
||||
Mux16(a=tmp1, b=tmp2, sel=sel[2], out=out);
|
||||
// sel[0..1] pick from each group
|
||||
Mux4Way16(a=a, b=b, c=c, d=d, sel=sel[0..1], out=lowGroup); // group abcd
|
||||
Mux4Way16(a=e, b=f, c=g, d=h, sel=sel[0..1], out=highGroup); // group efgh
|
||||
// sel[2] pick which group
|
||||
Mux16(a=lowGroup, b=highGroup, sel=sel[2], out=out);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user