2018-11-03 18:59:04 +00:00
%Error: t/t_func_const_bad.v:11: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_output'
2019-07-26 16:52:38 +00:00
: ... In instance t
2019-05-31 00:30:59 +00:00
t/t_func_const_bad.v:12: ... Location of non-constant VAR 'o': Language violation: Outputs/refs not allowed in constant functions
2019-07-15 01:42:03 +00:00
localparam B1 = f_bad_output(1,2);
^~~~~~~~~~~~
2018-11-03 18:59:04 +00:00
%Error: t/t_func_const_bad.v:20: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_dotted'
2019-07-26 16:52:38 +00:00
: ... In instance t
2019-05-31 00:30:59 +00:00
t/t_func_const_bad.v:22: ... Location of non-constant VARXREF 'EIGHT': Language violation: Dotted hierarchical references not allowed in constant functions
t/t_func_const_bad.v:20: ... Called from f_bad_dotted() with parameters:
2019-07-23 17:58:17 +00:00
a = 32'h2
2019-07-15 01:42:03 +00:00
localparam B2 = f_bad_dotted(2);
^~~~~~~~~~~~
2018-11-03 18:59:04 +00:00
%Error: t/t_func_const_bad.v:27: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_nonparam'
2019-07-26 16:52:38 +00:00
: ... In instance t
2019-05-31 00:30:59 +00:00
t/t_func_const_bad.v:29: ... Location of non-constant VARREF 'modvar': Language violation: reference to non-function-local variable
t/t_func_const_bad.v:27: ... Called from f_bad_nonparam() with parameters:
2019-07-23 17:58:17 +00:00
a = 32'h3
2019-07-15 01:42:03 +00:00
localparam B3 = f_bad_nonparam(3);
^~~~~~~~~~~~~~
2018-11-03 18:59:04 +00:00
%Error: t/t_func_const_bad.v:35: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_infinite'
2019-07-26 16:52:38 +00:00
: ... In instance t
2019-05-31 00:30:59 +00:00
t/t_func_const_bad.v:37: ... Location of non-constant WHILE: Loop unrolling took too long; probably this is an infinite loop, or set --unroll-count above 1024
t/t_func_const_bad.v:35: ... Called from f_bad_infinite() with parameters:
2019-07-23 17:58:17 +00:00
a = 32'h3
2019-07-15 01:42:03 +00:00
localparam B4 = f_bad_infinite(3);
^~~~~~~~~~~~~~
2018-11-03 18:59:04 +00:00
%Error: t/t_func_const_bad.v:43: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_stop'
2019-07-26 16:52:38 +00:00
: ... In instance t
2019-05-31 00:30:59 +00:00
t/t_func_const_bad.v:45: ... Location of non-constant STOP: $stop executed during function constification; maybe indicates assertion firing
t/t_func_const_bad.v:43: ... Called from f_bad_stop() with parameters:
2019-07-23 17:58:17 +00:00
a = 32'h3
2019-07-15 01:42:03 +00:00
localparam BSTOP = f_bad_stop(3);
^~~~~~~~~~
2019-07-23 17:58:17 +00:00
-Info: "Printing in loop: 0"
-Info: "Printing in loop: 1"
-Info: "Printing in loop: 2"
%Warning-USERFATAL: "Fatal Error"
2019-05-31 00:30:59 +00:00
... Use "/* verilator lint_off USERFATAL */" and lint_on around source to disable this message.
2018-11-03 18:59:04 +00:00
%Error: t/t_func_const_bad.v:49: Expecting expression to be constant, but can't determine constant for FUNCREF 'f_bad_fatal'
2019-07-26 16:52:38 +00:00
: ... In instance t
2019-05-31 00:30:59 +00:00
t/t_func_const_bad.v:54: ... Location of non-constant STOP: $stop executed during function constification; maybe indicates assertion firing
t/t_func_const_bad.v:49: ... Called from f_bad_fatal() with parameters:
2019-07-23 17:58:17 +00:00
a = 32'h3
2019-07-15 01:42:03 +00:00
localparam BFATAL = f_bad_fatal(3);
^~~~~~~~~~~
2018-11-03 18:59:04 +00:00
%Error: Exiting due to