chip design made easy

Popular Pages

online Verilog Code for mux

Verilog code sample for multiplexer.

module mux (a, b, c, d, select, out);
input a,b,c,d;
input [1:0] select;
output out;
reg out;

always @(a or b or c or d or select)
begin
case (select)
2'b00 : out = a;
2'b01 : out = b;
2'b10 : out = c;
default : out = d;
endcase
end
endmodule



People found these links also interested and knowledgeable

Register Transfer Language Discussions

Popular columns


Pool of Chip Articles are available.....