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; bit a, b;
logic g = 0; logic g = 0;
// A module default clocking does NOT make a clockless sequence legal as an // Clockless `@seq` stays E_UNSUPPORTED even under a default clocking, matching
// event (confirmed against Questa); s_unclocked below stays E_UNSUPPORTED. // Questa; whether 9.4.2.4 should inherit it here is an open PR question.
default clocking @(posedge clk); default clocking @(posedge clk);
endclocking 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 %Error-UNSUPPORTED: t/t_sequence_ref_unsup.v:9:12: Unsupported: sequence referenced outside assertion property
14 | @s_one; : ... note: In instance 't'
| ^~~~~ 9 | sequence s_one;
| ^~~~~
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest ... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest
%Error: Exiting due to %Error: Exiting due to

View File

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