2023-06-07 00:28:35 +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: 2023 Antmicro Ltd
|
2023-06-07 00:28:35 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
class Class #(
|
|
|
|
|
parameter WIDTH
|
|
|
|
|
);
|
|
|
|
|
typedef logic [WIDTH-1:0] word;
|
|
|
|
|
typedef struct {word w;} Struct;
|
2023-06-07 00:28:35 +02:00
|
|
|
endclass
|
|
|
|
|
|
|
|
|
|
module t;
|
2026-03-10 02:38:29 +01:00
|
|
|
Class #(1)::Struct s1;
|
|
|
|
|
Class #(1)::Struct s2;
|
|
|
|
|
Class #(2)::Struct s3;
|
2023-06-07 00:28:35 +02:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
initial begin
|
|
|
|
|
$display("%p", s1);
|
|
|
|
|
$display("%p", s2);
|
|
|
|
|
$display("%p", s3);
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2023-06-07 00:28:35 +02:00
|
|
|
endmodule
|