dp_8to1mx16.v
1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
*************************************************************************
* *
* Project Reality *
* *
* module: dp_8to1mx16.v *
* description: 16 bit 8 to 1 high performance mux using j_mx81 cells *
* *
* designer: Brian Ferguson *
* date: 3/15/95 *
* *
*************************************************************************
*/
// $Id: dp_8to1mx16.v,v 1.3 2003/01/23 18:51:34 berndt Exp $
module dp_8to1mx16 ( input0, input1, input2, input3,
input4, input5, input6, input7,
select, output_data );
input [15:0] input0 ;
input [15:0] input1 ;
input [15:0] input2 ;
input [15:0] input3 ;
input [15:0] input4 ;
input [15:0] input5 ;
input [15:0] input6 ;
input [15:0] input7 ;
input [2:0] select ;
output [15:0] output_data ;
reg [15:0] output_data ;
always @(select or input0 or input1 or input2 or input3 or input4 or input5 or input6 or input7)
begin
case(select)
3'd0: output_data <= input0;
3'd1: output_data <= input1;
3'd2: output_data <= input2;
3'd3: output_data <= input3;
3'd4: output_data <= input4;
3'd5: output_data <= input5;
3'd6: output_data <= input6;
3'd7: output_data <= input7;
default: output_data <= 16'bx;
endcase
end
endmodule // dp_8to1mx16