dp_4to1mx16.v 980 Bytes
/*
*************************************************************************
*									*
*  Project Reality							*
*									*
*  module:	dp_4to1mx16.v.v						*
*  description:	16 bit 4 to 1 high performance mux using j_me41 cells	*
*									*
*  designer:	Brian Ferguson						*
*  date:	3/15/95							*
*									*
*************************************************************************
*/

// $Id: dp_4to1mx16.v,v 1.3 2003/01/23 18:51:34 berndt Exp $

module dp_4to1mx16 ( input0, input1, input2, input3, select, output_data );

input	[15:0]	input0 ;
input	[15:0]	input1 ;
input	[15:0]	input2 ;
input	[15:0]	input3 ;
input	[1:0]	select ;
output	[15:0]	output_data ;
reg	[15:0]	output_data ;

always @(select or input0 or input1 or input2 or input3)
begin
	case(select)
		2'b00: output_data <= input0;
		2'b01: output_data <= input1;
		2'b10: output_data <= input2;
		2'b11: output_data <= input3;
		default: output_data <= 16'bx;
	endcase
end

endmodule  //  dp_4to1mx16.v