- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Output type of FIR Compiler V4.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-16-2012 01:37 AM
In the xilinx fir compiler V4.0 ,The din is unsigned,coeff is two's complement,and then the dout is signed or unsigned ?
Please reply.
Re: Output type of FIR Compiler V4.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-16-2012 02:15 AM
Signed
Vitaly.
Re: Output type of FIR Compiler V4.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-16-2012 02:37 AM
Hi,
It meanse that output of FIR filter is depend on the type of coefficients not on the input type whether ti is signed or unsigned.
I want to ask one more que. when we are selecting signed input type in IP what should we give the input to FIR Complier i.e. straight binary or 2s complement?
And if I want to give the input (i.e. -1 to +1) to FIR IP how can I give?
thanks for quick reply.
Re: Output type of FIR Compiler V4.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-16-2012 02:43 AM
If it's signed, then it means two's complement.
In your case input's bitwidth is 8 bits.
So input values should be in range from -2^(8-1) = -128 = 10000000b (or it maps to -1.0 value) to 2^(8-1)-1 = 127 = 01111111b (that maps to 1.0 value).
Vitaly.
Re: Output type of FIR Compiler V4.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-17-2012 06:40 PM
I would suggest you google fixed point number representation. Vitaly showed an example of 8-bit fixed point numbers. In case it matters, 01111111b is not exactly 1.0 assuming 8.7 format. It's 0.992187500000000.
falconbombay wrote:
Hi,
It meanse that output of FIR filter is depend on the type of coefficients not on the input type whether ti is signed or unsigned.
I want to ask one more que. when we are selecting signed input type in IP what should we give the input to FIR Complier i.e. straight binary or 2s complement?
And if I want to give the input (i.e. -1 to +1) to FIR IP how can I give?
thanks for quick reply.
Jim
Re: Output type of FIR Compiler V4.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-18-2012 03:24 AM
Hi, Jim!
In case it matters, 01111111b is not exactly 1.0 assuming 8.7 format. It's 0.992187500000000.
Thank you for correction. Yes, if we have signed number with N bits and (N-1) fractional bits, then whole number range is from -2^(N-1) to [2^(N-1)]-1. And that's mapped to normalized half-closed interval [-1.0; 1.0), i.e. including -1.0 and excluding 1.0. It can be recalculated as closed interval [ -1.0; 1.0-2^(1-N) ].
Vitaly.
Re: Output type of FIR Compiler V4.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-19-2012 04:25 AM
Hi Vitaly and Jim,
Thank you for your replies.











