# VERILOG2040: Constant functions should not access nonexistent elements of associative arrays ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
HIGH--Intentionality | Logical10minsynthesis, vscode, linter, simulation
``` ## Description ```{raw} html

A constant function tried to access a nonexistent element of an associative array.

Noncompliant code example

localparam int foo = func();
function int func;
  int i[string];
  return i["Hello"]; // Noncompliant
endfunction
``` ## Parameters No parameters. ```{raw} html ```