verilator/test_regress/t/t_randomize_method_complex_bad.v

19 lines
439 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
class Cls;
Cls f;
rand int r;
endclass
module t (/*AUTOARG*/);
Cls x = new;
int i;
initial $display(
x.f.randomize(),
x.f.randomize() with { r < 5; },
i.randomize() with { v < 5; });
endmodule