Forum Discussion
Altera_Forum
Honored Contributor
15 years agoAre only MSBs outputted if bits are restricted?
Hi, Suppose I have a complex multiplier from the MegaWizard with inputs having 16 bits each and the outputs also having 16 bits. Because 16*16 equals 32 bits, would restricting the output to 16...
Altera_Forum
Honored Contributor
15 years agoYou cannot easily drop a selective number of 0's, you usually just drop a fixed N bits and do the saturation logic as FvM describes, maybe even adding an overflow bit to let other things know that a number has saturated and not actually come out to max. The big problem would be knowing what power of 2 the MSB represents if you tried that, along with all the extra logic required to count the number of 0s and output the next 16.