Documente Academic
Documente Profesional
Documente Cultură
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Lecture 1 Announcements
Course information Those who want to take the course ESS195 Digital
Communications models: layered and Shannon Kommunikation, F, please see Erik in the break
Basic concepts and definitions of digital Changes and updates are found on the web
communications www.s2.chalmers.se/undergraduate/courses/ess140
Short review of signals and systems
Binary transmission over noisy channels
Minimum-distance receiver
Erik Strm, Updated September 1, 2003 Lecture 1 1 Erik Strm, Updated September 1, 2003 Lecture 1 2
J. G. Proakis and M. Salehi, Communication Systems Not all material will be covered in the lectures. Please
Engineering, Second Edition, Prentice-Hall read the book!
The text book is available at Cremona or DC Exercises will consist of
Solutions to Selected Problems, Notes on Signals Short theory review
and Systems, will be available soon at DC One demonstration solution
Project descriptions and additional handouts will be Problem solving in groups
made available during the course at DC and on the The problems in the exercises may not be on the
web same level as the exam problems
Erik Strm, Updated September 1, 2003 Lecture 1 3 Erik Strm, Updated September 1, 2003 Lecture 1 4
Erik Strm, Updated September 1, 2003 Lecture 1 5 Erik Strm, Updated September 1, 2003 Lecture 1 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Exam Grades
Focused on understanding rather than memorization The final grade is based on the points accumulated
from the exam (max 40) and the projects
Allowed material
Any calculator Score 0-39 40-59 60-79 80
Proakis and Salehi Grade Fail 3 4 5
Beta
ECTS grades are assigned as
This years lecture slides
Own handwritten notes. No photo copies, Score 0-39 40-49 50-59 60-79 70-84 85
printouts, etc., are allowed Grade F E D C B A
Four problems with total maximum score of 40
Erik Strm, Updated September 1, 2003 Lecture 1 9 Erik Strm, Updated September 1, 2003 Lecture 1 10
source channel
source modulator
encoder encoder
noise
bit streams channel
Receiver
waveforms
source channel
sink demodulator
decoder decoder
Erik Strm, Updated September 1, 2003 Lecture 1 11 Erik Strm, Updated September 1, 2003 Lecture 1 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Synchronization methods
15-17
17-19
Erik Strm, Updated September 4, 2003 Lecture 2 1 Erik Strm, Updated September 4, 2003 Lecture 2 2
Erik Strm, Updated September 4, 2003 Lecture 2 3 Erik Strm, Updated September 4, 2003 Lecture 2 4
= 1 if D1 < D2 ,
m
= 2 if D1 > D2 ,
m
Erik Strm, Updated September 4, 2003 Lecture 2 5 Erik Strm, Updated September 4, 2003 Lecture 2 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
h2 (t ) = s2 (T0 t )
E2 / 2
T0 is chosen such that the matched filter is
causal
Erik Strm, Updated September 4, 2003 Lecture 2 7 Erik Strm, Updated September 4, 2003 Lecture 2 8
b[k ]g (t kT ) T 4T t
k =
T 2T 3T 4T t
A2T
b[1] p(t T ) b[2] p(t 2T )
A
b[1]g (t T ) b[2]g (t 2T ) sgn {y (kT + T )} = b[k ]
Erik Strm, Updated September 4, 2003 Lecture 2 9 Erik Strm, Updated September 4, 2003 Lecture 2 10
t = T0 + kT
r (t ) y (t ) y (T0 + kT ) b[k ]
h(t ) = g (T0 t ) sgn{ }
s(t ) = b[k ]g (t kT )
k =
Lecture 3 Review
The matched filter to s(t) has impulse response
Synchronization of PAM signals h(t ) = s(T0 t ), where T0 is the sampling time
Signal constellation and signal space concepts t = T0
Inner product, norm, distance, and bases for signal r (t ) y (t ) y (T0 )
spaces h(t )
Energy and distance computations from signal
constellations y (t ) = r (t ) h(t ) = Rrs (t T0 )
Common signal constellation types: one-dimensional, Rrs ( ) = r (u + )s (u ) du = crosscorrelation function
orthogonal, biorthogonal, and simplex constellations
y (T0 ) = Rrs Rrs (0) = crosscorrelation
ss ( t )
A binary PAM signal is formed from the bit stream ss ( t )
b[k ] {1, +1} and the pulse shape g(t) as A A
s(t ) = b[k ]g(t kT )
k =
Tsync Tsync +
A A
The noiseless output from the matched filter is
4A2T
y (t ) = s(t ) g (T0 t ) = b[k ]p(t kT )
k =
Tsync + + T
p(t ) = g (t ) g (T0 t ) = Rgg (t T0 ) A2T
Rgg ( ) = g(u + )g (u ) du = autocorrelation function Tsync +
A2T
2A T
2
Erik Strm, Updated September 8, 2003 Lecture 3 3 Erik Strm, Updated September 8, 2003 Lecture 3 4
Important Properties of the Signal Set Inner Product and Norm Properties
x (t ), y (t ) = x (t )y (t ) dt
Size: M
= crosscorrelation between x (t ) and y (t )
Energies: E1, E2, , EM
Average energy: Es (= Eav in the book) ax (t ), y (t ) = a x(t ), y (t )
Distances between signal alternatives x (t ), ay (t ) = a x (t ), y (t )
x(t ) + y (t ), z(t ) = x (t ), z(t ) + y (t ), z(t )
d ij = si (t ) s j (t )
2
Minimum distance x(t ) = x (t ), x (t ) = x(t ) dt = E x
Erik Strm, Updated September 8, 2003 Lecture 3 7 Erik Strm, Updated September 8, 2003 Lecture 3 8
Note that N M
Erik Strm, Updated September 8, 2003 Lecture 3 9 Erik Strm, Updated September 8, 2003 Lecture 3 10
3 A Eg A Eg A Eg 3 A Eg (t )
T
sm (t ) = Ag t ( m 1) , dmin = A 2Eg , N = M, Es = A2Eg
M
Erik Strm, Updated September 8, 2003 Lecture 3 11 Erik Strm, Updated September 8, 2003 Lecture 3 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Lecture 4 Review
Statistical model of communications The signal space is the linear vector space spanned
A priori and a posteriori probabilities by the signal alternatives
Vector representation of white Gaussian noise M
span {s1(t ),, sM (t )} = x(t ) : x(t ) = ak sk (t ), ak scalar
MAP detection and probability of error k =1
ML detection The inner product and norm is defined as
x(t ), y (t ) = x(t )y (t ) dt
x (t ) = x (t ), x (t ) = E x
Erik Strm, Updated September 15, 2003 Lecture 4 1 Erik Strm, Updated September 15, 2003 Lecture 4 2
Erik Strm, Updated September 15, 2003 Lecture 4 3 Erik Strm, Updated September 15, 2003 Lecture 4 4
Inner product
k
sm (t ) sm 1(t ) sm (t )
= sm
x (t ) xk smN
i , k (t ) smN
Correlator implementation i , N (t ) smN smN
xk
x (t )
N (t )
( i ) dt
k (t )
Erik Strm, Updated September 15, 2003 Lecture 4 5 Erik Strm, Updated September 15, 2003 Lecture 4 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
n (t ) n
m s( t ) r (t )
m m m
s r
modulator demodulator
n (t ) Fundamental Problem
m s( t ) r (t )
m
symbol to s vector to signal to r decision Given the observation of the received vector,
vector signal vector rule choose the decision such that
Pc = Pr {m
= m}
n is maximized, or equivalently, such that
m
m
symbol to s r
decision Pe = Pr {m
m}
vector rule
is minimized.
Vector channel
Erik Strm, Updated September 15, 2003 Lecture 4 7 Erik Strm, Updated September 15, 2003 Lecture 4 8
Additive White Gaussian Noise The elements of the noise vector are independent
(AWGN) Channels identically distributed (iid) zero-mean Gaussian
random variables
The noise is assumed to be a white Gaussian x2
N 1
process with power spectral density Sn (f ) = N0 / 2 nk = n(t ), k (t ) N 0, 0 fnk ( x ) = exp
2 N0 N0
N0
E {n(t )} = 0, Rn ( ) = E {n(t )n(t + )} = ( ) and for n = [ n1 n2 nN ]
T
2 N 2
N
1 x2 1 xk
Rn ( ) Sn (f ) = F {Rn ( )} fn ( x ) = exp k = exp k =1
N0 ( )
N
N0 / 2 k =1 N0 N0 N0
N0
( )
2
1 x2
f = exp
( N0 )N/2
N0
Erik Strm, Updated September 15, 2003 Lecture 4 9 Erik Strm, Updated September 15, 2003 Lecture 4 10
i , s1 Re { i }
N0 E1
ln fm [1]
2 2
r (t ) r m
i , sM Re { i }
N0 E
ln fm [M ] M
2 2
Lecture 5 Review
1 x2
fn ( x ) = exp
( N0 )N/2
N0
Erik Strm, Updated September 22, 2003 Lecture 5 1 Erik Strm, Updated September 22, 2003 Lecture 5 2
fn ([x1 x2]T )
2
Contour plot Optimum Detection
0.3
0
x
0.1
MAP = arg max fm|r (k | x ),for general channels
m
k {1,2,,M }
0 -1
= arg max fr|m ( x | k )fm [k ]
2 k {1,2,,M }
Erik Strm, Updated September 22, 2003 Lecture 5 3 Erik Strm, Updated September 22, 2003 Lecture 5 4
For equally likely transmitted symbols, fm [k ] = 1/ M , MAP Receiver for AWGN Channels
MAP becomes maximum likelihood (ML) detection
i ,s1 Re { i }
ML = arg max fr|m ( x | k ), for general channels
m
k {1,2,,M }
Erik Strm, Updated September 22, 2003 Lecture 5 5 Erik Strm, Updated September 22, 2003 Lecture 5 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
1 t2 1
exp
2
Q( x ) = e t /2
dt
Decision Regions 0.4
2 2
1
2 x
2 (t )
0.8 Q( x )
Z1 0.3
= 1 Q( x )
Z2 0.6
0.2
Q( x 0 )
s1 0.4
r = x m = 2 s2
0.1
0.2
1 (t )
0 0
-4 -2 0 x0 2 4 -4 -2 0 2 4
t x
If Y N (mY , ), then 2
Y
s3
Z4 Z3
Y mY x mY x mY
Pr {Y > x} = Pr > =Q
s4
Y Y Y
N (0,1)
Erik Strm, Updated September 22, 2003 Lecture 5 7 Erik Strm, Updated September 22, 2003 Lecture 5 8
10
-4 s4 s3 s4 s3
Es Z3
Q2 Z4 Z3
N
Z4
-5
10 0
10
-6 Pr {r Z2 | m = 1} = I1 Pr {r closer to s2 than s1 | m = 1} = I 2
0 2 4 6 8 10 12 14
10 log 10 E s/N 0
Erik Strm, Updated September 22, 2003 Lecture 5 9 Erik Strm, Updated September 22, 2003 Lecture 5 10
1(t )
s1
d12
s2 n
2 (t )
n N
Noise vector after change of coordinates = n = 1 , n1 and n2 independent N 0, 0
n2 2
Lecture 6 Review
Erik Strm, Updated September 29, 2003 Lecture 6 1 Erik Strm, Updated September 29, 2003 Lecture 6 2
Pc|k = Pr {m
= k | m = k} = 1 Pe|k
s4 s3 s4 s3
pdf contour
If Y N (mY , Y2 ) then lines Z3
Z4 Z3 Z4
x mY 1
Pr {Y > x} = Q
integration area Z 2 to produce
2
, Q( x ) = et /2
dt Pr {r Z 2 | m = 1} = I1 Pr {r closer to s2 than s1 | m = 1} = I 2
Y 2
Erik Strm, Updated September 29, 2003 Lecture 6 3 Erik Strm, Updated September 29, 2003 Lecture 6 4
Autocorrelation function: R X (t , t + ) = E [ X (t ) X (t + )] = R X ( )
impulse response: c(t )
frequency response: C(f )
Power spectral density: S X (f ) = F [R X (t )]
S (f ) df
C (f ) C (f )
Power: PX = E X 2 (t ) = R X (0) = x
Erik Strm, Updated September 29, 2003 Lecture 6 7 Erik Strm, Updated September 29, 2003 Lecture 6 8
2 cos(2 fc t ) 2 cos(2 fc t )
C (f )
X (t ) Y (t ) = X (t ) h(t )
H (f ) = F [ h(t )] X Q (t ) YQ (t ) ZQ (t ) X Q (t )
2 LP
S X (f ) SY (f ) = S X (f ) H (f )
R X ( ) RY ( ) = R X ( ) Rh ( ) 2 sin(2 fc t ) 2 sin(2 fc t )
Erik Strm, Updated September 29, 2003 Lecture 6 9 Erik Strm, Updated September 29, 2003 Lecture 6 10
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Lecture 7 Review
For a general M-ary signal constellation, ML
IQ carrier modulation detection, and equally likely transmitted symbols, the
Phase-shift keying PSK symbol error probability can be bounded as
Impact of carrier phase estimation errors on coherent
1 M M d kl d2
2
receivers
Pe Q
M k =1 l =1 2N0
(M 1)Q min
2N0
No lecture on Monday l k
Project report deadline 10:00 on Monday d kl = sk sL , dmin = min d kl
k l
Suppose s1 is transmitted, then r = s1 + n The power spectral density of the PAM signal
1(t ) S (t ) = ag
k =
k T (t kT ) is
1
SS (f ) = Sa (f ) | GT (f ) |2
s1 T
d12
GT (f ) = F [ gT (t )]
2 (t ) n
R [m] e j 2 fTm
s2
n Sa (f ) =
n = 1 , a
n2 m =
N
n1, n2 i.i.d. N 0, 0
Ra [m] = E [ak ak + m ]
2
For equally likely and independent symbols,
s1 s2
2
2
Pr {r closer to s2 than s1 | s1 transmitted} = Q
2N0
= Q d12
2N0 Sa (f ) = E [ ak ak ] = a2
Erik Strm, Updated October 2, 2003 Lecture 7 3 Erik Strm, Updated October 2, 2003 Lecture 7 4
Erik Strm, Updated October 2, 2003 Lecture 7 5 Erik Strm, Updated October 2, 2003 Lecture 7 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
The signals
2 IQ-demodulator
I (t ) = gT (t )cos(2 fc t )
Eg Matched filter with respect to I (t )
2 t = T0 + nT
Q (t ) = gT (t )sin(2 fc t ) 1 rI
Eg gT (T0 t )
Eg
n(t )
2
Eg = gT (t ) dt r (t )
2 cos(2 fc t ) m
s( t )
are orthonormal if t = T0 + nT
1 rQ
k gT (T0 t )
gT (t ) = 1, for 0 t < T , and fc = , for any integer k Eg
2T
or very nearly orthonormal if 2 sin(2 fc t ) sI nI
r = s+n = +
Matched filter with respect to Q (t ) sQ nQ
fc bandwidth of gT (t )
Erik Strm, Updated October 2, 2003 Lecture 7 7 Erik Strm, Updated October 2, 2003 Lecture 7 8
dmin
s 6 Q (t ) s 6 Q (t )
PSK Signal Constellation Z7
2
Z7
s5 s7 s5 s7
s6 Q ( t )
Z7 I (t ) s 8 I (t )
s5 s7 s4 s8 s4
Es Es
s8 I ( t ) s3 s3
s1 s1
s4 1
s2 s2
2 Eg
M radius = A = Es
s3 2 d2 d2
s1 p1 = Pr {r 1 | s = s7 } = Q min p2 = Pr {r 2 | s = s7 } = Q min
2N0 2N0
s2
dmin = 2 Es sin
M d 2Es
Pe = Pr{r Z7 | s = s7 } p1 + p2 = 2Q min = 2Q sin
M N0
2N0
Erik Strm, Updated October 2, 2003 Lecture 7 9 Erik Strm, Updated October 2, 2003 Lecture 7 10
s4
s3 s4
s3
/4 3 / 8
e =
8
s1
s2 s1 s2
transmission
2-dimensional
PAM XQ (t )
sQ 1
Raised-cosine pulses constellation
Eg
gT (t )
sI
s= 2 sin(2 fc t )
sQ
QAM and FSK will not be explicitly covered at the 2
PAM with Q (t ) = gT (t ) sin(2 fc t )
lectures, please read the book (Sections 7.6.2, 7.3.3, Eg
7.5.6, 7.6.5 and 7.4.1, 7.5.7) and the handout Notes I (t ) and Q (t ) are orthonormal if fc bandwidth of gT (t ).
on QAM, which is found on the web
Erik Strm, Updated October 14, 2003 Lecture 8 1 Erik Strm, Updated October 14, 2003 Lecture 8 2
11 11
s2 10 channel filter
s1 impulse response: c(t )
01 00 00 01 00
frequency response: C ( f )
State transition
Original state
Transmitted bits
Erik Strm, Updated October 14, 2003 Lecture 8 5 Erik Strm, Updated October 14, 2003 Lecture 8 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
t = nT + T0
PAM block splitting an PAM
c (t ) g R (t )
decision an
gT ( t ) y (t ) y (nT + T0 ) rule
an PAM s (t )
gT (t ) t = nT + T0
an PAM decision an
gT (t ) c (t ) g R (t )
(t ) y (t ) y (nT + T0 ) rule
t = nT + T0
an PAM z(t ) s (t ) an
PAM decision
an
gT (t ) (t ) x( t ) = gT (t ) c (t ) g R (t )
(t ) y (t ) y (nT + T0 ) rule
t = nT + T0
z( t ) = a (t nT )
n
an PAM
x(t ) y (nT + T0 )
decision
rule
an
n = y (t )
Erik Strm, Updated October 14, 2003 Lecture 8 7 Erik Strm, Updated October 14, 2003 Lecture 8 8
0.4
causes ISI
X c (f ) = F { xc (t )} X d (F ) = x
n =
d [n ]e j 2 Fn
0.3
1 F k
X d (F ) = Xc
0.2 Ts k = Ts
0.1
1
k
We can write X d (fTs ) = x (nT )e c s
j 2 fTs n
= X c f
0
-T -T/2 0 T/2 T 3T/2 2T 5T/2 3T 7T/2 4T
n = Ts k = Ts
Erik Strm, Updated October 14, 2003 Lecture 8 9 Erik Strm, Updated October 14, 2003 Lecture 8 10
X (f + 1/ T ) C (f ) X (f ) X (f 1/ T )
Raised-Cosine Spectra
X rc (f ) Constant = T
T
Cosine-shape
Excess
f T
bandwidth
2
1
1 T
W W
T 1 1 1+ f
k
2T 2T 2T Roll-off
X rc f
If 1/T > 2W, then ISI-free transmission is not possible k = T factor
T
If 1/T = 2W, then ISI-free transmission is possible if
x (t ) = sinc(t / T ) 1 T 1
X rc f + X rc (f ) X rc (f ) X rc f
T 2 T
If 1/T < 2W, then ISI-free transmission is possible
with many pulse shapes
1 1 1+ f
2T 2T 2T
Erik Strm, Updated October 14, 2003 Lecture 8 11 Erik Strm, Updated October 14, 2003 Lecture 8 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Erik Strm, Updated October 27, 2003 Lecture 9 1 Erik Strm, Updated October 27, 2003 Lecture 9 2
If we ignore the time delay T0, the sampled output of A pulse x(t) with Fourier transform X(f) is a Nyquist
the receiver filter can be written as pulse if
y n = y (nT ) = an x(0) +
a x((n k )T )
k =
k T = X (f k / T )
k =
desired term k n
1, n = 0 1, f W
x (nT ) = C (f ) =
0, n 0 0, f > W
Erik Strm, Updated October 27, 2003 Lecture 9 3 Erik Strm, Updated October 27, 2003 Lecture 9 4
X (f + 1/ T ) C (f ) X (f ) X (f 1/ T )
Raised-Cosine Spectra
X rc (f ) Constant = T
T
Cosine-shape
Excess
f T
bandwidth
2
1
1 T
W W
T 1 1 1+ f
k
2T 2T 2T Roll-off
X rc f
If 1/T > 2W, then ISI-free transmission is not possible k = T factor
T
If 1/T = 2W, then ISI-free transmission is possible if
x (t ) = sinc(t / T ) 1 T 1
X rc f + X rc (f ) X rc (f ) X rc f
T 2 T
If 1/T < 2W, then ISI-free transmission is possible
with many pulse shapes
1 1 1+ f
2T 2T 2T
Erik Strm, Updated October 27, 2003 Lecture 9 5 Erik Strm, Updated October 27, 2003 Lecture 9 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
t an
cos PAM to detector
t T c (t ) g R (t ) gE (t )
xrc (t ) = sinc 2
gT (t ) z( t )
T 2 t
1
T Transmit and Receive Filters
X rrc (f ) = X rc (f ) Fixed
Usually matched to each other
(1 ) t 4 t (1 + ) t
sin + cos
xrrc (t ) = T T T T
4 t 2
t 1
T
Erik Strm, Updated October 27, 2003 Lecture 9 7 Erik Strm, Updated October 27, 2003 Lecture 9 8
n( t ) (t )
Sn (f ) g R (t )
Sn (f ) X rc (f )
t = nTs
an y (t ) yn zn a n d
x(t ) = gT (t ) c(t ) gR (t )
Note that Sn (f ) X rc (f ) and S (f ) is the noise PSD The sampling time could be Ts = T (symbol-spaced)
before and after the equalizer, respectively or Ts = T/2 (fractionally-spaced)
The quantity d is called the detection delay
Erik Strm, Updated October 27, 2003 Lecture 9 9 Erik Strm, Updated October 27, 2003 Lecture 9 10
cT
c0 c1 c2L 1 c2L en an d
zn an d
yn = [ y n y n 1 " y n 2L 1 y n 2L ]
T
Data vector
Mean squared error (c ) = E en = E zn an d
2 2 2
( )
1
Filter output zn = cT y n Optimum coefficients copt = argmin 2 (c ) = E yn yTn E [ yn an d ]
c
MATLAB command z = conv(y, c)
Erik Strm, Updated October 27, 2003 Lecture 9 11 Erik Strm, Updated October 27, 2003 Lecture 9 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Rya [k ] = x k
2
y n an d Rya [ d ] Rya [ 1]
a
E {yn an } = E y n 1an d = Rya [1 d ] = Rya [0]
y a R [2 d ] R [1]
n 2 n d ya ya
Rya [k ] = E {y n an + k }
Erik Strm, Updated October 27, 2003 Lecture 9 13 Erik Strm, Updated October 27, 2003 Lecture 9 14
Erik Strm, Updated October 27, 2003 Lecture 9 15 Erik Strm, Updated October 27, 2003 Lecture 9 16
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Lecture 10 Review
The symbol error probability for M-PSK is
/ M
Orthogonal FSK with coherent detection 1 sin2 ( / M ) Es
Comparison of modulation formats in terms of
Pe =
0
exp
sin2 ( ) N0
d
Power efficiency
2Es
Spectral efficiency Q , M =2
Bit and symbol error probability N0
Bit and symbol energy Es Es
= 2Q Q
2
, M =4
N 0 N0
2Q sin 2Es
, M >4
M N0
Erik Strm, Updated November 3, 2003 Lecture 10 1 Erik Strm, Updated November 3, 2003 Lecture 10 2
sm (t ) = Es m (t ), m = 1,2,, M M2
n n +1
n =1 n + 1 N0
Erik Strm, Updated November 3, 2003 Lecture 10 5 Erik Strm, Updated November 3, 2003 Lecture 10 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
2-FSK noncoherent
2Es -1 2-FSK coherent
Pe,BPSK = Q
10
2-DPSK
N0 -2 Diff. encoded 2-PSK
10
2Es 2Es 2Es 2-PSK
Pe,diff. enc. BPSK = 2Q 2Q
2
2Q = 2Pe,BPSK -3
error prob. target
N0 N0 N0
10
1 Es / N0 -4
Pe,2DPSK = e 10
2 power difference
-5 to coh. FSK: 3 dB
Es 10
Q , coherent required Es/N0
N0
=
-6
10 required Es/N0 for for coh. FSK
Pe,BFSK 2-PSK
1 Es
2 exp 2N ,
-7
noncoherent 10
0 5 10 15
0 Es/N0 in dB
Erik Strm, Updated November 3, 2003 Lecture 10 7 Erik Strm, Updated November 3, 2003 Lecture 10 8
Bit error probability for M-PSK (union bound) Bit error probability for M-QAM
0 0
10 10
k = 1,2 k = 1,2
k=4 k=4
-1 -1
10 k=6 10 k=6
-2 -2
10 M = 64 10
M = 64
-3 -3
10 10
M = 16 M = 16
-4
10 10
-4 M = 2,4
M = 2,4
-5
10 10
-5
-6
10 -6
10
-7
10 -7
0 5 10 15 20 25 30 10
Eb/N0 in dB 0 5 10 15 20
Eb/N0 in dB
Erik Strm, Updated November 3, 2003 Lecture 10 9 Erik Strm, Updated November 3, 2003 Lecture 10 10
-2 -2
10 10 PSK
-3
10 10
-3 QAM
-4 -4
10 M=4 10 FSK
M = 16
-5 -5
10 10
M = 64
-6 -6
10 10
-7 -7
10 10
0 2 4 6 8 10 12 0 5 10 15 20 25 30
Eb/N0 in dB Eb/N0 in dB
Erik Strm, Updated November 3, 2003 Lecture 10 11 Erik Strm, Updated November 3, 2003 Lecture 10 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
2
Bandwidth and spectral efficiency cos ( 2 [fc + (m 1)f ] t ) ,
s m ( t ) = Es 0 t <T
T
Channel capacity 1
Signal constellation design with block codes where Es = energy/symbol, f = = frequency spacing
2T
Power and spectral efficiency tradeoffs using binary
Symbol error probability: eq. (7.6.82) in the book
block codes and binary modulation
Hamming and Euclidean distance measures E
Q M =2
s
,
N0
Pe =
Es
(M 1)Q N , M > 2 (standard UB)
0
Erik Strm, Updated November 11, 2003 Lecture 11 1 Erik Strm, Updated November 11, 2003 Lecture 11 2
Erik Strm, Updated November 11, 2003 Lecture 11 3 Erik Strm, Updated November 11, 2003 Lecture 11 4
For QAM and PSK, the power efficiency decreases H (Pb ) = Pb log2 (Pb ) (1 Pb )log2 (1 Pb )
with M. For FSK, the power efficiency increases with
M. Virtually no difference when Pb is less than 0.001
Erik Strm, Updated November 11, 2003 Lecture 11 5 Erik Strm, Updated November 11, 2003 Lecture 11 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Power and Spectral Efficiency at Pb = 10-5
1
10
Rb = C
64
256
64
A 4-ary Constellation in 2 Dimensions
16 16
Some fundamental definitions and relations
4 QAM
10
0 PSK
E = energy per dimension
2 FSK n = number of dimensions
Rb/W 4 2 Example
[bits/s/Hz]
Es = nE = kEb = energy per symbol
M
16
2 (t ) side of square = 2 E
10
-1
64
E
dmin,2 = 2 E , n = 2, k = 2
E E 1( t )
256
Asymptotic minimum Eb/N0 for error free transmission
E = (k / n )Eb = Eb
10
-2
-1.59 0 5 10 15 20 25 30
d 2
min,2 = 4E = 4Eb
Eb/N0 [dB]
Erik Strm, Updated November 11, 2003 Lecture 11 7 Erik Strm, Updated November 11, 2003 Lecture 11 8
E 2 (t )
1( t ) k info bits n coded bits channel bits signal vector
0 0 1 1 1 1 1 1 E E E
dmin,3 = 2 2E E
0 1 0 0 1 1 1 1 E E
k = 2, n = 3
1 0 0 1 0 1 1 1 E E E
k 16
2
dmin,3 = 8E = 8 E b = Eb > dmin,2
2
= 4Eb 1 1 1 0 0 1 1 1 E
E E
n 3
Erik Strm, Updated November 11, 2003 Lecture 11 9 Erik Strm, Updated November 11, 2003 Lecture 11 10
Erik Strm, Updated December 4, 2003 Lecture 12 1 Erik Strm, Updated December 4, 2003 Lecture 12 2
y ( nT ) r
m
sm = (2c m 1) E , m = 1,2,, M
convert from
0,1 to 1
The Hamming weight wH(ck) is the number of ones in Soft decoding selects s as the signal vector that is
the binary vector ck. closest to r in Euclidean distance
The Hamming distance between ck, cl is The decoding error probability can be bounded as
2Eb
d H (c k , c l ) = w H (c k c l ) Pe = Pr{s s} = Pr{c c} = Pr{m
m} (2k 1)Q Rc dmin
N
0
where denotes modulo 2 addition An uncoded system has Rc = 1 and dmin = 1. If m is
The minimum distance of a block code is still a k-vector, then
2Eb
Pe = Pr{m m} (2k 1)Q
dmin,H = min d H (c k , c l ) N
k l 0
The squared Euclidean distance of the corresponding The gain in power efficiency for large Eb/N0 is called
signal constellation is the asymptotic coding gain and is
2
E = min sk sl = 4Edmin,H
2
dmin,
k l
Gcoding = 10log10 (Rc dmin )
dB
Erik Strm, Updated December 4, 2003 Lecture 12 7 Erik Strm, Updated December 4, 2003 Lecture 12 8
cHT = mGHT = m0 = 0
n( t )
Lecture 13 M = 2k -ary n-dimensional modulator
t = nT
(n,k) binary
info bits coded bits 0 1 channel bits s (t ) r (t ) y ( nT )
block PAM xRRC ( t )
encoder 1 1
10 101 1 11 E xRRC (t )
Standard array and syndrome decoding m c
descriptions y ( nT ) collect r
decision rule
m
n
(preferably ML)
samples
Hard decoding
y ( nT ) decisions on collect y
m
channel bits 1 0 decision rule
sgn( ) n
1 1 samples
(preferably ML)
Erik Strm, Updated November 25, 2002 Lecture 13 1 Erik Strm, Updated November 25, 2002 Lecture 13 2
Soft decoding minimizes the Euclidean distance The error correcting capability of a block code is
between r and the decoded signal vector d 1
t = min
The decoding error probability for soft decoding can 2 floor function: round
be bounded as down to closest integer
Erik Strm, Updated November 25, 2002 Lecture 13 3 Erik Strm, Updated November 25, 2002 Lecture 13 4
Erik Strm, Updated November 25, 2002 Lecture 13 5 Erik Strm, Updated November 25, 2002 Lecture 13 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Standard Array
zero Cyclic Block Codes
codeword c1 c2 c 2k
e1 c 2 e1 c 2k e1 A linear code is a cyclic code if all cyclic shifts of a
coset code word is also a code word.
e 2n k c 2 e 2n k c 2k e 2n k There exist methods for encoding and hard decoding
which are much more efficient than for standard
coset leaders linear codes.
For row i = 2, 3, , 2n k find a pattern of minimum Hence, we can implement relatively long block codes
weight which is not already listed in the array (the with reasonable complexity.
choice is not always unique) Among the cyclic codes we find the important BCH
Call this pattern e i and form the ith row as the and Reed-Solomon codes.
corresponding coset c1 e i , c 2 e i ,, c 2k e i
Erik Strm, Updated November 25, 2002 Lecture 13 7 Erik Strm, Updated November 25, 2002 Lecture 13 8
encoder memory:
defines the state
[ xi 1 xi 2 ] y (0)
i
information
bits xi xi 1 x i 2 coded bits
y i(0 ) , y i(1)
y i(1)
modulo 2 adders
Erik Strm, Updated November 25, 2002 Lecture 13 9 Erik Strm, Updated November 25, 2002 Lecture 13 10
S1 S0 11 2 0 1 1
S1 S2 00 0 2 1 1
S2 S1 01 1 1 2 0
S2 S3 10 1 1 0 2
S3 S1 10 1 1 0 2
Erik Strm, Updated November 25, 2002 Lecture 13 11 Erik Strm, Updated November 25, 2002 Lecture 13 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Received sequence
01 00 11
1 0 2
S0
1 2 0 accumulated
distance = 2
1
0
S1
1 0 2
accumulated
0 1 1 distance = 1
1
1
2
S2
2 1 1
Lecture 14 Review
The generator matrix for a systematic code has the
Convolutional codes form
G = [Ik P]
Encoder
State diagram Ik = k k identity matrix and P = k (n k ) matrix
Trellis The parity check matrix for a systematic code is
Viterbi algorithm
H = PT In k
Performance analysis
The syndrome for y is
0, if y is a code word
s = yHT =
0, if y is not a code word
Erik Strm, Updated December 4, 2003 Lecture 14 1 Erik Strm, Updated December 4, 2003 Lecture 14 2
The columns of the standard array describe the All elements in a coset has the same syndrome
decision regions for a hard ML decoder Hard ML-decoding: given the received vector y
The standard array is a table with 2k columns and 2n-k Compute syndrome, s y = yHT
rows (cosets) that lists all possible 2n received words. Find coset leader e with same syndrome, s y = eHT
Construction algorithm: Decode as c = y e
The first row lists the code words, where c1 = 0 We recall that
c1 c 2 c 3 c 2k y = c m x c = y e = c m x e
Search among the binary vectors not listed thus transmitted error
pattern
=0 if x = e
code word
far, and select one with the smallest possible
and the coset leader are therefore the correctable
weight, ei, as the coset leader and form the ith
error patterns
coset (row) as
For a t-error correcting code, the first coset leaders
e i c1 e i c 2 ei c3 e i c 2k are all the possible n-bit patterns with weight t or less
Erik Strm, Updated December 4, 2003 Lecture 14 3 Erik Strm, Updated December 4, 2003 Lecture 14 4
The probability of incorrect decoding for code with Rate , Memory 2 Convolutional Encoder
error correcting capability t is
encoder memory:
2n k
Encoding of N bits with trellis An N-bit packet of information bits is encoded into a
termination path through the trellis with (N + L 1) trellis sections
The effective rate for a rate Rc = 1/n code is
0 1 2 3 4 N 2 N 1 N N + L 1
number of coded bits N 1 1
Reff = = =
number of info bits n(N + L 1) n L 1
=Rc
1+
N
fractional rate loss
The spectral efficiency is
Rb R R
W = Reff b < Rc b
coded W uncoded W uncoded
Erik Strm, Updated December 4, 2003 Lecture 14 9 Erik Strm, Updated December 4, 2003 Lecture 14 10
S3 S3 01 1 1 2 0
Erik Strm, Updated December 4, 2003 Lecture 14 11 Erik Strm, Updated December 4, 2003 Lecture 14 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Received sequence
01 00 11
1 0 2
S0
1 2 0 accumulated
distance = 2
1
0
S1
1 0 2
accumulated
0 1 1 distance = 1
1
1
2
S2
2 1 1
Viterbi decoding:
Label all transitions in the trellis with the distance
between received sequence and the coded bits.
For time i = 1 to (N + L 1)
Compute the accumulated distance of all paths
merging in the nodes at time i.
Keep the best path (the survivor) in each node
and save the accumulated metric.
The ML path is the survivor in the all-zero node at
the end of the trellis.
In practice, at time i, we can decode the information
bit at time i without any significant performance 5L
loss if 5L.
Erik Strm, Updated December 4, 2003 Lecture 14 15 Erik Strm, Updated December 4, 2003 Lecture 14 16
An error path at time i is a path segment that leaves We denote the error paths by x1, x 2 , and define
the zero state at time i and returns to the zero state
exactly once. w ( x ) = Hamming weight of coded bits
w I ( x ) = Hamming weight of information bits
Erik Strm, Updated December 4, 2003 Lecture 14 19 Erik Strm, Updated December 4, 2003 Lecture 14 20
If x1,, x are the paths of weight dfree, and x +1,, x The weight spectrum can be found from the transfer
the paths of weight dfree+1, etc., then function of the code and is tabulated for most codes
of practical interest
nb w I ( x k )P2 (w ( x k )) The union bound on the bit error probability is
n 1
cd P2 (d )
k=1
= [w I ( x1 ) + + w I ( x )] P2 (d free ) Pb = b
k k d =dfree
cdfree
For soft decoding The first term in the union bound is also the largest
d2 4Ed 2Eb (for large Eb/N0), and for soft decoding
P2 (d ) = Q E
= Q = Q Rc d 2Eb
2N0 cdfree cd free
2N0 N0 P2 (d free ) = Q Rc d free
k k N0
For hard decoding
The asymptotic coding gain (expected gain in power
d odd
d efficiency for large Eb/N0) is therefore
P2 (d ) = p j (1 p )d j
j =( d odd +1) / 2 j
Gcoding = 10log10 ( Rc d free )
d odd = d rounded down to closest odd integer
dB
Erik Strm, Updated December 4, 2003 Lecture 14 23 Erik Strm, Updated December 4, 2003 Lecture 14 24
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
The signal alternatives for orthogonal M-FSK for Noncoherent detector for binary orthogonal FSK
noncoherent detection are t = nT
1 rI 1
2 gT ( t )
cos ( 2 [fc + (m 1)f ] t + )
( i )2
sm (t ) = Es gT (t ) Eg
Eg f1 = fc
2 cos(2 f1t ) r12
t = nT
2
= Es cos ( ) gT (t ) cos ( 2 [fc + (m 1)f ] t ) 1
Eg
gT ( t )
rQ1
( i )2
Eg
r (t ) 2 sin(2 f1t ) choose
m
largest
2
Es sin ( ) gT (t ) sin ( 2 [ fc + (m 1)f ] t )
t = nT
1 rI2
Eg gT ( t ) ( i )2
Eg
2 cos(2 f2 t ) r22
Erik Strm, Updated December 2, 2003 Lecture 15 5 Erik Strm, Updated December 2, 2003 Lecture 15 6
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
0
Error probability for some binary modulation methods
10
The symbol error probability for noncoherent
2-FSK noncoherent
detection of orthogonal M-FSK is -1 2-FSK coherent
10
2-DPSK
M 1
M 1 1 n Es Diff. encoded 2-PSK
Pe = ( 1)n +1
-2
n + 1 exp n + 1 N
10
2-PSK
n =1 n 0
-3
error prob. target
10
1 Es
= exp , M =2 -4
2 2N0 10
power difference
-5 to coh. FSK: 3 dB
10
required Es/N0
-6
10 required Es/N0 for for coh. FSK
2-PSK
-7
10
0 5 10 15
Es/N0 in dB
Erik Strm, Updated December 2, 2003 Lecture 15 7 Erik Strm, Updated December 2, 2003 Lecture 15 8
Binary FSK
1
MSK phase tree MSK phase trellis
3 3
0.5 2
+1
2 1
+1
0
+1
+1 1
-0.5 1 +1
1
2 2 1
-1 +1 +1
0 0.5 1 1.5 2 2.5 3 3.5 4
1 1
Binary continuous phase FSK +1 +1
1 0
T +1 2T 3T t T 2T 3T 4T 5T t
1 1
0.5
2
+1
0 1 E (t 3T )
cos 2 fct + , 3T t < 4T
2T 2 2T
-0.5
3 1
-1
phase state info bit = -1
0 0.5 1 1.5 2 2.5 3 3.5 4
2 at t = 3T at t = 3T
Erik Strm, Updated December 2, 2003 Lecture 15 9 Erik Strm, Updated December 2, 2003 Lecture 15 10
-80
0 0.5 1 1.5 2 2.5 3 3.5 4
Frequency normalized with bit rate: f/Rb [Hz/bits/sec]
Erik Strm, Updated December 2, 2003 Lecture 15 11 Erik Strm, Updated December 2, 2003 Lecture 15 12
ESS140 Digital Communications ESS140 Digital Communications
www.s2.chalmers.se/undergraduate/courses/ess140 www.s2.chalmers.se/undergraduate/courses/ess140
Erik Strm, Updated December 2, 2003 Lecture 15 13 Erik Strm, Updated December 2, 2003 Lecture 15 14