j_me41.v
532 Bytes
// $Id: j_me41.v,v 1.2 2002/11/13 01:38:38 rws Exp $
module j_me41 (z, i0, i1, i2, i3, s0, s1, en);
input i0, i1, i2, i3, s0, s1, en;
output z;
reg z;
always @(i0 or i1 or i2 or i3 or s0 or s1 or en)
case ({en,s1,s0})
3'b000: {z} = i0;
3'b001: {z} = i1;
3'b010: {z} = i2;
3'b011: {z} = i3;
3'b100: {z} = 1'b0;
3'b101: {z} = 1'b0;
3'b110: {z} = 1'b0;
3'b111: {z} = 1'b0;
default: {z} = 'bx;
endcase
endmodule