Forum Discussion
Altera_Forum
Honored Contributor
11 years agothat '0' makes the cin signed positive to match its brothers and sisters.
The code is ok and you can alternatively use function resize which will sign extend if applied to signed value as done above manually. I normally don't need cin as I will add in one go and happy new year to you and all