Problems Convolutional Codes PDF
Problems Convolutional Codes PDF
2. Consider the convolutional encoder shown in Figure 1. The message bits are shifted
into the encoder two bits at a time. Assume the initial content of the registers to be
zero and find the code block for the input message block 110101.
c1
c2
c3
Figure 1
1
Modulo-2
adder
Output
Input
Flip-flop
Figure 2
4. Figure 3 shows the encoder for a rate r = 1/2, constraint length K = 4 convolutional
code. Determine the encoder output produced by the message sequence 10111…
Modulo-2
adder
Input Output
Flip-flop
Figure 3
5. Construct the trellis diagram for the encoder of Figure 3, assuming a message
sequence of length 5. Trace the path through the trellis corresponding to the message
sequence 10111…. Compare the resulting encoder output with that found in Q. 4.
6. Construct the state diagram for the encoder of Figure 3. Starting with all-zero state,
trace the path that corresponds to the message sequence 10111…, and compare the
resulting code sequence with that determined in Q. 4.
2
Input Output
Modulo-2
adder
Flip-flop
Figure 4
3
State
00 00 00 00 00
00
11 11 11 11 11
01 11 11 11
00 00 00
01 01 01 01
10
10 10 10 10 10 10 10
11
01 01 01
Figure 5
4
Solution
1. (b) X n − k M ( X ) = X 10 M ( X ) = X 10 + X 12 + X 14
Divide X n− k M ( X ) by g(x), we have
X 4 +1
X 10 + X 8 + X 5 + X 4 + X 2 + X + 1 X 14 + X 12 + X 10
X 14 + X 12 + X 9 + X 8 + X 6 + X 5 + X 4
X 10 + X 9 + X 8 + X 6 + X 5 + X 4
X 10 + X 8 + X 5 + X 4 + X 2 + X + 1
X 9 + X 6 + X 2 + X +1
Therefore, B(X)=X9+X6+X2+X+1
As C ( X ) = B( X ) + X n− k M ( X ),
C ( X ) = X 14 + X 12 + X 10 + X 9 + X 6 + X 2 + X + 1
2. Assume the message bits are shifted into the encoder one bit at a time.
The impulse response of path 1 is g (1) ( D) = 1 + D .
The impulse response of path 2 is g ( 2 ) ( D) = 1 .
The impulse response of path 3 is g (3) ( D) = 1 + D + D 2
5
c ( 2 ) ( D) = g ( 2 ) ( D)m( D) = (1)(1 + D + D 3 + D 5 )
= 1 + D + D3 + D5
c ( 3) ( D) = g (3) ( D)m( D) = (1 + D + D 2 )(1 + D + D 3 + D 5 )
= 1 + D2 + D6 + D7
As two bits are shifted into the encoder at a time, only the terms with odd power are
needed. Therefore, we have
c (1) ( D) = D 3 + D 5 ⇒ 011
c ( 2 ) ( D) = D + D 3 + D 5 ⇒ 111
c ( 3) ( D) = D 7 ⇒ 0001
6
4.
7
5.
8
6.
9
7.
10
8.
11
9.
12