verilator/test_regress/t/t_force_readwrite.v

26 lines
459 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2025 by Antmicro.
// SPDX-License-Identifier: CC0-1.0
class Cls;
task take_ref(ref logic s);
endtask
endclass
module t;
logic a;
logic b = 1;
logic c;
Cls cls = new;
initial begin
force a = b;
cls.take_ref(c);
$write("*-* All Finished *-*\n");
$finish;
end
endmodule