Tests: Fix some unusual check_finished cases.
This commit is contained in:
parent
6ea725f479
commit
b2dd5de860
|
|
@ -14,7 +14,9 @@ top_filename("t/t_assert_on.v");
|
||||||
|
|
||||||
compile();
|
compile();
|
||||||
|
|
||||||
execute();
|
execute(
|
||||||
|
check_finished => 1,
|
||||||
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ module t (/*AUTOARG*/
|
||||||
|
|
||||||
always @ (posedge clk) begin
|
always @ (posedge clk) begin
|
||||||
assert (0);
|
assert (0);
|
||||||
|
$write("*-* All Finished *-*\n");
|
||||||
$finish;
|
$finish;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@ compile(
|
||||||
v_flags2 => ["--exe $Self->{t_dir}/$Self->{name}.cpp"],
|
v_flags2 => ["--exe $Self->{t_dir}/$Self->{name}.cpp"],
|
||||||
);
|
);
|
||||||
|
|
||||||
execute();
|
execute(
|
||||||
|
check_finished => 0,
|
||||||
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
[0] %Error: t_randcase_bad.v:12: Assertion failed in top.t.unnamedblk1: All randcase items had 0 weights (IEEE 1800-2017 18.16)
|
[0] %Error: t_randcase_bad.v:12: Assertion failed in top.t.unnamedblk1: All randcase items had 0 weights (IEEE 1800-2017 18.16)
|
||||||
|
*-* All Finished *-*
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ module t (/*AUTOARG*/);
|
||||||
randcase // Bad all zero weights
|
randcase // Bad all zero weights
|
||||||
0 : $stop;
|
0 : $stop;
|
||||||
endcase
|
endcase
|
||||||
|
$write("*-* All Finished *-*\n");
|
||||||
$finish;
|
$finish;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
|
check_finished => 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue