-
Notifications
You must be signed in to change notification settings - Fork 1
/
MUX_32bit_8to1.v
43 lines (42 loc) · 1.04 KB
/
MUX_32bit_8to1.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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 16:15:29 11/29/2016
// Design Name:
// Module Name: MUX_32bit_8to1
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module MUX_32bit_8to1(
input [31:0] _000,
input [31:0] _001,
input [31:0] _010,
input [31:0] _011,
input [31:0] _100,
input [31:0] _101,
input [31:0] _110,
input [31:0] _111,
input [2:0] sel,
output [31:0] out
);
assign out = (sel == 3'b000) ? _000 :
(sel == 3'b001) ? _001 :
(sel == 3'b010) ? _010 :
(sel == 3'b011) ? _011 :
(sel == 3'b100) ? _100 :
(sel == 3'b101) ? _101 :
(sel == 3'b110) ? _110 :
(sel == 3'b111) ? _111 :
32'dz;
endmodule