-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdriver_lights.v
More file actions
40 lines (37 loc) · 831 Bytes
/
Copy pathdriver_lights.v
File metadata and controls
40 lines (37 loc) · 831 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
37
38
39
40
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 13:59:47 12/22/2016
// Design Name:
// Module Name: driver_lights
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module driver_lights(
input [31:0] DIn,
input WE,
output [31:0] RD,
input clk,
input reset,
output reg [31:0] led_light
);
assign RD = (reset) ? 0:
led_light;
always@(posedge clk) begin
if (reset)
led_light <= 0;
else if (WE)
led_light <= DIn;
end
endmodule