mirror of
https://github.com/verilator/verilator.git
synced 2025-01-25 07:44:14 +00:00
ed1a9309d4
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
27 lines
583 B
Systemverilog
27 lines
583 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
// any use, without warranty, 2023 by Antmicro Ltd.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
module t;
|
|
initial begin
|
|
int x = 0;
|
|
while (x < 10) begin : outer_loop
|
|
int y = 0;
|
|
while (y < x) begin : inner_loop
|
|
static int a = 0;
|
|
a++;
|
|
y++;
|
|
end
|
|
x++;
|
|
end
|
|
if (outer_loop.inner_loop.a != 45) $stop;
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
|
|
endmodule
|