ELEC8630 Lect20 Coding
ELEC8630 Lect20 Coding
Coding
Channel Coding
• Communication through noisy channels is
subject to errors.
• In order to decrease the effect of error and
achieve reliable communication some
redundancy has to be introduced
transmission of extra bits & reduction in
trans. rate.
Channel Coding
Data Code
Encoding
k K<n n
bits
Convolutional
Encoder 1 2 3 n
Encoded Sequence
To Modulator
• In convolutional codes, each block of k bits is
mapped into a block of n bits to be transmitted
over the channel, but these n bits are not only
determined by the present k information bits,
but also by the previous information bits.
• This dependence on the previous information
bits causes the encoder to be a finite-state-
machine.
• Code rate is Rc = k/n.
•A way to describe the convolutional code is to
specify set of n vctors, one vector for each of the
modulo-2 adders.
•Each vector has kK dimensions and contains the
connections of the encoder to that modulo-2 adder.
•A 1 in the ith position of the vector indicates that
the corresponding stage is connected to the modulo-
2 adder, and a 0 in a given position indicates that no
connection exists between that stage and the
modulo-2 adder.
u1 u1
u1 u 2 u1 u 2
t3 1 0 1 0 0
t4 0 1 0 1 0
u2 u2
A Rate ½ Convolutional encoder
• Vector representation:
– We define n binary vector with K elements (one vector
for each modulo-2 adder). The i:th element in each
vector, is “1” if the i:th stage in the shift register is
connected to the corresponding modulo-2 adder, and
“0” otherwise.
• Example:
u1
g1 (111) m u1 u 2
g 2 (101) u2
Example: Consider the rate 2/3 convolutional encoder.
2 bits at a time are shifted
into it and 3 output bits are
generated.
The generators are:
g1= [1011], g2= [1101],
g3= [1010].
• There are 3 ways to describe a convolutional code:
- Tree Diagram.
- Trellis Diagram.
- State Diagram.
Tree Diagram
001
110
K = 3, k = 1, n = 3 011
convolutional encoder. 100
Repeats
itself
after the
010
Kth stage.
101
000
111
001
110
011
100
010
The generators are: 101
g1= [100], g2= [101], Tree diagram for rate 1/3,
g3= [111]. K = 3 convolutional code.
Trellis Diagram
Obtain the
Trellis Diagram
Trellis diagram for rate
1/3, black line: the o/p generated by the i/p bit 0
K = 3 convolutional code. red line: the o/p generated by the i/p bit 1
State Diagram