You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iverilog (latest master, ef7f0a8) accepts this code and generates a.out without any errors or warnings.
Verilator as well as other commercial simulators available on https://www.edaplayground.com/ complained about syntax error of nested generate regions.
According to IEEE Std 1364™-2005, Annex A:
"generate_region" can produce the keywords generate and endgenerate.
"generate_region" is derived from "non_port_module_item"
"module_or_generate_item" -> "loop_generate_construct" -> "generate_block" -> "module_or_generate_item" -> ... There can not be any "generate_region" in "module_or_generate_item".
Please consider the following example.
iverilog (latest master,
ef7f0a8
) accepts this code and generatesa.out
without any errors or warnings.Verilator as well as other commercial simulators available on https://www.edaplayground.com/ complained about syntax error of nested generate regions.
According to IEEE Std 1364™-2005, Annex A:
generate
andendgenerate
.Related BNF:
Therefore, the code above is not valid Verilog. Maybe iverilog can report syntax error on such input files?
The text was updated successfully, but these errors were encountered: