Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHi again,
For signed data of a given width, if you want to scale any signed value by 2^n then you should shift magnitude bits towards MSB (n) bits inserting zeros in new LSBs(leading zeros). The sign bit should stay. Ofcourse the datawidth should accomodate these new bits. If you want to scale by 2^-n you shift magnitude bits towards LSB (n) bits and insert the sign bit in new MSBs(sign extension). I hope that's what you mean. kaz