Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

bit shift and extract

Hi everyone! i want to shift a number 24 bit to the right (cut off), and extract the remaining 8 bit. how to do it in vhdl? a = b >>24 & 0xff; So far I tried to work with srl, shift_...