Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- It could be, but like FvM said without the whole code its impossible to say. But this style can cause bugs if vectors are extended later and this code left unmodified. the resize function would always keep the correct sign. --- Quote End --- The code is multiplying same data?? by all coeffs then summing up products. I don't know what this means in DSP sense. It is discarding MSB bit(22) from each product. If you are sure this bit is never used then you might as well use it instead of bit 23 i.e. use (22 down 0) directly. @tricky, I don't know if resize can remove a specific msb you target. This case is msb discarding andkeeping sign bit rather than sign extension.