Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Why not just sign extend? output <= resize(a, a'high+2, a'low); --- Quote End --- When using integer conversion one doesn't need to know the size difference when writing the code - it's more portable. Eventually one will forget why 'high+2 was used. Odds are the synthesis output is the same for both.