26 lines
445 B
Systemverilog
26 lines
445 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain
|
|
// SPDX-FileCopyrightText: 2025 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
|