Forum Discussion
Altera_Forum
Honored Contributor
9 years agoDividing a negative number
Hi How can I divide a negative number by 32 ? without using a dsp ip core. thanks
Altera_Forum
Honored Contributor
9 years agothe easiest way, would just be a divide. divide by 2^n infers a bit shift.
signal ip, s : signed(31 downto 0);
s <= ip / 32;