verilator/test_regress/t/t_sampled_expr_unsup.v

20 lines
373 B
Systemverilog
Raw Normal View History

2022-08-29 14:39:41 +02:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2022 Antmicro Ltd
2022-08-29 14:39:41 +02:00
// SPDX-License-Identifier: CC0-1.0
2026-03-10 02:38:29 +01:00
module t (
input clk
);
2022-08-29 14:39:41 +02:00
2026-03-10 02:38:29 +01:00
int a = 0;
2022-08-29 14:39:41 +02:00
2026-03-10 02:38:29 +01:00
function int f(output int a);
a = 1;
return a;
endfunction
2022-08-29 14:39:41 +02:00
2026-03-10 02:38:29 +01:00
assert property (@(posedge clk) f(a) >= 0);
2022-08-29 14:39:41 +02:00
endmodule