From 911128cd7f510e8db000b755c7ac1d4d7ec05047 Mon Sep 17 00:00:00 2001 From: Kamil Danecki Date: Tue, 24 Mar 2026 11:04:37 +0100 Subject: [PATCH] Update tests Signed-off-by: Kamil Danecki --- test_regress/t/t_fork_write_after_timing.out | 17 +++++++++++++++++ test_regress/t/t_fork_write_after_timing.py | 4 ++-- test_regress/t/t_fork_write_after_timing.v | 6 +++++- test_regress/t/t_timing_func_fork_bad.v | 10 +++++----- 4 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 test_regress/t/t_fork_write_after_timing.out diff --git a/test_regress/t/t_fork_write_after_timing.out b/test_regress/t/t_fork_write_after_timing.out new file mode 100644 index 000000000..08d8e0da2 --- /dev/null +++ b/test_regress/t/t_fork_write_after_timing.out @@ -0,0 +1,17 @@ +t1 start 0 +t1 end 0 +t2 start -1 +t2 end -1 +t3 start 0 +t3 end 1 +t4 start -1 +t4 end 2 +t1 start 1 +t1 end 1 +t2 start 1 +t2 end 1 +t3 start 1 +t3 end 1 +t4 start 1 +t4 end 2 +*-* All Finished *-* diff --git a/test_regress/t/t_fork_write_after_timing.py b/test_regress/t/t_fork_write_after_timing.py index 3cc73805c..6f2f7c7d7 100755 --- a/test_regress/t/t_fork_write_after_timing.py +++ b/test_regress/t/t_fork_write_after_timing.py @@ -11,8 +11,8 @@ import vltest_bootstrap test.scenarios('simulator') -test.compile() +test.compile(verilator_flags2=["--Wno-initialdly", "--binary"]) -test.execute() +test.execute(expect_filename=test.golden_filename) test.passes() diff --git a/test_regress/t/t_fork_write_after_timing.v b/test_regress/t/t_fork_write_after_timing.v index de70ffb58..08d9c4228 100644 --- a/test_regress/t/t_fork_write_after_timing.v +++ b/test_regress/t/t_fork_write_after_timing.v @@ -11,17 +11,21 @@ module t; x2 = -1; x3 = -1; x4 = -1; + #1 t1(x1); t2(x2); t3(x3); t4(x4); + #10 t1(x1); t2(x1); t3(x1); t4(x1); - t5(x2); t6(x2); + + #5 $write("*-* All Finished *-*\n"); + $finish; end task t1(output int x); diff --git a/test_regress/t/t_timing_func_fork_bad.v b/test_regress/t/t_timing_func_fork_bad.v index d3319513a..d0e35c8b5 100644 --- a/test_regress/t/t_timing_func_fork_bad.v +++ b/test_regress/t/t_timing_func_fork_bad.v @@ -6,7 +6,7 @@ module t; - function int f1(output int o1); + function automatic int f1(output int o1); fork begin #1 $stop; @@ -16,7 +16,7 @@ module t; join_none endfunction - function int f2(inout io2); + function automatic int f2(inout io2); fork begin f2 = #5 0; @@ -27,7 +27,7 @@ module t; endfunction event e; - function int f3(output int o3); + function automatic int f3(output int o3); fork begin @e $stop; @@ -37,7 +37,7 @@ module t; join_none endfunction - function int f4(inout int io4); + function automatic int f4(inout int io4); fork begin f4 = @e 0; @@ -49,7 +49,7 @@ module t; int i; - function int f5(output int o5); + function automatic int f5(output int o5); fork begin wait (i == 0) $stop;