Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Basically you are trying to do this:
LHS(msb + lsb downto 0) <= RHS(msb + lsb downto lsb) ; which doesn't work as the LHS is wider than the RHS. Using for-loop won't work either as a for-loop needs constant boundaries as well. You could use a barrel shifter to dynamically align data. --- Quote End --- It would work if you loop through the whole of the output and see if the current bit should be assigned a specific bit from the bit_field.