Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- The 'center < to_unsigned()' itself returns a boolean which doesn't comply with your specified unsigned return type. --- Quote End --- Thanks a lot for the pointer - indeed after writing a conversion-function everything works as expected. I wasn't aware that the return-type is also involved when looking up a function candidate. --- Quote Start --- The function specification always specifies an unconstrained returned object, but it is up to you to return a properly constrained object at the exit of the function. You may want to get hold of a good introductory book to VHDL like e.g. "Circuit Design with VHDL" by Volnei A. Podroni. --- Quote End --- I definitively will. However, I am a practitioner when it comes to learning - so I have to start writing code ;) Thanks a lot, Reggi