2025-10-08 03:06:11 +02:00
%Error: t/t_func_const_bad.v:12:19: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_output'
2023-09-23 14:52:50 +02:00
: ... note: In instance 't'
2025-10-08 03:06:11 +02:00
t/t_func_const_bad.v:13:63: ... Location of non-constant VAR 'o': Language violation: Outputs/refs not allowed in constant functions
12 | localparam B1 = f_bad_output(1, 2);
| ^~~~~~~~~~~~
2025-04-05 23:10:28 +02:00
... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
2025-10-08 03:06:11 +02:00
%Error: t/t_func_const_bad.v:21:19: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_dotted'
2023-09-23 14:52:50 +02:00
: ... note: In instance 't'
2025-10-08 03:06:11 +02:00
t/t_func_const_bad.v:23:22: ... Location of non-constant VARXREF 'EIGHT': Language violation: Dotted hierarchical references not allowed in constant functions
t/t_func_const_bad.v:21:19: ... Called from 'f_bad_dotted()' with parameters:
2019-08-12 14:33:58 +02:00
a = ?32?h2
2025-10-08 03:06:11 +02:00
21 | localparam B2 = f_bad_dotted(2);
| ^~~~~~~~~~~~
%Error: t/t_func_const_bad.v:28:19: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_nonparam'
2023-09-23 14:52:50 +02:00
: ... note: In instance 't'
2025-10-08 03:06:11 +02:00
t/t_func_const_bad.v:30:22: ... Location of non-constant VARREF 'modvar': Language violation: reference to non-function-local variable
t/t_func_const_bad.v:28:19: ... Called from 'f_bad_nonparam()' with parameters:
2019-08-12 14:33:58 +02:00
a = ?32?h3
2025-10-08 03:06:11 +02:00
28 | localparam B3 = f_bad_nonparam(3);
| ^~~~~~~~~~~~~~
%Error: t/t_func_const_bad.v:36:19: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_infinite'
2023-09-23 14:52:50 +02:00
: ... note: In instance 't'
2025-10-08 03:06:11 +02:00
t/t_func_const_bad.v:38:5: ... Location of non-constant LOOP: Loop unrolling took too long; probably this is aninfinite loop, or use /*verilator unroll_full*/, or set --unroll-count above 16386
t/t_func_const_bad.v:36:19: ... Called from 'f_bad_infinite()' with parameters:
2019-08-12 14:33:58 +02:00
a = ?32?h3
2025-10-08 03:06:11 +02:00
36 | localparam B4 = f_bad_infinite(3);
| ^~~~~~~~~~~~~~
%Error: t/t_func_const_bad.v:44:22: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_stop'
2023-09-23 14:52:50 +02:00
: ... note: In instance 't'
2025-10-08 03:06:11 +02:00
t/t_func_const_bad.v:46:5: ... Location of non-constant STOP: $stop executed during function constification; maybe indicates assertion firing
t/t_func_const_bad.v:44:22: ... Called from 'f_bad_stop()' with parameters:
2019-08-12 14:33:58 +02:00
a = ?32?h3
2025-10-08 03:06:11 +02:00
44 | localparam BSTOP = f_bad_stop(3);
| ^~~~~~~~~~
-Info: "Printing in loop: 0"
-Info: "Printing in loop: 1"
-Info: "Printing in loop: 2"
2019-07-23 19:58:17 +02:00
%Warning-USERFATAL: "Fatal Error"
2021-04-24 16:33:49 +02:00
... For warning description see https://verilator.org/warn/USERFATAL?v=latest
2019-05-31 02:30:59 +02:00
... Use "/* verilator lint_off USERFATAL */" and lint_on around source to disable this message.
2025-10-08 03:06:11 +02:00
%Error: t/t_func_const_bad.v:51:23: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_fatal'
2023-09-23 14:52:50 +02:00
: ... note: In instance 't'
2025-10-08 03:06:11 +02:00
t/t_func_const_bad.v:56:5: ... Location of non-constant STOP: $stop executed during function constification; maybe indicates assertion firing
t/t_func_const_bad.v:51:23: ... Called from 'f_bad_fatal()' with parameters:
2019-08-12 14:33:58 +02:00
a = ?32?h3
2025-10-08 03:06:11 +02:00
51 | localparam BFATAL = f_bad_fatal(3);
| ^~~~~~~~~~~
2018-11-03 19:59:04 +01:00
%Error: Exiting due to