-
Notifications
You must be signed in to change notification settings - Fork 0
/
MUX8T1_32.v
46 lines (43 loc) · 989 Bytes
/
MUX8T1_32.v
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 00:52:55 12/28/2015
// Design Name:
// Module Name: MUX8T1_32
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module MUX8T1_32(input [2:0]s,
input [31:0]I0,
input [31:0]I1,
input [31:0]I2,
input [31:0]I3,
input [31:0]I4,
input [31:0]I5,
input [31:0]I6,
input [31:0]I7,
output reg[31:0]o
);
always@* //32位8选一,I0、I1、I2、……对应选择通道0、1、2、……
case(s)
3'b000: o <= I0;
3'b001: o <= I1;
3'b010: o <= I2;
3'b011: o <= I3;
3'b100: o <= I4;
3'b101: o <= I5;
3'b110: o <= I6;
3'b111: o <= I7;
endcase
endmodule