Forum Discussion
Altera_Forum
Honored Contributor
13 years agoi is an integer. unsigned(lsb) is an unsigned. You need to convert lsb to an integer:
to_integer( unsigned( lsb) ) I would also make bit_location a variable, otherwise it is always going to be set to 31 + Lsb as signals are only updated when a process halts.