pull/2/head
Matthew Butterick 9 years ago
parent b1afb39b78
commit 6a351e1f0f

@ -21,4 +21,12 @@ CHIP DMux4Way {
PARTS: PARTS:
DMux(in=in, sel[0]=sel, a=a, b=b); DMux(in=in, sel[0]=sel, a=a, b=b);
DMux(in=in, sel[1]=sel, a=c, b=d); DMux(in=in, sel[1]=sel, a=c, b=d);
/*
// the right answer: note that subscripting on right always means "read this bit";
// subscripting on left means "write this bit"
// build out assignment operator
DMux(in=in, sel=sel[0], a=s0a, b=s0b);
DMux(in=s0b, sel=sel[1], a=b, b=d);
DMux(in=s0a, sel=sel[1], a=a, b=c);
*/
} }
Loading…
Cancel
Save