Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I might have confused you by all that description. For now, lets just forget the other things(OFDM,SM and all). I will mention my exact problem. I am generating a sine wave using a LUT with 128 sample points x1=round(((2^10)-1)*(1+sin(linspace(0,2*pi,128)))); now I need to perform w=xcorr(x1,x1,'coeff'); through the blocks in altera DSP Builder Blockset. --- Quote End --- I'm not sure how to do this using specific blockset components, however, the two mathematical techniques are autocorrelation in the lag domain, and multiplication in the frequency domain. For autocorrelation in the lag domain, you multiply samples delayed by registers, eg., see this document (p11 has a hardware implementation) http://www.ovro.caltech.edu/~dwh/wbsddc/correlator_efficiency.pdf (http://www.ovro.caltech.edu/%7edwh/wbsddc/correlator_efficiency.pdf) For autocorrelation in the frequency domain, you can use an FFT, and take the magnitude squared of the output frequency channels. Cheers, Dave