Professional Documents
Culture Documents
L CODES
Dr. Y. LEHWIJI EC 627 Presented BY:
- RIMA HASSAN
CODING THEORY
- KHAWLA ASHERIF
- RABIA GETH
contents
• Introduction to convolutional codes
• Convolutional encoder
• Convolutional codes representation and explanation with examples
– Generator Representation
– State Diagram Representation
– Tree Diagram Representation
– Trellis Diagram Representation
• Decoding of convolutional codes
– Sequential decoding
– Viterbi algorithm
– Soft decision coding.
• Convolutional codes vs. Block codes
• Advantages of convolutional codes
• Practical examples of convolutional codes
FORWARD ERROR CORRECTION
CODE
• There are four important forward error correction codes
that find applications in digital transmission. They are:
Block Parity
Hamming Code
Interleaved Code
Convolutional Codes
Introduction to convolutional codes
Fig(a):Convolutional Encoder
1010
10
101 11 00 01 00
0 1 0 0
v2
0
1
• Generator Representation:
• Generator representation shows the hardware connection of the shift register
taps to the modulo-2 adders. A generator vector represents the position of the
taps for an output. A “1” represents a connection and a “0” represents no
connection.
• A convolutional code may be defined by a set of n generating polynomials for
each input bit.
• For the circuit under consideration:
– g1(X) = 1 + X2 . [101]
– g2(X) = 1 + X + X2 , [111]
• The set {gi(X)} defines the code completely. The length of the shift register is
equal to the highest-degree generator polynomial.
Example
ENCODER REPRESENTATIONS (cont’d)
Input
u S1 S2
v
2
Input
u S1 S2 S3
v2
EXAMPLE: STATE DIAGRAM REPRESENTATION
ENCODER REPRESENTATIONS
(cont’d)
Tree Diagram Representation:
The tree diagram representation shows all possible information and encoded
sequences for the convolutional encoder.
In the tree diagram, a solid line represents input information bit 0 and a dashed line
represents input information bit 1.
The corresponding output encoded bits are shown on the branches of the tree.
An input information sequence defines a specific path through the tree diagram from
left to right.
ENCODER REPRESENTATIONS
(cont’d)
• Example: Tree Diagram representation of convolutional codes
ENCODER REPRESENTATIONS
TRELLIS DIAGRAM REPRESENTATION:
.
DECODING OF CONVOLUTIONAL CODES
From point 1 all choices encountered meet perfectly with the codeword choices and the
decoder successfully decodes the message as 1011000
DECODING OF CONVOLUTIONAL
CODES
• M.L.H DECODING (VITERBI ALGORITHM):
• The Viterbi algorithm is named after Andrew Viterbi, who proposed it in 1967 as a
decoding algorithm for convolutional codes over noisy digital communication links.
• The Viterbi decoding is the best known implementation of the Maximum Likely-hood
decoding.
• Viterbi algorithm is the optimum decoder, when the input sequence messages are
equally likely.
• It finds a path through trellis with the largest metric (maximum correlation or
minimum distance).
• Viterbi algorithm reduces the complexity of this search by finding the optimal path
one stage at a time.
• The complexity of the Viterbi algorithm is proportional to the number of states.
THE BASIC IDEA OF VITERBI ALGORITHM
Hard Soft
Decision Decision