OpenCores
URL https://opencores.org/ocsvn/fpga-cf/fpga-cf/trunk

Subversion Repositories fpga-cf

[/] [fpga-cf/] [trunk/] [hdl/] [counting_led/] [counting_led.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 peteralieb
// Moving LED module
2
 
3
module counting_led
4
(
5
        input                           clk,
6
        input                           rst,
7
        output  [7:0]    leds
8
);
9
 
10
reg [7:0] count;
11
 
12
always @(posedge clk)
13
begin
14
        if (rst) count <= 0;
15
        else count <= count + 1;
16
end
17
 
18
assign leds = count;
19
 
20
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.