Cover sequence-referenced-outside-assertion message via nested sequence test

This commit is contained in:
Yilou Wang 2026-06-26 13:30:48 +02:00
parent 128d999871
commit d607a771e9
3 changed files with 11 additions and 10 deletions

View File

@ -10,8 +10,8 @@ module t (
bit a, b;
logic g = 0;
// A module default clocking does NOT make a clockless sequence legal as an
// event (confirmed against Questa); s_unclocked below stays E_UNSUPPORTED.
// Clockless `@seq` stays E_UNSUPPORTED even under a default clocking, matching
// Questa; whether 9.4.2.4 should inherit it here is an open PR question.
default clocking @(posedge clk);
endclocking

View File

@ -1,5 +1,6 @@
%Error-UNSUPPORTED: t/t_sequence_ref_unsup.v:14:6: Unsupported: '@' event control on a sequence without a clocking event
14 | @s_one;
| ^~~~~
%Error-UNSUPPORTED: t/t_sequence_ref_unsup.v:9:12: Unsupported: sequence referenced outside assertion property
: ... note: In instance 't'
9 | sequence s_one;
| ^~~~~
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest
%Error: Exiting due to

View File

@ -10,10 +10,10 @@ module t;
1;
endsequence
initial begin
@s_one;
$display("got sequence");
$finish;
end
// s_one is referenced only from another sequence that is never expanded into
// an assertion, so it is left referenced outside any assertion property.
sequence s_two;
s_one ##1 1;
endsequence
endmodule