ABEL Program #1
MODULE MUX
INTERFACE (A3..A0, S1, S0 -> B3..B0);
TITLE '4-1 Multiplexor'
"Inputs
A3..A0 PIN; " data inputs
S1, S0 PIN; " Rotate amount
"Outputs
B3..B0 PIN; " data outputs
"Aliases
A = [A3..A0];
B = [B3..B0];
S = [S1,S0];
EQUATIONS
B3.OE = S1 & S0;
B2.OE = S1 & !S0;
B1.OE = !S1 & S0;
B0.OE = !S1 & !S0;
END
Previous slide
Next slide
Back to first slide
View graphic version