Add missing samples

This commit is contained in:
Alex Dima 2020-09-21 12:18:52 +02:00
parent 26ff8cb857
commit db4c9f21b4
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
52 changed files with 5060 additions and 540 deletions

View file

@ -0,0 +1,28 @@
// File : tb_top.sv
module tb_top ();
reg clk;
reg resetn;
reg d;
wire q;
// Instantiate the design
d_ff d_ff0 ( .clk (clk),
.resetn (resetn),
.d (d),
.q (q));
// Create a clock
always #10 clk <= ~clk;
initial begin
resetn <= 0;
d <= 0;
#10 resetn <= 1;
#5 d <= 1;
#8 d <= 0;
#2 d <= 1;
#10 d <= 0;
end
endmodule