2025-08-28 15:03:46 +02:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain
|
|
|
|
|
// SPDX-FileCopyrightText: 2025 Antmicro
|
2025-08-28 15:03:46 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
interface QBus(input logic k);
|
|
|
|
|
logic data;
|
|
|
|
|
endinterface
|
|
|
|
|
|
|
|
|
|
class cls;
|
|
|
|
|
virtual QBus vif1;
|
|
|
|
|
|
2025-10-08 03:06:11 +02:00
|
|
|
function void foo(virtual QBus vif2);
|
2025-08-28 15:03:46 +02:00
|
|
|
vif2.data = 1;
|
|
|
|
|
endfunction
|
|
|
|
|
endclass
|
|
|
|
|
|
2025-09-13 15:28:43 +02:00
|
|
|
module t;
|
2025-08-28 15:03:46 +02:00
|
|
|
|
|
|
|
|
cls bar;
|
|
|
|
|
|
|
|
|
|
initial begin
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
|
|
|
|
endmodule
|