Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- Community Forums
- :
- Forums
- :
- About Our Community
- :
- Welcome & Join
- :
- convolution

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

ueema

Visitor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-25-2015 06:53 AM

5,212 Views

Registered:
05-25-2015

Hello everybody,

I am trying to convolve a 16-bit input data stream with a Dirac Delta on a Xilinx Virtex 7.

More specifically, instead of multiplying my input stream by a cosine in the time domain, I would like to convolve it with the following expression in the frequency domain:

F(f) = 0.5 * (delta(f - f0) + delta(f + f0))

Does anybody have any idea about how to implement that ? Indeed, the only possibly interesting Xilinx IP core for my problem is the FIR Complier but I don't know how to represent my function F(f) as the 'coefficient' input of this IP core.

Thank you in advance

1 Solution

Accepted Solutions

bwiec

Xilinx Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-27-2015 01:47 PM

9,122 Views

Registered:
08-02-2011

I would like to convolve it with the following expression in the frequency domain: F(f) = 0.5 * (delta(f - f0) + delta(f + f0))

All you need is the FIR Compiler with this expression as your coefficients. This expression gives you a sequence of the form:

{0.5, 0, 0, 0, 0, ... 0.5} where the number of zeros are dependent on the value of f0 and the frequency resolution of your independent variable, f.

So that sequence will be what you use for the 'coefficient' channel. If you need to change 'f' at run-time, you can use the coefficient-reload capability of the core.

www.xilinx.com

6 Replies

muzaffer

Teacher

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-25-2015 11:40 PM

5,181 Views

Registered:
03-31-2012

y(t) = h(t) (*) x(t) where (*) is the convolution operator is the same thing as

Y(f) = H(f) * X(f) where * is the element-wise multiplication operator and H(f) = F(f). Then time domain y(t) = IDFT(Y). Of course convolution of a length m data stream with a length n h gives you a length (m+n) data output but Y(f) is the same size as H and X so you need to run this through overlapping data streams. Read this for more info: http://en.wikipedia.org/wiki/Overlap%E2%80%93add_method

- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.

Give Kudos to a post which you think is helpful and reply oriented.

ueema

Visitor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-26-2015 03:25 AM

5,171 Views

Registered:
05-25-2015

Hello muzzaffer,

Thank you for your answer.

My input stream is already in frequeny domain (it went throught the FFT core v7.1). That's why I need to convolve it with F(f) and not simply multiply it by a cosine function.

I noticed that, mathematically, since the target convolution involves only Dirac Deltas, there may exist a shorter way to avoid the convolution by simply evaluating the input function at the point f0. But I have no idea about how to implement that neither ..

Thank you in advance

muzaffer

Teacher

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-26-2015 08:38 AM

5,155 Views

Registered:
03-31-2012

- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.

Give Kudos to a post which you think is helpful and reply oriented.

ueema

Visitor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-26-2015 10:59 AM

5,149 Views

Registered:
05-25-2015

Actually my project is about the implementation of a QAM modulator in frequency domain.

Therefore, I start receiving an input data stream and I map it using a QAM constallation. After rescaling, I have two 16-bit streams (I and Q components) which both go through the FFT 7.1 IP Core. Then, I filter it (I simply multipfy the output of the FFT with the filter coefficents).

At his point, I need to convolve my I and Q components with the Frourier transform of a cos and sin, respectively.

I hope my explanation is clear but if it is not, feel free to ask any other specifications.

bwiec

Xilinx Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-27-2015 01:47 PM

9,123 Views

Registered:
08-02-2011

I would like to convolve it with the following expression in the frequency domain: F(f) = 0.5 * (delta(f - f0) + delta(f + f0))

All you need is the FIR Compiler with this expression as your coefficients. This expression gives you a sequence of the form:

{0.5, 0, 0, 0, 0, ... 0.5} where the number of zeros are dependent on the value of f0 and the frequency resolution of your independent variable, f.

So that sequence will be what you use for the 'coefficient' channel. If you need to change 'f' at run-time, you can use the coefficient-reload capability of the core.

www.xilinx.com

ueema

Visitor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-29-2015 05:32 AM

5,091 Views

Registered:
05-25-2015

Dear,

I thank you for your answer. This should be solve my problem.