2025-09-21 15:41:58 +02:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
|
// any use, without warranty, 2025 by Wilson Snyder.
|
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
module t;
|
|
|
|
|
int array_bad[0]; // <--- Error: Must be positive size
|
|
|
|
|
int array2_bad[-1]; // <--- Error: Must be positive size
|
2025-10-08 02:36:50 +02:00
|
|
|
localparam X = 32'bz;
|
|
|
|
|
logic [X:0] x; // <--- Error: X range
|
2025-09-21 15:41:58 +02:00
|
|
|
sub #(1) u_sub();
|
|
|
|
|
endmodule
|
|
|
|
|
|
|
|
|
|
module sub #(parameter SIZE=0);
|
|
|
|
|
int ignore[SIZE];
|
|
|
|
|
endmodule
|