24 lines
582 B
Systemverilog
24 lines
582 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
// SPDX-FileCopyrightText: 2025 PlanV GmbH
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t_std_randomize_bad1;
|
|
bit [3:0] a;
|
|
|
|
function int run();
|
|
int success;
|
|
success = std::randomize(a + 1); // ERROR: argument is not a variable
|
|
return success;
|
|
endfunction
|
|
|
|
initial begin
|
|
int ok, x;
|
|
ok = run();
|
|
void'(std::randomize(null));
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
endmodule
|