verilator/test_regress/t/t_unpacked_struct_redef.v

27 lines
560 B
Systemverilog
Raw Normal View History

2023-06-07 00:28:35 +02:00
// DESCRIPTION: Verilator: Verilog Test module
//
// 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