Turn on suggestions

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

Showing results for

- Community Forums
- :
- Forums
- :
- Hardware Development
- :
- AI Engine, DSP IP and Tools
- :
- can anyone help me in implementing cross correlati...

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

Highlighted
##

abdulmajidshah420

Visitor

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

04-23-2010 09:57 AM

10,152 Views

Registered:
04-07-2010

can anyone help me in implementing cross correlation in verilog or vhdl or give some code

hi,

can anyone help me in implementing cross correlation in verilog or vhdl or give some code.i cn't find any woring on it

7 Replies

Highlighted
##

drjohnsmith

Teacher

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

04-24-2010 09:39 AM

10,133 Views

Registered:
07-09-2009

Re: can anyone help me in implementing cross correlation in verilog or vhdl or give some code

HI

have a look on wikipedia,

cross corelatino is easy,

You have two vectors of numbers, one the input, one the correlation.

Now this is from old memory so plkease check,

You reverse the input vector

then multiple all the corelatino against the first lot of the input, and add together.

the answer goes in bin 0,

you then slide the corelatoin one down the input, and reeate, but the addition goes into bin 1,

contiunue,

<== If this was helpful, please feel free to give Kudos, and close if it answers your question ==>

Highlighted
##

adonisdl

Visitor

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

05-10-2010 11:18 PM

9,991 Views

Registered:
05-10-2010

Re: can anyone help me in implementing cross correlation in verilog or vhdl or give some code

how about the auto correlation? did i need to use the cordic ip core to help me doing that?

Highlighted
##

No you do not need CORDIC for either cross-correlation or auto-correlation. The correlation is very similar to FIR filtering, the difference is the reference waveform (the coefficients) are reversed for correlation relative to the order they are presented for FIR filtering. For auto-correlation, the signal is also the reference so you need to cycle the reference coefficients to make it work, but the structure is still basically an FIR filter.

randraka

Observer

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

05-11-2010 05:44 AM

9,984 Views

Registered:
05-11-2010

Re: can anyone help me in implementing cross correlation in verilog or vhdl or give some code

Highlighted
##

I saw the data sheet of the fir filter IP core the formula of the single rate FIR is similar to the cross correlation but not the same...

adonisdl

Visitor

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

05-11-2010 07:54 PM

9,968 Views

Registered:
05-10-2010

Re: can anyone help me in implementing cross correlation in verilog or vhdl or give some code

Highlighted
##

randraka

Observer

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

05-12-2010 05:55 AM

9,948 Views

Registered:
05-11-2010

Re: can anyone help me in implementing cross correlation in verilog or vhdl or give some code

It is the same except the order is reversed.

FIR filter is Y(k) = X(k)C0 + X(k-1)C1 + X(k-2)C2 + ... + X(1)C(k-1)

Correlation is

Y(k)=X(0)C(0) + X(1)C(1) + ....+ x(k)C(k)

Highlighted
##

mahadevanna

Observer

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

01-19-2011 01:23 AM

8,971 Views

Registered:
12-28-2010

Re: can anyone help me in implementing cross correlation in verilog or vhdl or give some code

I took a sin wave block and took the coefficients of them and made and reversal of those coefficients and used them in fir complier as coefficients and then connected the same sine wave block to fir complier and was not getting the output . it is always showing zero.

please help me

waiting for your reply

mahadev

Highlighted
##

eteam00

Instructor

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

01-20-2011 02:41 AM

8,953 Views

Registered:
07-21-2009

Re: can anyone help me in implementing cross correlation in verilog or vhdl or give some code

I took a sin wave block and took the coefficients of them and made and reversal of those coefficients and used them in fir complier as coefficients and then connected the same sine wave block to fir complier and was not getting the output . it is always showing zero.

please help me

waiting for your reply

mahadev

Please stick to one thread for a single topic. This is the 3rd thread to which you've posted the same problem, making it difficult for others to read and respond.

- Bob Elkind

SIGNATURE:

README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:

1. Read the manual or user guide. Have you read the manual? Can you find the manual?

2. Search the forums (and search the web) for similar topics.

3. Do not post the same question on multiple forums.

4. Do not post a new topic or question on someone else's thread, start a new thread!

5. Students: Copying code is not the same as learning to design.

6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).

7. You are not charged extra fees for comments in your code.

8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.

README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:

1. Read the manual or user guide. Have you read the manual? Can you find the manual?

2. Search the forums (and search the web) for similar topics.

3. Do not post the same question on multiple forums.

4. Do not post a new topic or question on someone else's thread, start a new thread!

5. Students: Copying code is not the same as learning to design.

6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).

7. You are not charged extra fees for comments in your code.

8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.