Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Preamble correlator, Simulink problem

Not open for further replies.


Full Member level 2
Jun 21, 2005
Reaction score
Trophy points
Activity points
xcorr simulink

Season's greetings!

I'm currently trying to build a preamble detector for my OFDM
transceiver which i have built in Simulink for the purpose of frame
synchronization. This is kinda a lenghty post, but i hope
those who can help me please take some time and take a look at it.
Appreciate it!

This is what i have done so far. This is autocorrelation of a PN
I used 64 IFFT to convert the binary bits into real-valued time domain
(with conjugate symmetry), pass through AWGN and then correlated. This
is the resulting graph after autocorrelation:
It looks fine with the first sample having a larger magnitude as
compared to the others.

Next, i've replaced autocorr with cross-corr just to observe the
At the 2nd input of the xcorr i've connected it to the IFFT output to
act as a reference for the received signal after AWGN. And the result i
got is this:

1st question:
Why is there such a huge difference with the results? In the 2nd graph
i'm getting almost noise like signal. Does it mean i should use
autocorr instead of xcorr with my model? Or am i building the model

Next, because typically the preamble is repeated and transmitted
multiple times for synchronization, i've tried to concatenate the
output of IFFT forming 4 identical sequences to be transmitted and

This is what i built:
And the result is:

And for the xcorr:

2nd question:
With reference to the 4corrawgngraph, the 1st peak became even larger
which i guess could be due to the superposition of the 4 sequences. But
shouldnt the output be like this?

My final objective is to build a correlator which produces and output
like the 1 above and this:

I understand the basic theory behind double correlation but how do i
implement it to obtain an output like yunchiu-corr? Guys, is it
something that i've done wrong with my simulation (which i think is the
case) or i should have designed it differently, any ideas please let me
know coz i've been stuck at this for quite some time. Thx guys...

Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to