verilator/test_regress/t/t_unpacked_struct_sel.v

19 lines
420 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2023 Antmicro Ltd
// SPDX-License-Identifier: CC0-1.0
2026-03-10 02:38:29 +01:00
typedef struct {bit [3:0] byte_en;} my_struct;
module t;
2026-03-10 02:38:29 +01:00
initial begin
my_struct ms;
ms.byte_en[0] = 1;
if (ms.byte_en[0] != 1) $stop;
2026-03-10 02:38:29 +01:00
$write("*-* All Finished *-*\n");
$finish;
end
endmodule