Eye Diagram With Raised Cosine Filtering

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

H O ME

A BO U T

CONTA CT

S U BS C R IBE

DSP log
Signal Processing for Communication
Googl e

Search

Used Spectrum Analyzer Buy Used Spectrum Analyzer & Other Test Equipments at Affordable Price www.sdtechnologies.co.in/Get_Quote USB Spectrum Analyzer SA44B 1Hz to 4.4GHz, -151dBm, $919 includes AM, FM, SSB, and CW demod www.SignalHound.com Per Vices SDR Wideband (4GHz) PCIe Transceiver 250MSPS, gnuradio, less than $850 www.pervices.com

Select Language
Pow ered by
802.1 1 A C

Translate
CA P A CI TY CHA N N E L DI V E R S I TY DS P E R R OR R A TE FILTE R N EWS OB JE CTI V E QU I Z R A DI O R E CE I V E R

TR A N S MITTE R

Ads by Google

Human Eye

The Eye Diagram


(6 v otes, av erage: 4.1 7 ou t of 5)

Human Measurement

Human Error
TOP RA TED
Share
0
Pri n t

POSTS

Eye diagram with raised cosine filtering


Follow
by K R I S HN A S A N K A R on MA Y 1 , 2 008

Bit Error Rate (BER) for BPSK modulation - 44 v otes BER for BPSK in OFDM with Ray leigh multipath channel - 30 v otes BER for BPSK in Ray leigh channel - 29 v otes Alamouti STBC - 26 v otes Max imal Ratio Combining (MRC) - 24 v otes Download free e-book on error probability in AWGN - 20 v otes MIMO with Zero Forcing equalizer - 1 9 v otes Understanding an OFDM transmission - 1 8 v otes Ray leigh multipath channel model - 1 8 v otes Comparing BPSK, QPSK, 4PAM, 1 6QAM, 1 6PSK, 64QAM and 32PSK - 1 8 v otes

Like

One like. Sign Up to see what your friends like.

Find us on Facebook

[DSP log] Thoughts on digital signal processing


Like 1,161 people like [DSP log] Thoughts on digital signal processing.

We have discussed about probable transmit pulse shaping filter and have observed that raised cosine filtering filtering allows a simpler implementation, albeit at the cost of increased bandwidth. Let us know understand the eye diagram, which is a useful graphical tool to quantify the degradation of the signal due to filtering.

Eye diagram
An eye diagram is generated in an oscilloscope operating in the persistence mode by observing the output of the filter with the symbol timing serving as the trigger. The observation window can be set as 2 times the symbol period. (Refer. Section 5.1.3 in [DIGCOMM-BARRY -LEE-MESSERSCHMITT]). When the input data is random, the eye diagram which consists of many overlapped traces of the signal captures visually all the paths which the waveform takes.

C handima

S haik

S ridev i

Thamizhazhaganv ino

Simulation script
F acebook social plugin

SU BSCR I BE Subscribe v ia RSS Subscribe v ia email Please enter y our e-mail Subscribe

Matlab/Octave script for simulating the eye diagram plot. The code performs the following (a) Defines random BPSK modulated symbols (+1s and -1s) (b) Defines two raised cosine filters with = 0.5, =1

(c) Upsamples the transmit sequence by zero insertion (d) Convolves the upsampled transmit sequence with the filter (e) Overlays the time domain samples to plot the eye diagram Click here to download: Matlab/Octave script for ploting the eye diagram

Ads by Google

Human Eye Human Error MATLAB

TA G
1 6 -PSK 1 6 -QA M 802.11a A la m ou t i

Update

BPSK Capacity CDF


con fer en ce CORDIC

AWGN

25th May 2008 Corrected the issue. Modified the code to handle division by zero. (a) for and

Div ersity ey e dia g r a m first order fr equ en cy offset FSK Gray IISc interpolation

www.dsplog.com/2008/05/01/eye-diagram-plot-matlab-raised-cosine-filter/

1/7

machine_learning
m a g n it u de

MIMO ML MMSE MSK noise


Ny qu ist

(b)

for

OFDM

or t h og on a l PAM PA PR pdf

phase phase_noise

(Thanks to the article in RFDesign.com, The care and feeding of digital, pulse-shaping filter, Ken Gentile) 19th May 2008 It has been brought to my attention that the code is unable to plot the eye diagram accurately in Matlab environment. The difference is because my version of Octave seems to handle the division by numbers close to zero cleanly, where as Matlab insists on returning Inf. I will fix the code and release an update. sorry for the inconvenience.

PSK pu lse sh a pin g QAM raised cosine


Viterbi ZF
CA T EG O R I ES Select Category

Rayleigh RC SIC
ST BC TETRA t r a n sm it t er

A RCHIV ES Select Month

CO MME N T Krishna Sankar on Alamouti STBC Krishna Sankar on Understanding an OFDM transmission kingshit on Conv olutional code pallav i on Understanding an OFDM transmission dedy on Comparing 1 6PSK v s 1 6QAM for sy mbol error rate raghav endra on IQ imbalance in transmitter PIY USH on Alamouti STBC

Figure: Eye diagram following raised cosine filtering with

= 0.5

Understanding Digital Signal... By Richard G. Lyons Our Price: Rs.699

RECEN T POSTS EV M with phase noise


Kindle Keyboard, Wi-Fi, 6" E Ink Dis... Amazon.com Buy New

Phase noise power spectral density to Jitter Oscillator phase noise

Privacy Information

Figure: Eye diagram following raised cosine filtering with

=1

Thermal noise of RC low pass filter Noise Figure of cascaded stages

As can be observed from the above figures, the above waveform has a shape similar to the human eye and hence the name eye diagram.

DS P

Observations
1. For increasing the margin for error free transmission, the vertical opening of the eye should be more. In the presence of inter-symbol interference, the vertical opening of the eye reduces, thus increasing the probability of error. 2. The ideal sampling instant is the point where the vertical eye opening is maximum. 3. Smaller horizontal eye opening means implies more sensitivity to timing errors. Note: www.dsplog.com/2008/05/01/eye-diagram-plot-matlab-raised-cosine-filter/

ANALOG & DSP Complex to Real DSP blog DSP DesignLine DSP Guide DSP Tutor DSPRelated Octav e Octav e-Forge

2/7

From the above figures, it can be observed that the horizontal eye opening with smaller than with =1.

=0.5 is

F P GA FPGA Central

Reason: The tails of the raised cosine filter with =1 dies away faster than the case where =0.5. Hence error in timing cause a bigger performance degradation for =0.5 than for =1 scenario. However, the flip side of using =1 is the increased bandwidth required for transmission. Reference [DIG-COMM-BARRY -LEE-MESSERSCHMITT] Digital Communication: Third Edition, by John R. Barry, Edward A. Lee, David G. Messerschmitt Hope this helps. Krishna Please click here to SUBSCRIBE to newsletter and download the FREE e-Book on probability of error in AWGN. Thanks for visiting! Happy learning.

GE N E R A L Amit Agarwal Digital Inspiration Enchanting Kerala

Tagged as: ey e diagram, raised cosine


Like One like. Sign Up to see what your friends like.

Share

Related posts
1. 2. 3. 4. 5. Update: Correction in Matlab code for raised cosine filter Raised cosine filter for transmit pulse shaping BER with Matched Filtering Back! Zero-order hold and first-order hold based interpolation

id you like this article? Make sure that you do not miss a new article by subscribing to RSS feed OR subscribing to e-mail newsletter. Note: Subscribing via e-mail entitles you to download the free e-Book on BER of BPSK/QPSK/16QAM/16PSK in AWGN.
Ads by Google

Human Eye

Human Error

MATLAB

Noise Filter

www.dsplog.com/2008/05/01/eye-diagram-plot-matlab-raised-cosine-filter/

3/7

{ 20 comments read them below or add one }


linkin8834
April 28, 201 2 at 4:1 0 pm 1

Hello Krishna, how do i plot the eye diagram for OFDM system? upsample->IFFT>adding timing offset->downsample->FFT->plot the eye diagram. Is it correct?
REPLY

Krishna Sankar

May 2, 201 2 at 5:01 am

@linkin8834: Hmm well, eye diagram is plotted on the time domain waveform getting overlayed every symbol period. For OFDM waveform with a Gaussian like distribution for the time domain, do not expect the eye diagram to carry useful information.
REPLY

Cedric

April 6, 201 2 at 7 :30 pm

I am doing ofdm simulation and trying to use a eye diagram to compare the single carrier and subcarrier in multipath. However, I dont know how to delay the output. For example, overall output = r(t)+0.5r(t-5us)+0.2r(t-10us) where r(t) is the signal after convolution.
REPLY

Krishna Sankar

April 8, 201 2 at 5:02 am

@Cedric: Assuming that your samples are 5us apart, conv(rt,[1 0.5 0.2]) helps?
REPLY

Theeksha

January 1 5, 201 2 at 8:29 pm

What is the effect of sampling time offset in the error vector magnitude? Does the sampling time offset react to changes in roll off factor?
REPLY

Krishna Sankar

January 23, 201 2 at 5:25 am

@Theeksha: The presence of sampling time offset increases the error vector magnitude. Ideally we would like to sample at the maximum vertical eye opening, but in the presence of sampling time offset, we will drift away from the maximum eye opening window.
REPLY

cinra

June 23, 201 1 at 1 1 :33 pm

Hi Krishna, I finally removed the horzontal curves in the middle of the eye diagram. Thanks
REPLY

cinra

June 23, 201 1 at 1 2:1 6 am

why you have line en between ?


REPLY

www.dsplog.com/2008/05/01/eye-diagram-plot-matlab-raised-cosine-filter/

4/7

pravindra kumar

February 1 3, 201 0 at 8:51 pm

please help me i want code for ber for bpsk using raised cosine filter
REPLY

Krishna Sankar

April 4, 201 0 at 3:59 am

10

@pravindra kumar: I have not discussed the BER with raised cosine filter case, however you can find the BER with rectangular filter at http://www.dsplog.com/2009/05/08/ber-with-matched-filtering/
REPLY

Ad

December 23, 2009 at 1 0:05 am

11

Hi Krishna, I have a question regarding the plot of eye diagram that youve shown. Y ou said its plotted for two symbols and the eye opening seems to be at the center of the diagram(at completion of first unit interval). So is plotted like half of previous bit,current bit and half of future ?
REPLY

Fahmi

Nov ember 3, 2009 at 8:55 pm

12

Hi Mr krishna , I dont understand the utility of upsampling the transmit sequence what will happen if we did not add the zeros to the sequence ? I wonder if there is some links clarifying this idea . thank you very much.
REPLY

Krishna Sankar

Nov ember 8, 2009 at 8:46 am

13

@Fahmi: With a sampling frequency of fs, we can see frequencies from [-fs/2 to fs/2). Typically, we would want to control a bigger bandwidth compared to the original transmit sequence. Hence we do upsampling.
REPLY

nyna

March 1 3, 2009 at 6:44 pm

14

krishna can u help mewhy the graph of BER vs SNR in BPSK in theoretical and simulation is same..Whats the reason about it..
REPLY

Krishna Pillai

March 21 , 2009 at 7 :52 am

15

@nyna: We want to have our simulations to be in good agreement with theory, no? It helps us confirm that we were able to model all the equations correctly.
REPLY

Krishna Pillai

September 1 7 , 2008 at 4:44 pm

16

@Prashant: All the data which we need to obtain can be observed by plotting for two symbol periods width of the eye opening, transition edges etc. Ofcourse, nothing stops us from plotting for 3 (or more) symbol periods. Glad that you are finding this site useful. Typically books do not cover these small details. To return the favour, you can refer this site to your friends/colleagues. Thanks. www.dsplog.com/2008/05/01/eye-diagram-plot-matlab-raised-cosine-filter/ 5/7

REPLY

Prashant

September 1 6, 2008 at 3:57 pm

17

Y ou have plotted it for two symbol period. Is that a rule or it varies i mean eyediagram by definition assumes two symbol period? Actually I could not find any material which deals with implementation of eye-diagram except yours and in the books they dont mention these details.
REPLY

Krishna Pillai

September 1 5, 2008 at 6:39 pm

18

@Prashant: Y ou are right. x-axis is the time. I have assumed sampling frequency of fs=10 and plotted for two symbol periods.
REPLY

Prashant

September 1 5, 2008 at 3:49 pm

19

Hi, Thanks for the nice article. I tried your matlab code, but I have some confusion. Can you elaborate your x axis in the code i.e. time axis? I mean, what is symbol rate and bit rate, why have you plotted this for 20 time instants, (i guess 20 = 2*fs in the code)? TIA
REPLY

wangyj1859wangyj1859
very good!
REPLY

September 6, 2008 at 2:48 pm

20

Leave a Comment
Name * E-mail * Website

Notify me of followup comments via e-mail

Submit

P R E V I OU S P OS T: N E X T P OS T:

MCDES 2008 at Indian Institute of Science, Bangalore

OT: Migration to a Deep Blue template 6/7

www.dsplog.com/2008/05/01/eye-diagram-plot-matlab-raised-cosine-filter/

Get sm art with the Thesis WordPress Them e from DIYthem es. dspLog - All rights reserv ed. Copy right 2 007 2 01 2 No content on this site m ay be reused in any fashion without written perm ission from http://www.dspLog.com .

www.dsplog.com/2008/05/01/eye-diagram-plot-matlab-raised-cosine-filter/

7/7

You might also like