verilator/test_regress/t/t_unpacked_struct_sel.v
2023-07-25 12:50:24 +02:00

21 lines
444 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2023 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
typedef struct {
bit [3:0] byte_en;
} my_struct;
module t (/*AUTOARG*/);
initial begin
my_struct ms;
ms.byte_en[0] = 1;
if (ms.byte_en[0] != 1) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule