Forum Discussion
Altera_Forum
Honored Contributor
14 years agofunction error declaration in vhdl
hello guys ..i'm kind of new to this .. i have a problem in vhdl function declaration .. i want to define function that calculate the avg of two std logic vectors .. but it keeps telling me that ...
Altera_Forum
Honored Contributor
14 years agoYou're still using the non-standard package as evidenced by the call to 'conv_integer'. You should switch to using ieee.numeric_std package and use the 'to_integer' and 'to_signed', 'to_unsigned' functions in those packages instead.
Kevin Jennings