summaryrefslogtreecommitdiff
path: root/template.tb.v
blob: a633fcbd74f231f41fee7e4cca60cd20a2c7eba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
`timescale 1us/1ns

module template_tb (
);

reg clk_i;
reg rst_i;

template uut(
  .clk_i(clk_i),
  .rst_i(rst_i)
);

string filename;
initial begin
`ifdef DUMP_FILE_NAME
  filename=`DUMP_FILE_NAME;
`else
  filename="template.lxt2";
`endif
  $dumpfile(filename); $dumpvars();
  clk_i <= 0;
  rst_i <= 1'b1;

end

always #10 clk_i = ~clk_i;

initial begin
  #100
  $finish();
end

endmodule