Truncating Fixed point numbers

Hello all, I am trying to implement a DSP algorithm on a FPGA(SpartanIIE). I was wondering if somebody could comment on whats the best way to truncate the multiplier outputs to the 8bit inputs I have. If I have 8bits inputs to the multiplier I want the output to be 8bits too instead of

16bits. I know I'l be losing out on precision but thats fine. Whats the best way to do it in hardware?

Thanks, Sourabh

Reply to
Loading thread data ...

downto 0),

a '1'.

Truncation simply adds a DC offset to the signal which is not a problem if you're bandpass or highpass filtering just downstream. Although rounding gets rid of the DC offset it will add an additional adder operator with associated carry-chain resulting in increased propagation delay and LE resource utilization in your datapath. This may have an impact if your design is tight on resources or high speed.


Reply to

...although often you can implement the additional adder by using the 'carry in' of a downstream adder. Cheers, Syms.

Reply to

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.