4-Bit 4-to-1 Multiplexer

Interactive Logic Visualization

RTL Schematic Click inputs to cycle Hex • Click Sel to cycle 0-3
4 2 MUX 4:1 i0[3:0] i1[3:0] i2[3:0] i3[3:0] sel[1:0] y[3:0] 0 i0 1 i1 2 i2 3 i3 sel[1:0] 0 1 2 3 0 y
Status: Waiting...
Verilog Source
module mux_4to1_4bit ( input wire [3:0] i0, i1, i2, i3, input wire [1:0] sel, output reg [3:0] y ); always @(*) begin case (sel)
2'd0: y = i0;
2'd1: y = i1;
2'd2: y = i2;
2'd3: y = i3;
endcase end endmodule

Logic Analysis

Current state explanation...