mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 23:57:35 +00:00
ce10dbd11c
git-svn-id: file://localhost/svn/verilator/trunk/verilator@753 77ca24e4-aefa-0310-84f0-b9a241c72d87
24 lines
619 B
Verilog
24 lines
619 B
Verilog
// $Id$
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2005 by Wilson Snyder.
|
|
|
|
module t (/*AUTOARG*/);
|
|
reg [1:0] dim0;
|
|
reg [1:0] dim1 [1:0];
|
|
reg [1:0] dim2 [1:0][1:0];
|
|
reg dim0nv[1:0];
|
|
|
|
initial begin
|
|
dim0[1][1] = 0; // Bad: Not arrayed
|
|
dim1[1][1][1] = 0; // Bad: Not arrayed to right depth
|
|
dim2[1][1][1] = 0; // OK
|
|
dim2[1][1:0] = 0; // Bad: Bitsel too soon
|
|
dim0nv[1:0] = 0; // Bad: Not vectored
|
|
dim0nv[1][1] = 0; // Bad: Not arrayed to right depth
|
|
end
|
|
|
|
endmodule
|
|
|