ABEL Program #3
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
B.OE = [S1 & S0, S1 & !S0, !S1 & S0, !S1 & !S0];
END
Previous slide
Next slide
Back to first slide
View graphic version