From 7cf539cf05eb7ed2d150f01a899a05471eb8f502 Mon Sep 17 00:00:00 2001 From: jalcim Date: Wed, 4 Mar 2026 11:46:07 +0000 Subject: [PATCH] Add --func-recursion-depth CLI option (#7175) (#7179) --- bin/verilator | 1 + docs/guide/exe_verilator.rst | 8 ++++++++ src/V3Options.cpp | 1 + src/V3Options.h | 2 ++ src/V3Simulate.h | 6 +++--- test_regress/t/t_func_recurse_depth.py | 18 ++++++++++++++++++ test_regress/t/t_func_recurse_depth.v | 24 ++++++++++++++++++++++++ 7 files changed, 57 insertions(+), 3 deletions(-) create mode 100755 test_regress/t/t_func_recurse_depth.py create mode 100644 test_regress/t/t_func_recurse_depth.v diff --git a/bin/verilator b/bin/verilator index ab07e6201..03ae90424 100755 --- a/bin/verilator +++ b/bin/verilator @@ -390,6 +390,7 @@ detailed descriptions of these arguments. -f Parse arguments from a file -FI Force include of a file --flatten Force inlining of all modules, tasks and functions + --func-recursion-depth Maximum recursive constant function depth --future0