mirror of
https://github.com/soconnor0919/eceg431.git
synced 2025-12-11 22:54:43 -05:00
Implement multi-way gates: Or8Way, Mux4Way16, Mux8Way16, DMux4Way, DMux8Way
This commit is contained in:
@@ -18,5 +18,8 @@ CHIP DMux8Way {
|
||||
OUT a, b, c, d, e, f, g, h;
|
||||
|
||||
PARTS:
|
||||
//// Replace this comment with your code.
|
||||
// Use one DMux and two DMux4Way gates: first split by sel[2], then each half by sel[0..1]
|
||||
DMux(in=in, sel=sel[2], a=dmuxABCD, b=dmuxEFGH);
|
||||
DMux4Way(in=dmuxABCD, sel=sel[0..1], a=a, b=b, c=c, d=d);
|
||||
DMux4Way(in=dmuxEFGH, sel=sel[0..1], a=e, b=f, c=g, d=h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user