Lab 4: BER of BPSK in AWGN Channel
For BPSK modulation, the BER performance is given by
Ãs !
2Eb
Pb = Q (1)
N0
Lab Assignment 1
: you will first compare the simulation BER curve with the theoretic curve
given by (1) for BPSK or QPSK modulation.
You can refer to Fig 1. for flow diagram.
Transmitter
y yq ~ (0,2^L−1) yb ~ (0, 1)
Read pcm.wav quantization bit stream
Receiver
yq’
yb’ Recover quan.
detection play back
levels
Figure 1: Procedure diagram for Part 1.
Lab Assignment 2:
you need to use the data from lab0, assuming 3-bit quantization, generate
PCM pulses, and transmit over AWGN channel using BPSK. At the receiver side, after hard decision,
recover the PCM signal to the analog signal. Finally you can hear the noise corrupted voice quality
degradation by decreasing Eb /N0 .
The main functions used in this lab include:
1. Q function - Q(x): matlab provides error functions like erf(x), erfc(x). Please use help to write
Q(x) from erf(x) or erfc(x).
2. Gaussian random variable generation: you can use
x = randn(m, n)
1
to generate an array of Gaussian random variables with mean zero and unit variance. Then you
can use
y =σ·x+m (2)
to obtain Gaussian random variables with mean m and variance σ 2 . You need to consider how to
select σ value for given SNR.
3. When you plot your BER curve, use
semilogy(x, y)
to make y-axis appear in log-scale.