Created
June 7, 2016 01:01
-
-
Save hyperconcerto/1b7f27903e1c21c4c7ef1a8cb995058f to your computer and use it in GitHub Desktop.
This file contains 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 tb_led01; | |
reg clk; | |
reg res; | |
wire led0; | |
wire led1; | |
wire led2; | |
wire led3; | |
led01 led01( | |
.clk(clk), | |
.res(res), | |
.led0(led0), | |
.led1(led1), | |
.led2(led2), | |
.led3(led3) | |
); | |
always #10 clk = ~clk; | |
initial begin | |
#0 res = 1; | |
clk = 0; | |
#40 res = 0; | |
end | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment