Professional Documents
Culture Documents
Ece141 Lec14 Convolutional Codes
Ece141 Lec14 Convolutional Codes
Convolutional Codes
Tree,Trellis, and State Diagrams,Transfer Function of a Convolutional Code, Decoding
Convolutional Codes,Viterbi Algorithm
𝑏 𝑧 −1 𝑧 −1
3
𝑐
❑ The memory of this example is 𝑚 = 2 which is the
maximum amount of shift registers for a single bit input.
❑ A convolutional code 𝒄 = 𝑐 1 𝑐 2 𝑐 3 𝑇 is formed from
the three outputs by multiplexing them.
2
𝑐
𝑏 2 𝑧 −1 𝑐 3
𝑏 (1) 𝑧 −1 𝑧 −1
3
𝑐
𝑏 (1) 𝑧 −1 𝑧 −1
3
𝑐
2
𝑐
𝑏 2 𝑧 −1 𝑐 3
𝑏 (1) 𝑧 −1 𝑧 −1
3
𝑐
1 1 2 1 1 3 1 1 1
𝑐𝑛 = 𝑏𝑛 𝑐𝑛 = 𝑏𝑛 + 𝑏𝑛−1 𝑐𝑛 = 𝑏𝑛 + 𝑏𝑛−1 + 𝑏𝑛−2
0/000 00 10
0/011
0/001 1/100
1/110
01 11 1/101
0/010
01
10
11
1/101 1/101 1/101 1/101 1/101 1/101
0 𝑇 2𝑇 3𝑇 4𝑇 5𝑇 6𝑇 7𝑇
❑ The diagram shows two terminal states at 00 and 11.
❑ After two transitions, the trellis enters steady-state.
0/000 00 10
1
𝑐
2
𝑐
0/011
0/001 1/100
1/110
𝑏 (1) 𝑧 −1 𝑧 −1
01 11 1/101
3 0/010
𝑐
01
10
11
0/000 00 10
0/011
0/001 1/100
1/110
01 11 1/101
0/010
ECE 141: DIGITAL COMMUNICATION I 18
Example
❑ The modified state diagram is:
1/101 𝑋 2 𝑌𝑍
𝑋𝑌𝑍 𝑋𝑍
11
1/100 0/010
𝑊3
1/111 0/001
0/011 𝑋 2𝑍
00 10 01 00
𝑋 3 𝑌𝑍 𝑋𝑍
𝑊2 𝑋 2 𝑌𝑍 1/110
𝑊𝐼 𝑊1 𝑊𝐹
𝑋𝑌𝑍 𝑋𝑍
11
1/100 0/010
𝑊3
1/111 0/001
0/011 𝑋 2𝑍
00 10 01 00
3 𝑋𝑍
𝑋 𝑌𝑍
𝑊2 𝑋 2 𝑌𝑍 1/110
𝑊𝐼 𝑊1 𝑊𝐹
❑ At each state, the 𝑊 functions are:
𝑊1 = 𝑋 2 𝑍𝑊2 + 𝑋 2 𝑌𝑍𝑊3 𝑊2 = 𝑋 2 𝑌𝑍𝑊1 + 𝑋 3 𝑌𝑍𝑊𝐼
𝑊3 = 𝑋𝑌𝑍𝑊2 + 𝑋 2 𝑌𝑍𝑊3 𝑊𝐹 = 𝑋𝑍𝑊1
❑ Goal: solve for 𝑊𝐹 /𝑊𝐼 .
𝑑 = 𝑑 𝒄 𝒊 ,𝒓 𝒊
= 𝒄 𝒊
+𝒓 𝒊
𝑖=0 𝑖=0
❑ Note: the operation inside the parenthesis is modulo-2
addition and the summation is a normal summation.
❑ The codeword selected should minimize the distance – must
compare 2𝐿 possible codeword sequences.
❑ REMARK: 2𝐿 is a lot of codewords.
100
2 5
19 6
𝐼 𝐹
3 6
5
100
2
𝐼
100
2 𝒅 = 𝟏𝟏𝟗 5
19
1 𝐼
3
100
2
𝐼
3 𝒅 = 𝟏𝟏𝟓 6
5
100
2 𝑑 = 119 5
19 6
𝐼 𝑑 = 125
𝐹
3 𝑑 = 115 6
5
0/000 00 10
0/011
0/001 1/100
1/110
01 11 1/101
0/010
01 1 4 6 5 6 7
6 6 7 2 7
1 3 6 2 5 6 7
4 5
10 7 6 5
4 6 5 2 7 8
11 5 7 6 5 6
1/101
01 1
2 7
1 2 7
10
11 5 6
1/101
0/000 00 10
0/011
0/001 1/100
1/110
01 11 1/101
0/010
01 4 5 7 6 4 8
3 3 6 4 7
1 4 5 5 8 6 8
7 3
10 4 8 6
1 6 6 3 7 7
11 2 4 5 5 5
1/101
01
3 4 7
1
3
10 6
1 3
11 5 5
1/101