# About

**Krishna Sankar Madhavan Pillai**

Krishna Sankar M is a Signal Processing Engineer based out of Bangalore, India. His typical activities on a working day involve identifying and modeling digital signal processing algorithms for wireless receivers.

**dspLog**

The blog started some in February 2007 on the free Blogger platform and was hosted at http://dsplog.blogspot.com with the following objective:

Explain and discuss the basic text book concepts in digital signal processing and digital communication using simple Octave scripts.

Seeing consistent increase in traffic over the 6-7 months from inception, it was decided to move to an independent platform hosted at www.dsplog.com.

**Target audience**

(a) Students taking courses in digital signal processing/digital communication and requiring help to understand some of the concepts.

(b) Practicing engineers who are fresh to the domain of digital signal processing and requiring help.

(c) Ofcourse, the experienced engineers can share tips and tricks associated with the digital signal processing trade.

**Probable contents**

(a) Understanding basic concepts pertaining to FIR/IIR filtering

(b) Sample rate conversion

(c) Bit and Symbol error probabilities for typical digital communicatio

(d) Orthogonal Frequency Division Multiplexing

(e) more…

**Contact via Email**

For any queries, clarification, please contact the author at

**Subscribe for the feed via Email**

Please click ` here`

.

**Subscribe for the feed via RSS**

Please click here

D 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.*

{ 82 comments… read them below or add one }

hello sir,

i am doing project on cooperative communication.

can u provide code for ofdm-mimo network using cooperative diversity technique

I’m amazed, I must say. Rarely do I encounter a blog that’s both educative and

amusing, and let me tell you, you’ve hit the nail on the

head. The problem is something which not enough people are speaking intelligently about.

Now i’m very happy that I came across this during my search for something regarding this.

When using such a solution, you will be asked to talk about the events that affected

you in the year, marriage, new baby, move to a new house,

started college, changed employment status, etc. But there

is an exception if the caregiver is your parent. Every year, thousands of vacancies

open up in the public sector.

Cynthia Minnaar is a full-time internet marketer and

owner of She invites you to visit her internet marketing

training website for more link building tips. If a person is interested in what they see on your Facebook page, it’s crucial that they have your contact information to

learn more. The last thing to consider in regards to the idea of seo tools is that there

is an algorithm that is continually changing.

If he needs time to think about it, give him a

deadline so he knows that you are serious. So don’t make a fool of yourself by stalking his friends as it will

only end in tears. Is a Slower Realization of the

Truth Better for You.

Create a well spun comment related to your niche

These foods will also help in increasing the Thyroid Hormone (T3), which helps in burning fat.

Then visit this endorsed web-page and discover how Accountant Burnsville can benefit you.

Here are 4 things bookkeeping and accounting services do for their customers:.

There are many accounting software available these days.

sir

I am working on Power line communication channel.

Can u help me in MATLAB Coding for multipath channel simulation.

You should receive a quote from each one of the SEO company concerning the web design services.

I thought these folks were the strangest sounding words when I first heard them.

I personally think an e-mail program mustn’t be used to send e-mail

to 200 or maybe more people.

I visited several web pages however the audio quality for audio songs existing at this

web page is in fact marvelous.

Having read this I thought it was rather informative.

I appreciate you finding the time and effort to put this short article together.

I once again find myself spending a lot of time both reading and posting comments.

But so what, it was still worthwhile!

It has inputs for guitar, bass, and even expression pedals.

I can make so percussive brush effects for really quiet jazz.

Sir i am doing project on energy effieciency by using virtula mimo for wireless sensor networks,so i need matlab code for energy consumption vs distance for fixed and variable distances of mimo

Sir i am doing project on energy effieciency by using virtula mimo for wireless sensor networks,so i need matlab code for energy consumption vs distance for fixed and variable distances of mimo

Hai sir I am working on Cooperative communication.I struck at 8psk coding and decoding.How I can code the bits in 8psk.

Thank You Sir

Great items from you, man. I’ve consider your stuff previous to

and you’re just too wonderful. I actually like what you have received here,

certainly like what you’re saying and the way through which you assert

it. You’re making it entertaining and you continue to care

for to keep it wise. I cant wait to learn much more from you.

This is really a great website.

I’m really enjoying the design and layout of your website. It’s a very easy on the eyes which

makes it much more enjoyable for me to come here and visit more often.

Did you hire out a designer to create your theme? Excellent work!

I need help for spectrum sensing in cognitive radio. Energy detection method would be great!!

Pls. can you help with the theoretical implementation of QPSK BER for rayleigh fading with OFDM? Your response will be highly appreciated..

Thanks.

Sir!

Is it possible to establish a system OFDM-STBC system with dual hop(Regenerative relay) under receiver phase noise, if so will please guide me

hello,

i am doing project on mobile ad-hoc networks. I have already created an environment in which i assumed one transmitter and one receiver (both are stationary).i have considered Rayleigh fast fading channel and i would like to calculate the channel capacity. could you help me with the formula?

And one more question i have Error Vector Magnitude(EVM) values from which i want to calculate SNR for the channel capacity.so How to calculate SNR from EVM values for Rayleigh fading channel?please help me with the formula

Thanks in advance

Please how do I perform MRC on continuous wave?

why couldn’t comment here? I commented two times & each time there were shown as ”Your comment is awaiting moderation”, And after some days I noticed that there is no comment, It is vanished.

@ripan: sorry, have not been monitoring the comment section these days

dear sir iam doing my project in cognitive radio please give idea about poly phase filter realiastion

Dear Krishna Sankar

I am following your blog serval months. Can you give me some zero-if receiver matlab

code?

I don’t understand the equzilizer theory and gardner synchronous theory. Could you help this ? Thanks!

Hello Krishna, I’m a teacher of Electronics in Italian high school.

This evening I discovered your site, I like it a lot!

I had a look to your page:

http://www.eetimes.com/design/communications-design/4017668/Modulation-roundup-error-rates-noise-and-capacity

I want ask you if there is a similar modulation roundup concerning spectra.

Best Regards!!

salut Mr Krishna je travaille sur OFDM et je dois réaliser deux code matlab qui générent

un signal OFDM pour le WI-FI (802.11a et b )et le WIMAX(802.16);

je serais reconnaissant si vous allez m’aider.

voila mon email : khalid.elazz@gmail.com

Dear Krishna Sankar,

I am a student doing electrical and electronic engineering at Newcastle university England. I would just like to let you know how much alot of your work and the website has helped me so much. At the moment I am doing a project on cooperative communication and need some code work to help me with simulations. If you have anything what so ever to help me with this issue I would be extremely grateful.

Thank you very much for your attention sir.

Mike

@Michael: Thanks, glad to be of help. Sorry, I have not discussed much about cooperative communication in the posts.

Hi Krishna Sankar!!!

I’m studying nonlinear distortion in M-QAM systems that using adaptive Equalization and LMS algorthism in this ones. Can u help me or instruct code of Matlab to simulate systems when they had influenced by nonlinear distortion of HPA. Thanks u so much.

@Nam Nguyen: Sorry, I do not have the matlab code.

@ Krishna Sankar!!

Can u suggest for me to write code matlab of these issues!! Thanks Krishna Sankar so much!!!

please Mir Krishna Sankar ! I need a Matlab simulator of MIMO STBC

Thanks a lot

@hdcheikh: please check

http://www.dsplog.com/tag/stbc/

Hi

I’ve been following your blog for quite some time and liked a lot. I’ve also started blogging recently about analog design. Please checkout my blog.

http://analogquantized.wordpress.com/

Thanks,

3Sigma

@3Sigma: Thanks. Had a look at your blog – great ! All the very best!

If you are in Bangalore, lets meet up when are not ‘iwannastay_anonymous’

hi krishna,

can u plzzz get me VHDL codes for viterbi decoding both using traceback and register exchange method.thanks

@seema: sorry, do not have vhdl codes

fine,thnks for reply

…………..pls help me…..

my project on femtocell power control……..

i have theoretical knowledge but i don’t know how to simulate in MATLAB. so please help me giving sample code for power conterol in cellular communication

@prasad: Power control should be relatively easy to simulate. How’s the transmitter getting a sense of it’s transmitted power – feedback from the power amplifier and/or feedback from the receiver system?

Hi Krishna ,

Website is very useful.

I can learn a lot.

viKi

Sir,

I am working on spectrum sensing on TV band.

I need to help on how to model a digital TV signal for null and alternate hypothesis.

Pls help me with this.

@Winston: Are you using power estimate > threshold for the hypothesis?

Hello, In this website I have learn much knowledge. Now I am studying LDPC channnel coding.

Do you have some source code about block fading channel? I can not know it exactly?

@Rui: LDPC code-decoding is one of the TODO’s. However, you can find some posts on Hamming decoder and Viterbi decoder at

http://www.dsplog.com/category/coding/

thanks

Hi Krishna Sankar,

I am doing research in MIMO and Transmition Antenna Selection (TAS), may you give me some links or examples matlab codes on this topic?

i am a beginer in using matlab.

@Hung: I cannot point to specific codes, but you can checkout http://www.dsplog.com/category/mimo

Mr.Krishna I’m working in co-operative spectrum sensing for cognitive radios.. Currently in energy detection based on neyman-pearson criterion and likelihood ratio test.. Is there any blogs for hypothesis testing(DETECTION THEORY ) pls provide me if u have any materials or links

@Thiyagi: You can checkout Ms Charan Langton’s articles at

http://www.complextoreal.com/tutorial.htm

http://www.complextoreal.com/chapters/modulation2.pdf

Sir…

is there a reason between the choosing a MIMO 2×2 with the 64-QAM constellation?

are they connected each other?

i mean, why don’t we choose 2×3 or 2×4 which have a higher throughtput?

the square configuration (MIMO 2×2) and the square constellation of 64-QAM, are they correlated each other?

thank you for your answer

@Dewa: The MIMO configuration (2×2, 3×3 etc) and the constellation (64-QAM, QPSK, 16QAM etc) are independent design choices. For eg, if you see 11n/11ac standard, can see the MIMO configurations with upto 8 antennas, with constellations from BPSK all the way to 256QAM.

sir we are implementing 2×2 MIMO system..using almouti scheme and also mrc at receiver side…actually we have to transmit text file wirelessly through zigbee module and receiver should add both the signal…i dnt knw how the SNR will increase and also the original signal should get back…

@snehaa diwan: Couple of points:

a) Using two transmit antennas and two receive antennas, you can potentially double the data rate

For articles relating the equalization with a 2x2MIMO case, please look at

http://www.dsplog.com/tag/mimo/

b) To increase the reliability, one can chose to keep the data rate and have more antennas at the receiver

- Maximal Ratio Combining (1tx and 2 receive antennas)

http://www.dsplog.com/2008/09/28/maximal-ratio-combining/

- Alamouti coding (2tx and 1 receive antenna)

http://www.dsplog.com/2008/10/16/alamouti-stbc/

- Alamouti coding (2tx and 2 receive antenna)

http://www.dsplog.com/2009/03/15/alamouti-stbc-2-receive-antenna/

Hope this helps

hi Krishna

Good to see you solving problems of technocrates

i want some suggestion from you on my project.

i am doing MSK modulation using DDS centered at 60 mhz. please suggest me some demodulation scheme at receiving End.

@vikas: please take a look at http://www.dsplog.com/tag/msk

If we increase the number of subcarriers on OFDM, but keep the bandwidth the same, why do you think the BER increases with higher carriers

@Mat: If the number of subcarriers are more, then the chances of the frequency offset, phase noise affecting the orthogonality between the subcarriers gets higher.

Why have you stopped posting man ??

@abhsihek: am getting lazy?

Hello Mr krishna

Currently im doing research on ofdm with qpsk and 64-qam modulation technique. I also need to generate a simulation of it.

But im a little bit confuse now…what is the equation for the BER of QPSK and 64-QAM?

it will be helpful if you can guide me on how to generate the MATLAB codes.

Thanks in advance

@mij: Please refer to the post http://www.dsplog.com/2008/07/08/compare-bpsk-qpsk-4pam-16qam-16psk-64qam-32psk/

hello sir,

can u provide matlab code for to undersample the pulsed UWB signal?……plz help me sir…….

@uma: Sorry, I have not tried model UWB systems

sir,

we are trying to implemnt UWB subsampling receiver for 3.1to 10.6 ghz input signal(gaussian pulse).can u help us with matlab code for subsampling receiver..

please sir .kindly help us..

@jennifer: Sorry, I have not tried modeling UWB. For downsampling, its as simple as take one out of two samples (for downsample by 2)

hi dude,

i am stuck with coding in matlab of simulation environment for mobile communication system (mose) for power control in mobile radio system.

please help me

@hitesh: What is the problem which you are facing?

Just found this website. What a wonderful gold-mine! Krishna, very nicely done!

–Pascal

Hi Krishna,

Yesterday I sent a mail to your address and also posted a question on forum asking about plotting eye diagram. On one of the thread I found this and had few doubts.

When you say you are plotting 2 bits I see that high and low of that bit are at center of plot. So is it plotted as half of previous bit-current bit-half of next bit

?

Dudes, I salute you for this. One wonderful blog.

Do u have MATLAB code for transfering data between two computers using parallel port?

@smruthi: Sorry, I do not have. However, you might want to check the following links:

(a) MATLAB TCP/IP – code example by Steven Kolak

http://www.mathworks.com/matlabcentral/fileexchange/11802

(b) TCP/IP Communication for Real-Time and Embedded Systems By Sam Mirsky

http://www.mathworks.com/company/newsletters/digest/2008/july/tcpip.html

(c) Instrument Control Toolbox 2.9

http://www.mathworks.com/products/instrument/

Mr. Kri Index to Various dashnan, I want to know , While assigning Subcarrier

Index to each data, You have used -26 to +26 neglecting 0. may know how this process is done. WHY Such change in subcarrier index is followed

@Selvi: 0th subcarrier is not used by controlling the assignment of symbols to subcarriers. In general, modulating the DC subcarrier is not preferred as the DC impairments in RF etc will corrupt the information.

Hello,

While I was putting the code, I downloaded from

http://www.dsplog.com/db-install/wp-content/uploads/2009/08/script_ber_bpsk_convolutional_code_viterbi_decode.c

in the codeblocks or in Visual Studio, it gives me error.

In codeblocks, it gives error at line number 42 and 138

error: undefined reference to `_exp10′|

Could you please tell me how to resolve this.

@Ajay: I also had the same problem when I tried to compile with gcc. I worked around it by using -lm option when compiling.

Maybe, the following URI might provide you more info:

http://ubuntuforums.org/archive/index.php/t-1071822.html

Good luck.

I have been asked to write a 1/4 soft input viterbi decoder in VHDL or Verilog (I use VHDL as I’m more familiar with it). I have a decent knowledge of Convolutional Codes and Viterbi Decoding and I have access to a 1/2 Viterbi decoder (which I didn’t create). My question is..is a 1/4 decoder much more complicated to design or is there anyway I can use the existing 1/2 decoder?

@Bob: Well, its not complex. However, you need to re-construct the trellis based on the current state-next state, input-output transition matrix for rate 1/4 code.