Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internals: Support linking recursive function calls (but not later st…
…ages)
- Loading branch information
Showing
9 changed files
with
56 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
%Error-UNSUPPORTED: t/t_func_recurse.v:12:31: Unsupported: Recursive function call 'recurse_self' | ||
12 | else recurse_self = i + recurse_self(i - 1) * 2; | ||
| ^~~~~~~~~~~~ | ||
%Error-UNSUPPORTED: t/t_func_recurse.v:9:27: Unsupported: Recursive function or task call: 'recurse_self' | ||
: ... In instance t | ||
9 | function automatic int recurse_self; | ||
| ^~~~~~~~~~~~ | ||
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest | ||
%Error: Exiting due to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
%Error-UNSUPPORTED: t/t_func_recurse_param.v:12:31: Unsupported: Recursive function call 'recurse_self' | ||
12 | else recurse_self = i + recurse_self(i - 1) * 2; | ||
| ^~~~~~~~~~~~ | ||
%Error-UNSUPPORTED: t/t_func_recurse_param.v:9:27: Unsupported: Recursive function or task call: 'recurse_self' | ||
: ... In instance t | ||
9 | function automatic int recurse_self; | ||
| ^~~~~~~~~~~~ | ||
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest | ||
%Error: t/t_func_recurse_param.v:15:26: Expecting expression to be constant, but can't determine constant for FUNCREF 'recurse_self' | ||
: ... In instance t | ||
t/t_func_recurse_param.v:9:27: ... Location of non-constant FUNC 'recurse_self': Unsupported: Recursive constant functions | ||
15 | localparam int ZERO = recurse_self(0); | ||
| ^~~~~~~~~~~~ | ||
%Error: t/t_func_recurse_param.v:16:28: Expecting expression to be constant, but can't determine constant for FUNCREF 'recurse_self' | ||
: ... In instance t | ||
t/t_func_recurse_param.v:9:27: ... Location of non-constant FUNC 'recurse_self': Unsupported: Recursive constant functions | ||
16 | localparam int ELEVEN = recurse_self(3); | ||
| ^~~~~~~~~~~~ | ||
%Error: Exiting due to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
%Error-UNSUPPORTED: t/t_func_recurse_param_bad.v:12:31: Unsupported: Recursive function call 'recurse_self' | ||
12 | else recurse_self = i + recurse_self(i - 1) * 2; | ||
| ^~~~~~~~~~~~ | ||
%Error-UNSUPPORTED: t/t_func_recurse_param_bad.v:9:27: Unsupported: Recursive function or task call: 'recurse_self' | ||
: ... In instance t | ||
9 | function automatic int recurse_self; | ||
| ^~~~~~~~~~~~ | ||
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest | ||
%Error: t/t_func_recurse_param_bad.v:15:26: Expecting expression to be constant, but can't determine constant for FUNCREF 'recurse_self' | ||
: ... In instance t | ||
t/t_func_recurse_param_bad.v:9:27: ... Location of non-constant FUNC 'recurse_self': Unsupported: Recursive constant functions | ||
15 | localparam int HUGE = recurse_self(10000); | ||
| ^~~~~~~~~~~~ | ||
%Error: Exiting due to |