In reply to dave_59:
HI Dave,
I have one more question on automatic variables:
System verilog LRM 3.1 says “In a data_declaration that is not within the procedural context, it shall be illegal to use the automatic keyword”. Does it mean that automatic variables can be declared only in procedural blocks and any variable not within procedural block is static by default?
I understand procedural blocks are - initial, always,final, begin…end, fork…join, always_comb, always_latch, always_ff, task, function etc.
Are there any more of them?
rgs,
-sunil