-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLEDs.v
More file actions
36 lines (33 loc) · 753 Bytes
/
LEDs.v
File metadata and controls
36 lines (33 loc) · 753 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
32
33
34
35
36
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 01/23/2023 01:06:18 AM
// Design Name:
// Module Name: LEDs
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module LEDs(
input enable,
input [12:0]manualSwitch,
input [15:0] temp_data,
output reg[15:0]LED );
always@(*)
begin
if(enable)
LED[15:3] = temp_data[15:3];
else if(enable == 0)
LED[15:3] = manualSwitch[12:0];
end
endmodule