Forum Discussion
Altera_Forum
Honored Contributor
14 years agosigned to unsigned
i, i want to convert a 10 bit signed into a 8 bit unsigned. i tried with the altbus, but when implemented if i input -32 i get FF instead of 0. Is there an other block? which settings i have to m...
Altera_Forum
Honored Contributor
14 years agothanks for your answer. when the input is negative i want 0
if i set the alt bus unsigned 10 bit to 8, i get in simulation: -32 -> 0 the problem is in the implementation where i get FF. So i used the Saturate block, i set the bus SIGNED, i took 9 bit in output rather than 8 and i set the limit for saturation 0 to 255. This works in implementation too.