verilator/test_regress/t/t_order_blkloopinit_bad.v

31 lines
625 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Test of select from constant
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2020 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
// verilator lint_off MULTIDRIVEN
module t (/*AUTOARG*/
2026-03-10 02:38:29 +01:00
// Outputs
o,
// Inputs
clk
);
input clk;
output int o;
2026-03-10 02:38:29 +01:00
localparam SIZE = 65536;
2026-03-10 02:38:29 +01:00
// Unsupported case 1: Array NBA to compund type
class C; endclass
C array2[SIZE];
always @ (negedge clk) begin
o <= int'(array2[1] == null);
for (int i=0; i<SIZE; i++) begin
array2[i] <= null; // BLKLOOPINIT
end
end
endmodule