2025-07-16 18:07:34 +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: 2025 Antmicro
|
2025-07-16 18:07:34 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
class Class1;
|
|
|
|
|
int value0 = 7;
|
|
|
|
|
endclass
|
|
|
|
|
|
|
|
|
|
module t;
|
|
|
|
|
initial begin
|
2026-02-09 00:20:28 +01:00
|
|
|
int i;
|
2025-07-16 18:07:34 +02:00
|
|
|
Class1 q[15];
|
|
|
|
|
for (int j = 0; j < 15; j = j + 1) begin
|
2026-02-09 00:20:28 +01:00
|
|
|
automatic Class1 x = new;
|
2025-07-16 18:07:34 +02:00
|
|
|
q[j] = x;
|
|
|
|
|
end
|
|
|
|
|
while (i < 15) begin
|
|
|
|
|
if ((q[i].value0 > 8) || (q[i].value0 < 5)) $stop;
|
|
|
|
|
i += 1;
|
|
|
|
|
end
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
|
|
|
|
endmodule
|