






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Dr. Shurjeel Wyne delivered this lecture at COMSATS Institute of Information Technology, Attock for Digital Communication Systems course. In this he discussed: Channel, Coding, Linear, Block, Codes, Decoding, Hamming, Cyclic, Parity, Check, Matrix
Typology: Slides
1 / 12
This page cannot be seen from the preview
Don't miss anything!







1
2
3
The k rows of matrix G , are linearly independent code vectors from the set {U}, and can generate all the 2k^ code vectors in { U }.
...
U is (1 X n) codeword vector from the set of 2k^ possible codewords { U }
G is (k X n) generator matrix for the given linear block code
m is (1 x k) row vector of the k information bits
4
messagebits
1 2 paritybits
k
P is the parity array portion of the generator matrix, pij = (0 or 1)
7
Decoding of Linear block codes– cont’d
S is called syndrome of r , corresponding to the error pattern e.
Format Channelencoding Modulation
Channel Format (^) decoding Demodulation Detection
Data source
Data sink
U
r
m
m ˆ
channel
( , ,...., )errorpattern or vector
( , ,...., )receivedcodewordor vector
1 2
1 2
n
n e e e
r r r
e
r
r U e
U is one of 2 k^ n-tuples, but error pattern e (caused by noise) can force r to become one of 2 n^ n-tuples
Syndrome test performed on corrupted code vector r or on error pattern e that caused it, gives same syndrome S
8
Decoding of Linear block codes – cont’d
i 2 , 3 ,..., 2 n ^ k
Standard array (an array of 2n^ possible received vectors)
V n
zero codeword
coset
coset leaders (correctable error patterns)
The standard array has 2k^ columns and 2(n-k)^ rows Each entry in the standard array is an n-tuple
9
If error is corrected.
If undetectable decoding error occurs.
T S rH e ˆ e i U ˆ^ r e ˆ m ˆ
e ˆ e
e ˆ e
10
010001 100101 010110
100000 010100
010000 100100
001000 111100
000100 110011 011100 101010 101101 011010 110111 000110
000010 110111 011000 101100 101011 011111 110001 000101
000001 110101 011011 101111 101000 011100 110010 000110
000000 110100 011010 101110 101001 011101 110011 000111
Coset leaders
coset
codewords
(Correctable error patterns)
13
33
T
14
Cyclic codes are a subclass of linear block
codes.
Encoding and syndrome calculation are easily
performed using feedback shift-registers.
Hence, relatively long block codes can be
implemented with a reasonable complexity.
BCH and Reed-Solomon codes are well-known
examples of cyclic codes.
15
Example:
1 1 0 1 2 1
()
0 1 2 1
n i n i n n i
i
n
“ i ” cyclic shifts of U
U U U U U
U
( 1110 ) ( 0111 ) ( 1011 ) ( 1101 )
( 1101 ) ( 1 ) ( 2 ) ( 3 ) ( 4 )
16
Algebraic structure of Cyclic codes, allows expressing the n-
vector codewords as polynomials of degree (n-1) or less
Relationship between a codeword and its cyclic shifts:
Hence:
1 1
2
n n
U (^ i^ )( X ) Xi U ( X )modulo( Xn 1 )
By extension
U (^1 )( X ) X U ( X )modulo( Xn 1 )
( ) ( 1 )
...
( ) ...,
1
( 1 )
1 1
1 2
2 1 0 1
1
1 2
2 0 1
n n
n
n n
n n n
n n
n n
X u X
u uX uX u X u X u
X X uX uX u X u X
U
U
See Example 6.7 in book
19
nk
n k
20
generator polynomial
g ( X ) 1 X X^3
( 1001011 )
( ) ( ) ( ) 1
Formthecodewordpolynomial:
( 1 )( 1 ) 1
Divide ( )by ( :
( ) ( ) ( 1 )
( 1011 ) ( ) 1
7 , 4 , 3
paritybitsmessage bits
3 3 5 6
generator remainder()
3 quotient
3 5 6 2 3
3 3 2 3 3 5 6
2 3
U
U p m
m g
m m
m m
q g p
X X X X X X X
X X X X X X X X
X X X)
X X X X X X X X X X
X X X
n k n k
(X) (X) X
nk
nk
Parity bits Message bits
21
0 0 0 1 1 0 1
0 0 1 1 0 1 0
0 1 1 0 1 0 0
1 1 0 1 0 0 0
( ) 1 1 0 2 1 3 ( 0 , 1 , 2 , 3 ) ( 1101 )
G
g X X X X g g g g
Not in systematic form. We do the following:
row(1) row(2) row(4) row(4)
row(1) row(3) row(3)
1 0 1 0 0 0 1
1 1 1 0 0 1 0
0 1 1 0 1 0 0
1 1 0 1 0 0 0
G
0 0 1 0 1 1 1
0 1 0 1 1 1 0
1 0 0 1 0 1 1 H
I 4 (^) 4
I (^) 3 (^3) P T P
22
Received codeword in polynomial form is given by
The syndrome is the reminder obtained by dividing the received polynomial by the generator polynomial.
With syndrome and Standard array, error is estimated.
In Cyclic codes, the size of standard array is considerably reduced.
Received r^ (^ X^ ) U ( X ) e ( X^ ) codeword
Error pattern
r ( X ) q ( X ) g ( X ) S ( X ) Syndrome