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 agoIt will work just fine. Is there any reason you dont want to use the signed data type? then you wouldnt need to pad the sign bit as you can use the resize function:
slope <= resize( delta_t(15 downto 5), slope'length);