verilator/test_regress/t/t_struct_packed_init_bad.v

22 lines
399 B
Systemverilog
Raw Normal View History

2023-02-14 02:58:49 +01:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2023 Wilson Snyder
2023-02-14 02:58:49 +01:00
// SPDX-License-Identifier: CC0-1.0
module t;
2023-02-14 02:58:49 +01:00
2026-03-10 02:38:29 +01:00
parameter P = 4'h5;
2023-02-14 02:58:49 +01:00
2026-03-10 02:38:29 +01:00
struct packed {
bit [3:0] m_lo = P; // Bad
bit [3:0] m_hi;
} s;
2023-02-14 02:58:49 +01:00
2026-03-10 02:38:29 +01:00
initial begin
$write("*-* All Finished *-*\n");
$finish;
end
2023-02-14 02:58:49 +01:00
endmodule