verilator/test_regress/t/t_timing_func_bad.v

49 lines
683 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2022 Antmicro Ltd
// SPDX-License-Identifier: CC0-1.0
module t;
function int f1;
#1 $stop;
f1 = 0;
endfunction
function int f2;
f2 = #5 0;
$stop;
endfunction
event e;
function int f3;
@e $stop;
f3 = 0;
endfunction
function int f4;
f4 = @e 0;
$stop;
endfunction
int i;
function int f5;
wait (i == 0) $stop;
f5 = 0;
endfunction
initial begin
i = f1();
$write("*-* All Finished *-*\n");
$finish;
end
final begin
#1;
$stop;
end
endmodule