File tree 3 files changed +14
-4
lines changed
example_projects/testbench_template_tb
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ set vsim_params "-L altera_mf_ver -L altera_mf -L lpm_ver -L lpm"
28
28
29
29
set top_level work.main_tb
30
30
31
+ set suppress_err_list " "
32
+
31
33
# Console commands:
32
34
# r = Recompile changed and dependent files
33
35
# rr = Recompile everything
@@ -61,7 +63,7 @@ foreach {library file_list} $library_file_list {
61
63
if [regexp {.vhdl?$} $file ] {
62
64
vcom -93 $file
63
65
} else {
64
- vlog $file
66
+ vlog $file -suppress $suppress_err_list
65
67
}
66
68
set last_compile_time 0
67
69
}
Original file line number Diff line number Diff line change 1
1
// ------------------------------------------------------------------------------
2
2
// main_tb.sv
3
+ // published as part of https://github.com/pConst/basic_verilog
3
4
// Konstantin Pavlov, [email protected]
4
5
// ------------------------------------------------------------------------------
5
6
@@ -21,11 +22,17 @@ initial begin
21
22
end
22
23
23
24
// external device "asynchronous" clock
24
- logic clk33 ;
25
+ logic clk33a ;
25
26
initial begin
26
- # 0 clk33 = 1'b0 ;
27
+ # 0 clk33a = 1'b0 ;
27
28
forever
28
- # 15 .151 clk33 = ~ clk33;
29
+ # 7 clk33a = ~ clk33a;
30
+ end
31
+
32
+ logic clk33;
33
+ // assign clk33 = clk33a;
34
+ always @ (* ) begin
35
+ clk33 = # ($urandom_range (0 , 2000 )* 10ps ) clk33a;
29
36
end
30
37
31
38
logic rst;
Original file line number Diff line number Diff line change 1
1
// ------------------------------------------------------------------------------
2
2
// main_tb.sv
3
+ // published as part of https://github.com/pConst/basic_verilog
3
4
// Konstantin Pavlov, [email protected]
4
5
// ------------------------------------------------------------------------------
5
6
You can’t perform that action at this time.
0 commit comments