verilator/test_regress/t/t_assert_consec_rep_unsup.v

19 lines
532 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2026 PlanV GmbH
// SPDX-License-Identifier: CC0-1.0
module t (
input clk
);
logic a, b;
// Unsupported: multi-cycle sequence expression inside consecutive repetition
assert property (@(posedge clk) (a ##1 b) [* 2] |-> a);
// Unsupported: the same operand restriction applies to unbounded repetition
assert property (@(posedge clk) (a ##1 b) [* 2:$] |-> a);
endmodule