2023-05-14 02:15:03 +02:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2018 Wilson Snyder
|
2023-05-14 02:15:03 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
// bug1364
|
|
|
|
|
|
2026-03-03 13:21:24 +01:00
|
|
|
module t (
|
|
|
|
|
input clk,
|
|
|
|
|
input res
|
|
|
|
|
);
|
2023-05-14 02:15:03 +02:00
|
|
|
|
2026-03-03 13:21:24 +01:00
|
|
|
int arr[3];
|
|
|
|
|
initial begin
|
|
|
|
|
arr = '{
|
|
|
|
|
default: '0, //
|
|
|
|
|
1: '0, //
|
|
|
|
|
1: '1
|
|
|
|
|
}; // Bad
|
|
|
|
|
arr = '{'0, '1, '0, '1}; // Bad, too many
|
|
|
|
|
arr = '{'0, '1}; // Bad, too few
|
|
|
|
|
end
|
2023-05-14 02:15:03 +02:00
|
|
|
|
|
|
|
|
endmodule
|