verilator/test_regress/t/t_sampled_expr_unsup.v

22 lines
428 B
Systemverilog
Raw Normal View History

2022-08-29 12:39:41 +00:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2022 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/
// Inputs
clk
);
input clk;
int a = 0;
2022-08-29 12:39:41 +00:00
function int f(output int a);
a = 1;
return a;
endfunction
2022-08-29 12:39:41 +00:00
assert property (@(posedge clk) f(a) >= 0);
2022-08-29 12:39:41 +00:00
endmodule