Module 5 Convolutional Codes Code Tree PPT
Module 5 Convolutional Codes Code Tree PPT
Manjunatha. P
manjup.jnnce@gmail.com
Professor
Dept. of ECE
Solution:
(n,k,m) n=number of output=2, k=number of input=1, and m = number of memory
registers=2
V1
Input
FF FF
V2
1(00)
Input Present State Next State Output
1(01)
0 00 00 00
1 00 10 11 0(00)
State a
00
0(11) State c
01
0 01 00 11
1 01 10 00
0(01)
0 10 01 10
1 10 11 01 1(10)
State d
11
0 11 01 01
1 11 11 10 Figure 2: State graph
1 00 10 11 10
c
0 01 00 11 01 01 01 01 01
1 01 10 00 01 01 01 01 01 01
0 10 01 10 d 10 10 10 10 10
1 10 11 01 Level J= 0 1 2 3 4 5 L-1 L L+1 L+2
0 11 01 01
1 11 11 10 Figure 3: Trellis graph
00
00 a
11
00 a
10
11 b
01
00 a
Binary description State 10 c
11
11 00
00 a b
01
01 d
01 c 10
00 a
00
10 b 11 a
11
10
11 d c
10
00 b
01
11 b
11
01 c
00
01
Table 4: State transition table
0
d
10 d
01
00
00 a
11
11 a
Input Present State Next State Output 1
11 b
10
01
0 00 00 00 10 c
11
10 c
1 00 10 11 00
00
b
0 01 00 11 01 d
01
10
1 01 10 00 11
b
00
11 a
0 10 01 10 01 c
11
10
1 10 11 01 00 b
01
01
0 11 01 01 d
01 c
11
00
1 11 11 10 10
d
01
10 d
10
Solution:
(n,k,m) n=number of output=3, k=number of input=1, and m = number of memory
registers=2
V (0)
Input U
SR SR V (1)
Output
V (2)
G(D) = [1 + D, 1 + D 2 , 1 + D + D 2 ]
S1
0(101)
1(010)
1(111)
Tuple State 1(100)
00 s0
0(011)
01 s2 0(000) S0 S2
10 s1
11 s3
0(110)
1(001) S3
Input Present State Next State Output 101 101 101 101 101
0 00 00 000 100 100
1 00 10 111 S2 S2 S2 S2 S2
0 01 00 011 011 011 011
011 011
1 01 10 100
111
111
111
111
111
0 10 01 101
S0 S0 S0 S0 S0 S0 S0 S0
1 10 11 010 000 000 000 000 000 000 000
0 11 01 110 0 1 2 3 4 5 6 7
Time units
1 11 11 001
g1 = [1 0 0] g2 = [1 0 1] g3 = [1 1 1]
a. Draw the encoder diagram and find the output using time domain for the input sequence (1 1 1 0 1).
b. Draw the state-transition diagram.
c. Draw the trellis diagram.
d. If the received sequence is r =(110, 110, 110, 111,010, 101, 101), using the Viterbi algorithm find the transmitted bit
sequence.
Solution:
a.
V (0)
111 001 011
Input U
111 001 011
V (1) G=
111 001 011
Output
111 001 011
V (2)
b.
V (0) Table 7: State table g1 = [1 0 0] g2 = [1 0 1] g3 = [1 1 1]
S1
0(101)
1(010)
1(111)
1(100)
1(001) S3
S1
0(101)
1(010)
0(110)
1(001) S3
b
100 100 100
001 001 001 001
c 011
110 110 110 110
010 010 010
d
101 101 101
Steady State
Figure
Manjunatha. P 10:
(JNNCE) Trellis diagram for rateModule
1/3 m=2 convolutional
5 Convolutional Codes code (3,1,2) November 13, 2024 12 / 13
Module 5 Convolutional Codes Convolutional Codes
Steady State
The path traced by the Viterbi is (111, 110, 010, 011, 000, 000, 000) and the
decoded sequence is (1 1 0 0 0 0 0)
Manjunatha. P (JNNCE) Module 5 Convolutional Codes November 13, 2024 13 / 13