Skip to content

Instantly share code, notes, and snippets.

@hyperconcerto
Created June 7, 2016 01:01
Show Gist options
  • Save hyperconcerto/1b7f27903e1c21c4c7ef1a8cb995058f to your computer and use it in GitHub Desktop.
Save hyperconcerto/1b7f27903e1c21c4c7ef1a8cb995058f to your computer and use it in GitHub Desktop.
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