URL
https://opencores.org/ocsvn/fpga-cf/fpga-cf/trunk
Subversion Repositories fpga-cf
[/] [fpga-cf/] [trunk/] [hdl/] [lpm/] [mux4/] [lpm_mux4.v] - Rev 13
Go to most recent revision | Compare with Previous | Blame | View Log
// LPM Mux // Author: Peter Lieber // module lpm_mux4 ( in0, in1, in2, in3, s, out ); parameter WIDTH = 8; input wire [WIDTH-1:0] in0; input wire [WIDTH-1:0] in1; input wire [WIDTH-1:0] in2; input wire [WIDTH-1:0] in3; input wire [1:0] s; output reg [WIDTH-1:0] out; always @(in0 or in1 or in2 or in3 or s) begin case (s) 0: out = in0; 1: out = in1; 2: out = in2; default: out = in3; endcase end endmodule
Go to most recent revision | Compare with Previous | Blame | View Log