Verilog-2001 supports recursive tasks and functions.
- Use recursion with the
automatickeyword only. - The number of recursions is automatically limited to prevent endless recursive calls. The default is 64.
- Use
-recursion_iteration_limitto set the number of allowed recursive calls.