1
0
mirror of synced 2026-02-21 15:07:30 +00:00
Files
YosysHQ.yosys/tests/verilog/block_labels.ys
CORRADI Quentin e7156c644d Standard compliance for tests/verilog/block_labels.ys
genvar declaration cannot take an initial value when declared as a module_or_generate_item_declaration.
Correct this test so that it doesn't fail unexpectedly if Yosys aligns with the standard.
2023-05-21 16:38:14 -04:00

27 lines
382 B
Plaintext

read_verilog <<EOT
module foo;
genvar a;
for (a = 0; a < 10; a++) begin : a
end : a
endmodule
EOT
read_verilog <<EOT
module foo2;
genvar a;
for (a = 0; a < 10; a++) begin : a
end
endmodule
EOT
logger -expect error "Begin label \(a\) and end label \(b\) don't match\." 1
read_verilog <<EOT
module foo3;
genvar a;
for (a = 0; a < 10; a++) begin : a
end : b
endmodule
EOT