data/full_repos/permissive/42434302/ivltests/constfunc15.v
1: b'%Error: data/full_repos/permissive/42434302/ivltests/constfunc15.v:37: Expecting expression to be constant, but can\'t determine constant for FUNCREF \'concat1\'\n                                                                     : ... In instance constfunc14\n        data/full_repos/permissive/42434302/ivltests/constfunc15.v:9: ... Location of non-constant ASSIGN: LHS isn\'t simple variable\n        data/full_repos/permissive/42434302/ivltests/constfunc15.v:37: ... Called from concat1() with parameters:\n           value = 8\'ha5\nlocalparam res1 = concat1(8\'ha5);\n                  ^~~~~~~\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/constfunc15.v:20: Selection index out of range: 3 outside 2:1\n                                                                                : ... In instance constfunc14\n  {tmp[1], tmp[3]} = {value[3:0], value[7:4]};\n              ^\n                   ... Use "/* verilator lint_off SELRANGE */" and lint_on around source to disable this message.\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/constfunc15.v:21: Selection index out of range: 3 outside 2:1\n                                                                                : ... In instance constfunc14\n  {concat2[3:0], concat2[7:4]} = {tmp[3], tmp[1]};\n                                     ^\n%Error: data/full_repos/permissive/42434302/ivltests/constfunc15.v:38: Expecting expression to be constant, but can\'t determine constant for FUNCREF \'concat2\'\n                                                                     : ... In instance constfunc14\n        data/full_repos/permissive/42434302/ivltests/constfunc15.v:20: ... Location of non-constant ASSIGN: LHS isn\'t simple variable\n        data/full_repos/permissive/42434302/ivltests/constfunc15.v:38: ... Called from concat2() with parameters:\n           value = 8\'ha5\nlocalparam res2 = concat2(8\'ha5);\n                  ^~~~~~~\n%Error: data/full_repos/permissive/42434302/ivltests/constfunc15.v:39: Expecting expression to be constant, but can\'t determine constant for FUNCREF \'concat2\'\n                                                                     : ... In instance constfunc14\n        data/full_repos/permissive/42434302/ivltests/constfunc15.v:20: ... Location of non-constant ASSIGN: LHS isn\'t simple variable\n        data/full_repos/permissive/42434302/ivltests/constfunc15.v:39: ... Called from concat2() with parameters:\n           value = 8\'ha5\nlocalparam res3 = concat2(8\'ha5);\n                  ^~~~~~~\n%Error: Exiting due to 3 error(s), 2 warning(s)\n'
function [7:0] concat2(input [7:0] value);

reg [3:0] tmp[1:2];

begin
  {tmp[1], tmp[3]} = {value[3:0], value[7:4]};
  {concat2[3:0], concat2[7:4]} = {tmp[3], tmp[1]};
end

endfunction
function [7:0] concat2(input [7:0] value);


reg [3:0] tmp[1:2];

begin
  {tmp[1], tmp[3]} = {value[3:0], value[7:4]};
  {concat2[3:0], concat2[7:4]} = {tmp[3], tmp[1]};
end

endfunction