mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
25 lines
502 B
Systemverilog
25 lines
502 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
// any use, without warranty, 2020 by Wilson Snyder.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t (/*AUTOARG*/);
|
|
|
|
integer a, b;
|
|
|
|
reg [2:0][2:0] array;
|
|
|
|
initial begin
|
|
foreach (array); // no index
|
|
|
|
foreach (array.array[a]); // not supported
|
|
|
|
foreach (array[a.b]); // no index
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
|
|
endmodule
|