Created
August 31, 2016 07:17
-
-
Save tanakamura/7f02515f4ae2a5e7b35724f21557b532 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module top | |
( | |
input CLK100MHZ, | |
input [3:0] btn, | |
output [3:0] led | |
); | |
reg [31:0] counter; | |
always @(posedge CLK100MHZ) | |
begin | |
counter = counter + 1; | |
end | |
assign led = counter[31:28]; | |
endmodule // top | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment