2026-02-07 20:16:12 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2023 Antmicro Ltd
|
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
module t;
|
|
|
|
|
initial begin
|
2026-02-24 20:04:43 +01:00
|
|
|
static int x = 0;
|
2026-02-07 20:16:12 +01:00
|
|
|
while (x < 10) begin : outer_loop
|
2026-02-24 20:04:43 +01:00
|
|
|
static int y = 0;
|
2026-02-07 20:16:12 +01:00
|
|
|
while (y < x) begin : inner_loop
|
|
|
|
|
static int a = 0;
|
|
|
|
|
a++;
|
|
|
|
|
y++;
|
|
|
|
|
end
|
|
|
|
|
x++;
|
|
|
|
|
end
|
2026-02-24 20:04:43 +01:00
|
|
|
if (outer_loop.inner_loop.a != 9) $stop;
|
2026-02-07 20:16:12 +01:00
|
|
|
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
endmodule
|