Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Then, bp: -50/2=-25. And so on. Please correct me. --- Quote End --- -25 would be 0x1e7. Due to logic shift right, you get 0x0e7 instead, or 231. For arithmetic shift, write
bp <= add_temp(8) & add_temp(8 downto 1);