forked from zhzdeng/Single-cycle-CPU
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTwoInOneSelector.v
More file actions
31 lines (30 loc) · 748 Bytes
/
Copy pathTwoInOneSelector.v
File metadata and controls
31 lines (30 loc) · 748 Bytes
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 19:45:20 04/18/2016
// Design Name:
// Module Name: 32BitTwoInOneSelector
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module BitTwoInOneSelector32Bit(
input [31:0] ZeroInput,
input [31:0] OneInput,
input Control,
output reg[31:0] DataOutput
);
always @(Control or ZeroInput or OneInput) begin
DataOutput = (Control == 1) ? OneInput : ZeroInput;
end
endmodule