PPT Slide
module mux4( z, Select, in0, in1, in2, in3);
input [1:0] Select;
input in0, in1, in2, in3;
output z;
reg z;
always @(Select or in0 or in1 or in2 or in3)
case (Select)
2'b00: z = in0;
2'b01: z = in1;
2'b10: z = in2;
2'b11: z = in3;
default: z = 1'bx;
endcase
endmodule
Note the multi-bit input
2-bit value
Previous slide
Next slide
Back to first slide
View graphic version