2025-12-24 16:01:46 +01: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 Wilson Snyder
|
2025-12-24 16:01:46 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
package pkg;
|
|
|
|
|
class object_registry #(
|
|
|
|
|
type T = int
|
|
|
|
|
);
|
|
|
|
|
endclass
|
|
|
|
|
|
|
|
|
|
class packer;
|
|
|
|
|
typedef object_registry#(packer) type_id;
|
|
|
|
|
endclass
|
|
|
|
|
endpackage
|
|
|
|
|
|
|
|
|
|
package c_pkg;
|
|
|
|
|
import pkg::*;
|
|
|
|
|
class compat_packer extends pkg::packer;
|
|
|
|
|
typedef object_registry#(c_pkg::compat_packer) type_id;
|
|
|
|
|
endclass
|
|
|
|
|
endpackage
|
|
|
|
|
|
|
|
|
|
import pkg::*;
|
|
|
|
|
import c_pkg::*;
|
|
|
|
|
|
|
|
|
|
module t;
|
|
|
|
|
initial begin
|
|
|
|
|
compat_packer c;
|
|
|
|
|
c = new();
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
|
|
|
|
endmodule
|