Forum Discussion
Altera_Forum
Honored Contributor
15 years agopure functions can only access internal variables.
To access varaibles outside the function, you either need to pass them into the function (VIA the inputs) or declare the function as impure: impure function soma(..) return integer is.... I wouldnt do this though as you're trying to read signals. I would pass them in as function inputs.