SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
TELE4653 Digital Modulation & Coding
     Convolutional Codes


                 Wei Zhang
            w.zhang@unsw.edu.au

            School of EET, UNSW
Last time, we talked about:
   Channel coding

   Linear block codes
       The error detection and correction capability
       Encoding and decoding
       Hamming codes




2010-May-17          TELE4653 - Convolutional Codes   2
Today, we are going to talk about:

   Another class of linear codes, known as
    Convolutional codes.

   Part I – Encoder

   Part II -- Decoding



2010-May-17     TELE4653 - Convolutional Codes   3
PART I -- Encoder

   We’ll study the structure of the encoder.

   We’ll study different ways for representing
    the encoder.

   We’ll study in particular, state diagram and
    trellis representation of the code.



2010-May-17     TELE4653 - Convolutional Codes   4
Convolutional codes

    Convolutional codes offer an approach to
     error control coding substantially different
     from that of block codes.
       A convolutional encoder:

            encodes  the entire data stream, into a single
             codeword.
            does not need to segment the data stream
             into blocks of fixed size.
            is a machine with memory.



    2010-May-17        TELE4653 - Convolutional Codes   5
Convolutional codes-cont’d
   A Convolutional code is specified by
    three parameters (n, k , K ) or (k / n, K )
    where
        Rc  k / n is the coding rate, determining the
        number of data bits per coded bit.
             In practice, usually k=1 is chosen.
       K is the constraint length of the encoder
        and the encoder has K-1 memory elements.




2010-May-17             TELE4653 - Convolutional Codes   6
A Rate ½ Convolutional encoder
   Convolutional encoder (rate ½, K=3)
       3 shift-registers where the first one takes the
        incoming data bit and the rest, form the memory
        of the encoder.


                                                u1     First coded bit
                                                                (Branch word)
    Input data bits                                             Output coded bits
        m                                                                u1 ,u2
                                                u2     Second coded bit




2010-May-17           TELE4653 - Convolutional Codes                                7
A Rate ½ Convolutional encoder
  Message sequence:        m  (101)
Time                          Output          Time                            Output
                            (Branch word)                                 (Branch word)
                      u1                                             u1
                                u1 u 2                                         u1 u 2
 t1       1 0 0                                t2            0 1 0
                                 1 1                                            1 0
                      u2                                             u2




                      u1                                             u1
                                u1 u 2                                          u1 u 2
 t3       1 0 1                                 t4           0 1 0
                                 0 0                                             1 0
                      u2                                             u2




 2010-May-17                TELE4653 - Convolutional Codes                          8
A Rate ½ Convolutional encoder


Time                          Output       Time                          Output
                           (Branch word)                             (Branch word)
                      u1                                        u1
                                u1 u 2                                    u1 u 2
  t5          0 0 1                        t6           0 0 0
                                 1 1                                      0 0
                      u2                                        u2




       m  (101)           Encoder              U  (11 10 00 10 11)



2010-May-17            TELE4653 - Convolutional Codes                        9
Effective code rate
   Initialize the memory before encoding the first bit (all-
    zero)
   Clear out the memory after encoding the last bit (all-
    zero)
       Hence, a tail of zero-bits is appended to data bits.

      data     tail           Encoder                     codeword



   Effective code rate :
       L is the number of data bits and k=1 is assumed:
                           L              1
              Reff                 Rc 
                     n( L  K  1)        n
2010-May-17              TELE4653 - Convolutional Codes              10
Encoder representation
   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




2010-May-17                 TELE4653 - Convolutional Codes                 11
State diagram
 A finite-state machine only encounters a
  finite number of states.
 State of a machine: the smallest amount
  of information that, together with a
  current input to the machine, can predict
  the output of the machine.
 In a Convolutional encoder, the state is
  represented by the content of the
  memory.
 Hence, there are 2        states.
                       K 1




2010-May-17   TELE4653 - Convolutional Codes   12
State diagram – cont’d
 A state diagram is a way to represent
  the encoder.
 A state diagram contains all the states
  and all possible transitions between
  them.
 Only two transitions initiating from a
  state
 Only two transitions ending up in a state



2010-May-17       TELE4653 - Convolutional Codes   13
State diagram – cont’d

                                                Current   input   Next    output
              0/00                 Output        state            state
                                (Branch word)
               S0
                     Input
                                                 S0        0      S0      00
   1/11        00            0 / 11
                                                 00        1      S2      11
              1/00                               S1        0      S0      11
  S2                           S1
  10                           01                01        1      S2      00
              0/10
                                                 S2        0      S1      10
   1/01       S3              0/01               10        1      S3      01
                                                           0              01
               11
                                                 S3               S1
              1/10                               11        1      S3      10
2010-May-17            TELE4653 - Convolutional Codes                              14
Trellis – cont’d
   Trellis diagram is an extension of the state
    diagram that shows the passage of time.
       Example of a section of trellis for the rate ½ code
              State
         S 0  00                0/00
                                 1/11
         S 2  10                   0/11
                                           1/00

         S1  01                    1/01
                                            0/10

                               0/01 1/10
         S3  11
                         ti                        ti 1   Time


2010-May-17            TELE4653 - Convolutional Codes             15
Trellis –cont’d
        A trellis diagram for the example code.
                                                     Input bits                           Tail bits
            1                    0                         1                     0                       0
                                                      Output bits
           11                    10                       00                    10                       11
           0/00                 0/00                     0/00                  0/00                    0/00
          1/11                 1/11                    1/11                   1/11                    1/11
           0/11                 0/11                     0/11                  0/11                    0/11
               1/00                 1/00                     1/00                  1/00                    1/00
                   0/10                0/10                       0/10                0/10                     0/10
           1/01                 1/01                     1/01                  1/01                    1/01
         0/01                 0/01                    0/01                   0/01                    0/01
            1/10                 1/10                    1/10                   1/10                     1/10
t1                    t   2                  t   3                   t   4
                                                                                             t   5                t   6



     2010-May-17                      TELE4653 - Convolutional Codes                                      16
Trellis – cont’d

                                                 Input bits                                Tail bits
           1                 0                         1                        0                       0
                                                  Output bits
           11               10                        00                    10                          11
          0/00              0/00                     0/00                  0/00                        0/00
         1/11              1/11                    1/11
                                                                                                    0/11
                                                     0/11                  0/11
                            0/10                         1/00
                                                                                    0/10
                                                              0/10
                            1/01                     1/01
                                                  0/01                   0/01
                                                     1/10
t1                 t   2                 t   3                   t   4
                                                                                            t   5               t   6




     2010-May-17                  TELE4653 - Convolutional Codes                                           17
PART II -- Decoding

   How the decoding is performed for
    Convolutional codes?

   What is a Maximum likelihood decoder?

   How does the Viterbi algorithm work?



2010-May-17      TELE4653 - Convolutional Codes   18
Block diagram of the DCS


Information                    Rate 1/n
                                                                           Modulator
   source                    Conv. encoder
       m  (m1 , m2 ,..., mi ,...)                 U  G(m)
                        
                                                      (U1 , U 2 , U 3 ,..., U i ,...)




                                                                                         Channel
                 Input sequence
                                                                          
                                                               Codeword sequence

                                                  U i  u1i ,...,u ji ,...,u ni
                                                                     
                                                          Branch word ( n coded bits)

Information                    Rate 1/n
                                                                         Demodulator
    sink                     Conv. decoder
       m  (m1 , m2 ,..., mi ,...)
       ˆ    ˆ ˆ           ˆ                 Z  ( Z1 , Z 2 , Z 3 ,..., Z i ,...)
                                                                    
                                                             received sequence

                                     Zi            z1i ,...,z ji ,...,zni
                                                     
                            Demodulator outputs      n outputs per Branch word
                            for Branch word i
2010-May-17                       TELE4653 - Convolutional Codes                           19
Optimum decoding
   If the input sequence messages are equally likely, the
    optimum decoder which minimizes the probability of
    error is the Maximum Likelihood (ML) decoder.

   ML decoder, selects a codeword among all the
    possible codewords which maximizes the likelihood
    function p (Z | U (m) ) where Z is the received
    sequence and U (m) is one of the possible codewords:
                                                                   2 L codewords
                                                                    to search!!!
    ML decoding rule:
    Choose U ( m) if p (Z | U ( m) )  max(m) p (Z | U ( m ) )
                                          over all U




2010-May-17                 TELE4653 - Convolutional Codes                  20
The Viterbi algorithm
       The Viterbi algorithm performs Maximum Likelihood
        decoding.
       It finds a path through trellis with the largest
        metric (maximum correlation or minimum
        distance).
         It processes the demodulator outputs in an iterative
          manner.
         At each step in the trellis, it compares the metric of all
          paths entering each state, and keeps only the path with
          the largest metric, called the survivor, together with its
          metric.
         It proceeds in the trellis by eliminating the least likely
          paths.
       It reduces the decoding complexity to L 2 K 1 !

2010-May-17             TELE4653 - Convolutional Codes                 21
The Viterbi algorithm - cont’d


 Viterbi algorithm:
A.       Do the following set up:
          For a data block of L bits, form the trellis. The trellis
           has L+K-1 sections or levels and starts at time t1 and
           ends up at time t L  K .
          Label all the branches in the trellis with their
           corresponding branch metric.
          For each state in the trellis at the time ti which is
           denoted by S (ti )  {0,1,...,2 K 1} , define a parameter S (ti ), ti 
B.       Then, do the following:



 2010-May-17                 TELE4653 - Convolutional Codes                      22
The Viterbi algorithm - cont’d
    1. Set (0, t1 )  0 and i  2.
    2. At time ti , compute the partial path metrics for
       all the paths entering each state.
    3. Set S (ti ), ti  equal to the best partial path metric
       entering each state at time ti .
       Keep the survivor path and delete the dead paths
       from the trellis.
    4. If i  L  K , increase i by 1 and return to step 2.
C. Start at state zero at time t L  K . Follow the
   surviving branches backwards through the
   trellis. The path thus defined is unique and
   correspond to the ML codeword.


2010-May-17          TELE4653 - Convolutional Codes          23
Example of Viterbi decoding

   m  (101) Source message
   U  (11 10 00 10 11) Codeword to be transmitted
   Z  (11 10 11 10 01) Received codeword

              0/00         0/00           0/00              0/00        0/00
         1/11             1/11          1/11
                                          0/11              0/11        0/11
                           0/10              1/00
                                             0/10           0/10
                           1/01           1/01
                                       0/01                 0/01
                                          1/10
   t1                t2           t3              t4               t5          t6
2010-May-17                TELE4653 - Convolutional Codes                      24
Example of Viterbi decoding-cont’d
   Label all the branches with the branch metric
    (Hamming distance)

                                                                     S (ti ), ti 

    0         2            1                2               1              1
         0             1                0
                                            0               1             1
                                                 2
                               0                1           0
                                            1
                               2                            2
                                        1
                                                1
    t1            t2               t3                t4         t5                     t6
2010-May-17                TELE4653 - Convolutional Codes                              25
Example of Viterbi decoding-cont’d
   i=2




    0         2   2
                           1                2               1            1
          0            1                0
                  0
                                            0               1            1
                                                 2
                               0                1               0
                                            1
                               2                            2
                                        1
                                                1
    t1            t2               t3                t4             t5       t6
2010-May-17                TELE4653 - Convolutional Codes                    26
Example of Viterbi decoding-cont’d
   i=3




    0         2   2
                           1       3
                                               2             1            1
          0            1                   0
                  0                3
                                               0             1            1
                                                    2
                               0                   1             0
                                   0
                                               1
                               2                             2
                                       2   1
                                                   1
    t1            t2               t3                   t4           t5       t6
2010-May-17                TELE4653 - Convolutional Codes                     27
Example of Viterbi decoding-cont’d
   i=4




    0         2   2
                           1       3
                                                   2           0
                                                                    1            1
          0            1                       0
                  0                3                           2
                                                   0                1            1
                                           1               2
                               0                                        0
                                   0                           3
                                                   1
                               2                                    2
                                       2       1                3
                                                       1
    t1            t2               t3                          t4           t5       t6
2010-May-17                TELE4653 - Convolutional Codes                            28
Example of Viterbi decoding-cont’d
   i=5




    0         2   2
                           1       3
                                                   2           0
                                                                    1     1
                                                                               1
          0            1                       0
                  0                3                           2
                                                   0                1          1
                                           1               2
                               0                                        0 2
                                   0                           3
                                                   1
                               2                                    2
                                       2       1                3
                                                       1
    t1            t2               t3                          t4         t5       t6
2010-May-17                TELE4653 - Convolutional Codes                          29
Example of Viterbi decoding-cont’d
   i=6




    0         2   2
                           1       3
                                                   2           0
                                                                    1     1
                                                                               1   2

          0            1                       0
                  0                3                           2
                                                   0                1          1
                                           1               2
                               0                                        0 2
                                   0                           3
                                                   1
                               2                                    2
                                       2       1                3
                                                       1
    t1            t2               t3                          t4         t5       t6
2010-May-17                TELE4653 - Convolutional Codes                          30
Example of Viterbi decoding-cont’d
   Trace back and then:
    m  (100)
    ˆ
    U  (11 10 11 00 00) There are some decoding errors.
    ˆ

     0        2   2
                           1       3
                                                   2           0
                                                                    1     1
                                                                               1   2

          0            1                       0
                  0                3                           2
                                                   0                1          1
                                           1               2
                               0                                        0 2
                                   0                           3
                                                   1
                               2                                    2
                                       2       1                3
                                                       1
     t1           t2               t3                          t4         t5       t6
2010-May-17                TELE4653 - Convolutional Codes                          31

Weitere ähnliche Inhalte

Was ist angesagt?

7 convolutional codes
7 convolutional codes7 convolutional codes
7 convolutional codesVarun Raj
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bankmiraclebabu
 
Convolution codes and turbo codes
Convolution codes and turbo codesConvolution codes and turbo codes
Convolution codes and turbo codesManish Srivastava
 
Reed Soloman and convolution codes
Reed Soloman and convolution codesReed Soloman and convolution codes
Reed Soloman and convolution codesShailesh Tanwar
 
Bit interleaved coded modulation
Bit interleaved coded modulationBit interleaved coded modulation
Bit interleaved coded modulationMridula Sharma
 
Linear block coding
Linear block codingLinear block coding
Linear block codingjknm
 
Error control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codesError control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codesIAEME Publication
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block CodesNilaNila16
 
Reed_Solomon_Implementation
Reed_Solomon_ImplementationReed_Solomon_Implementation
Reed_Solomon_Implementationramya c b
 
Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...
Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...
Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...Projectsatbangalore
 

Was ist angesagt? (20)

7 convolutional codes
7 convolutional codes7 convolutional codes
7 convolutional codes
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bank
 
Coding
CodingCoding
Coding
 
BCH Codes
BCH CodesBCH Codes
BCH Codes
 
Chapter 03 cyclic codes
Chapter 03   cyclic codesChapter 03   cyclic codes
Chapter 03 cyclic codes
 
Linear block code
Linear block codeLinear block code
Linear block code
 
Convolution codes and turbo codes
Convolution codes and turbo codesConvolution codes and turbo codes
Convolution codes and turbo codes
 
Error Control coding
Error Control codingError Control coding
Error Control coding
 
Convolution Codes
Convolution CodesConvolution Codes
Convolution Codes
 
Overview of Convolutional Codes
Overview of Convolutional CodesOverview of Convolutional Codes
Overview of Convolutional Codes
 
Reed Soloman and convolution codes
Reed Soloman and convolution codesReed Soloman and convolution codes
Reed Soloman and convolution codes
 
Bit interleaved coded modulation
Bit interleaved coded modulationBit interleaved coded modulation
Bit interleaved coded modulation
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
 
Turbo Codes
Turbo CodesTurbo Codes
Turbo Codes
 
Error control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codesError control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codes
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block Codes
 
Channel coding
Channel coding  Channel coding
Channel coding
 
Logic Fe Tcom
Logic Fe TcomLogic Fe Tcom
Logic Fe Tcom
 
Reed_Solomon_Implementation
Reed_Solomon_ImplementationReed_Solomon_Implementation
Reed_Solomon_Implementation
 
Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...
Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...
Bit Error Rate Analysis of Coded OFDM for Digital Audio Broadcasting System, ...
 

Andere mochten auch

Chapter8 emc
Chapter8 emcChapter8 emc
Chapter8 emcVin Voro
 
Leermiddelen
LeermiddelenLeermiddelen
Leermiddelenwimdboer
 
Chapter2 framework-for-design
Chapter2 framework-for-designChapter2 framework-for-design
Chapter2 framework-for-designVin Voro
 
Chapter14 quality
Chapter14 qualityChapter14 quality
Chapter14 qualityVin Voro
 
Ponencia Desarrollo Territorial Barahona
Ponencia Desarrollo Territorial BarahonaPonencia Desarrollo Territorial Barahona
Ponencia Desarrollo Territorial BarahonaAlain Jordà
 
Edicion 103 Reporte Energia
Edicion 103 Reporte EnergiaEdicion 103 Reporte Energia
Edicion 103 Reporte EnergiaReporte Energía
 
TEC CONTAINER - DELIVERED 2013 - 2016
TEC CONTAINER - DELIVERED 2013 - 2016TEC CONTAINER - DELIVERED 2013 - 2016
TEC CONTAINER - DELIVERED 2013 - 2016teccontainer
 
Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016Alain Jordà
 
Slide bio4206
Slide bio4206Slide bio4206
Slide bio4206dparkin
 
CARTA FESTES MARROCS 2015
CARTA FESTES MARROCS 2015CARTA FESTES MARROCS 2015
CARTA FESTES MARROCS 2015Josep Miquel
 
Kamaroninfo núm. 22 febrer 1998
Kamaroninfo núm. 22 febrer 1998Kamaroninfo núm. 22 febrer 1998
Kamaroninfo núm. 22 febrer 1998Josep Miquel
 
referenties C2- The Communication Square Website
referenties C2- The Communication Square Websitereferenties C2- The Communication Square Website
referenties C2- The Communication Square WebsiteValerie Leeman
 
ч.саранцацрал цахим тест
ч.саранцацрал цахим тестч.саранцацрал цахим тест
ч.саранцацрал цахим тестtsatsraletka
 
library class power point
library class power pointlibrary class power point
library class power pointdparkin
 
Aztecs empire
Aztecs empireAztecs empire
Aztecs empiregoooooood
 
コドモノガタリ イクメン調査120328
コドモノガタリ イクメン調査120328コドモノガタリ イクメン調査120328
コドモノガタリ イクメン調査120328Takaho Maeda
 
Oral presentation
Oral presentationOral presentation
Oral presentationVin Voro
 

Andere mochten auch (20)

Chapter8 emc
Chapter8 emcChapter8 emc
Chapter8 emc
 
B2B Part II
B2B Part IIB2B Part II
B2B Part II
 
Leermiddelen
LeermiddelenLeermiddelen
Leermiddelen
 
Chapter2 framework-for-design
Chapter2 framework-for-designChapter2 framework-for-design
Chapter2 framework-for-design
 
Chapter14 quality
Chapter14 qualityChapter14 quality
Chapter14 quality
 
Ponencia Desarrollo Territorial Barahona
Ponencia Desarrollo Territorial BarahonaPonencia Desarrollo Territorial Barahona
Ponencia Desarrollo Territorial Barahona
 
Edicion 103 Reporte Energia
Edicion 103 Reporte EnergiaEdicion 103 Reporte Energia
Edicion 103 Reporte Energia
 
TEC CONTAINER - DELIVERED 2013 - 2016
TEC CONTAINER - DELIVERED 2013 - 2016TEC CONTAINER - DELIVERED 2013 - 2016
TEC CONTAINER - DELIVERED 2013 - 2016
 
Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016Ponencia smagua zaragoza marzo 2016
Ponencia smagua zaragoza marzo 2016
 
Slide bio4206
Slide bio4206Slide bio4206
Slide bio4206
 
CARTA FESTES MARROCS 2015
CARTA FESTES MARROCS 2015CARTA FESTES MARROCS 2015
CARTA FESTES MARROCS 2015
 
Kamaroninfo núm. 22 febrer 1998
Kamaroninfo núm. 22 febrer 1998Kamaroninfo núm. 22 febrer 1998
Kamaroninfo núm. 22 febrer 1998
 
Waterfall video
Waterfall videoWaterfall video
Waterfall video
 
referenties C2- The Communication Square Website
referenties C2- The Communication Square Websitereferenties C2- The Communication Square Website
referenties C2- The Communication Square Website
 
солонго
солонгосолонго
солонго
 
ч.саранцацрал цахим тест
ч.саранцацрал цахим тестч.саранцацрал цахим тест
ч.саранцацрал цахим тест
 
library class power point
library class power pointlibrary class power point
library class power point
 
Aztecs empire
Aztecs empireAztecs empire
Aztecs empire
 
コドモノガタリ イクメン調査120328
コドモノガタリ イクメン調査120328コドモノガタリ イクメン調査120328
コドモノガタリ イクメン調査120328
 
Oral presentation
Oral presentationOral presentation
Oral presentation
 

Ähnlich wie Tele4653 l11

Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2WanNurdiana
 
Ee443 phase locked loop - presentation - schwappach and brandy
Ee443   phase locked loop - presentation - schwappach and brandyEe443   phase locked loop - presentation - schwappach and brandy
Ee443 phase locked loop - presentation - schwappach and brandyLoren Schwappach
 
Text compression in LZW and Flate
Text compression in LZW and FlateText compression in LZW and Flate
Text compression in LZW and FlateSubeer Rangra
 
Digital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptDigital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptMohamadHalimAbdWahid
 
Introduction to communication system lecture5
Introduction to communication system lecture5Introduction to communication system lecture5
Introduction to communication system lecture5Jumaan Ally Mohamed
 
Speech waves in tube and filters
Speech waves in tube and filtersSpeech waves in tube and filters
Speech waves in tube and filtersNikolay Karpov
 
RF Circuit Design - [Ch3-1] Microwave Network
RF Circuit Design - [Ch3-1] Microwave NetworkRF Circuit Design - [Ch3-1] Microwave Network
RF Circuit Design - [Ch3-1] Microwave NetworkSimen Li
 
Decoders
DecodersDecoders
DecodersRe Man
 
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdfBasic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdfAnkita Tiwari
 
digitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptxdigitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptxBijaySharma51
 
Hardware combinational
Hardware combinationalHardware combinational
Hardware combinationalDefri Tan
 
Digital electronics logic families
Digital electronics logic familiesDigital electronics logic families
Digital electronics logic familiesBLESSINAR0
 
All optical logic xor-xnor gate operation using microring and nanoring resona...
All optical logic xor-xnor gate operation using microring and nanoring resona...All optical logic xor-xnor gate operation using microring and nanoring resona...
All optical logic xor-xnor gate operation using microring and nanoring resona...University of Malaya (UM)
 
All-optical logic XOR/XNOR gate operation using microring and nanoring reson...
All-optical logic XOR/XNOR gate operation using microring and  nanoring reson...All-optical logic XOR/XNOR gate operation using microring and  nanoring reson...
All-optical logic XOR/XNOR gate operation using microring and nanoring reson...University of Malaya (UM)
 

Ähnlich wie Tele4653 l11 (20)

unit 5 (1).pptx
unit 5 (1).pptxunit 5 (1).pptx
unit 5 (1).pptx
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
www.ijerd.com
www.ijerd.comwww.ijerd.com
www.ijerd.com
 
Slides
SlidesSlides
Slides
 
Lect23 Engin112
Lect23 Engin112Lect23 Engin112
Lect23 Engin112
 
Lab1 verilog
Lab1 verilogLab1 verilog
Lab1 verilog
 
Ee443 phase locked loop - presentation - schwappach and brandy
Ee443   phase locked loop - presentation - schwappach and brandyEe443   phase locked loop - presentation - schwappach and brandy
Ee443 phase locked loop - presentation - schwappach and brandy
 
Text compression in LZW and Flate
Text compression in LZW and FlateText compression in LZW and Flate
Text compression in LZW and Flate
 
16%20 lecture
16%20 lecture16%20 lecture
16%20 lecture
 
Digital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptDigital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.ppt
 
Introduction to communication system lecture5
Introduction to communication system lecture5Introduction to communication system lecture5
Introduction to communication system lecture5
 
Speech waves in tube and filters
Speech waves in tube and filtersSpeech waves in tube and filters
Speech waves in tube and filters
 
RF Circuit Design - [Ch3-1] Microwave Network
RF Circuit Design - [Ch3-1] Microwave NetworkRF Circuit Design - [Ch3-1] Microwave Network
RF Circuit Design - [Ch3-1] Microwave Network
 
Decoders
DecodersDecoders
Decoders
 
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdfBasic_Digital_Circuits_Implementation_using_Virtuoso.pdf
Basic_Digital_Circuits_Implementation_using_Virtuoso.pdf
 
digitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptxdigitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptx
 
Hardware combinational
Hardware combinationalHardware combinational
Hardware combinational
 
Digital electronics logic families
Digital electronics logic familiesDigital electronics logic families
Digital electronics logic families
 
All optical logic xor-xnor gate operation using microring and nanoring resona...
All optical logic xor-xnor gate operation using microring and nanoring resona...All optical logic xor-xnor gate operation using microring and nanoring resona...
All optical logic xor-xnor gate operation using microring and nanoring resona...
 
All-optical logic XOR/XNOR gate operation using microring and nanoring reson...
All-optical logic XOR/XNOR gate operation using microring and  nanoring reson...All-optical logic XOR/XNOR gate operation using microring and  nanoring reson...
All-optical logic XOR/XNOR gate operation using microring and nanoring reson...
 

Mehr von Vin Voro

Tele3113 tut6
Tele3113 tut6Tele3113 tut6
Tele3113 tut6Vin Voro
 
Tele3113 tut5
Tele3113 tut5Tele3113 tut5
Tele3113 tut5Vin Voro
 
Tele3113 tut4
Tele3113 tut4Tele3113 tut4
Tele3113 tut4Vin Voro
 
Tele3113 tut1
Tele3113 tut1Tele3113 tut1
Tele3113 tut1Vin Voro
 
Tele3113 tut3
Tele3113 tut3Tele3113 tut3
Tele3113 tut3Vin Voro
 
Tele3113 tut2
Tele3113 tut2Tele3113 tut2
Tele3113 tut2Vin Voro
 
Tele3113 wk11tue
Tele3113 wk11tueTele3113 wk11tue
Tele3113 wk11tueVin Voro
 
Tele3113 wk10wed
Tele3113 wk10wedTele3113 wk10wed
Tele3113 wk10wedVin Voro
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tueVin Voro
 
Tele3113 wk11wed
Tele3113 wk11wedTele3113 wk11wed
Tele3113 wk11wedVin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wedVin Voro
 
Tele3113 wk9tue
Tele3113 wk9tueTele3113 wk9tue
Tele3113 wk9tueVin Voro
 
Tele3113 wk8wed
Tele3113 wk8wedTele3113 wk8wed
Tele3113 wk8wedVin Voro
 
Tele3113 wk9wed
Tele3113 wk9wedTele3113 wk9wed
Tele3113 wk9wedVin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wedVin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wedVin Voro
 
Tele3113 wk7tue
Tele3113 wk7tueTele3113 wk7tue
Tele3113 wk7tueVin Voro
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wedVin Voro
 
Tele3113 wk6tue
Tele3113 wk6tueTele3113 wk6tue
Tele3113 wk6tueVin Voro
 
Tele3113 wk5tue
Tele3113 wk5tueTele3113 wk5tue
Tele3113 wk5tueVin Voro
 

Mehr von Vin Voro (20)

Tele3113 tut6
Tele3113 tut6Tele3113 tut6
Tele3113 tut6
 
Tele3113 tut5
Tele3113 tut5Tele3113 tut5
Tele3113 tut5
 
Tele3113 tut4
Tele3113 tut4Tele3113 tut4
Tele3113 tut4
 
Tele3113 tut1
Tele3113 tut1Tele3113 tut1
Tele3113 tut1
 
Tele3113 tut3
Tele3113 tut3Tele3113 tut3
Tele3113 tut3
 
Tele3113 tut2
Tele3113 tut2Tele3113 tut2
Tele3113 tut2
 
Tele3113 wk11tue
Tele3113 wk11tueTele3113 wk11tue
Tele3113 wk11tue
 
Tele3113 wk10wed
Tele3113 wk10wedTele3113 wk10wed
Tele3113 wk10wed
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tue
 
Tele3113 wk11wed
Tele3113 wk11wedTele3113 wk11wed
Tele3113 wk11wed
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk9tue
Tele3113 wk9tueTele3113 wk9tue
Tele3113 wk9tue
 
Tele3113 wk8wed
Tele3113 wk8wedTele3113 wk8wed
Tele3113 wk8wed
 
Tele3113 wk9wed
Tele3113 wk9wedTele3113 wk9wed
Tele3113 wk9wed
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
 
Tele3113 wk7tue
Tele3113 wk7tueTele3113 wk7tue
Tele3113 wk7tue
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wed
 
Tele3113 wk6tue
Tele3113 wk6tueTele3113 wk6tue
Tele3113 wk6tue
 
Tele3113 wk5tue
Tele3113 wk5tueTele3113 wk5tue
Tele3113 wk5tue
 

Kürzlich hochgeladen

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 

Kürzlich hochgeladen (20)

Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

Tele4653 l11

  • 1. TELE4653 Digital Modulation & Coding Convolutional Codes Wei Zhang w.zhang@unsw.edu.au School of EET, UNSW
  • 2. Last time, we talked about:  Channel coding  Linear block codes  The error detection and correction capability  Encoding and decoding  Hamming codes 2010-May-17 TELE4653 - Convolutional Codes 2
  • 3. Today, we are going to talk about:  Another class of linear codes, known as Convolutional codes.  Part I – Encoder  Part II -- Decoding 2010-May-17 TELE4653 - Convolutional Codes 3
  • 4. PART I -- Encoder  We’ll study the structure of the encoder.  We’ll study different ways for representing the encoder.  We’ll study in particular, state diagram and trellis representation of the code. 2010-May-17 TELE4653 - Convolutional Codes 4
  • 5. Convolutional codes  Convolutional codes offer an approach to error control coding substantially different from that of block codes.  A convolutional encoder:  encodes the entire data stream, into a single codeword.  does not need to segment the data stream into blocks of fixed size.  is a machine with memory. 2010-May-17 TELE4653 - Convolutional Codes 5
  • 6. Convolutional codes-cont’d  A Convolutional code is specified by three parameters (n, k , K ) or (k / n, K ) where  Rc  k / n is the coding rate, determining the number of data bits per coded bit.  In practice, usually k=1 is chosen.  K is the constraint length of the encoder and the encoder has K-1 memory elements. 2010-May-17 TELE4653 - Convolutional Codes 6
  • 7. A Rate ½ Convolutional encoder  Convolutional encoder (rate ½, K=3)  3 shift-registers where the first one takes the incoming data bit and the rest, form the memory of the encoder. u1 First coded bit (Branch word) Input data bits Output coded bits m u1 ,u2 u2 Second coded bit 2010-May-17 TELE4653 - Convolutional Codes 7
  • 8. A Rate ½ Convolutional encoder Message sequence: m  (101) Time Output Time Output (Branch word) (Branch word) u1 u1 u1 u 2 u1 u 2 t1 1 0 0 t2 0 1 0 1 1 1 0 u2 u2 u1 u1 u1 u 2 u1 u 2 t3 1 0 1 t4 0 1 0 0 0 1 0 u2 u2 2010-May-17 TELE4653 - Convolutional Codes 8
  • 9. A Rate ½ Convolutional encoder Time Output Time Output (Branch word) (Branch word) u1 u1 u1 u 2 u1 u 2 t5 0 0 1 t6 0 0 0 1 1 0 0 u2 u2 m  (101) Encoder U  (11 10 00 10 11) 2010-May-17 TELE4653 - Convolutional Codes 9
  • 10. Effective code rate  Initialize the memory before encoding the first bit (all- zero)  Clear out the memory after encoding the last bit (all- zero)  Hence, a tail of zero-bits is appended to data bits. data tail Encoder codeword  Effective code rate :  L is the number of data bits and k=1 is assumed: L 1 Reff   Rc  n( L  K  1) n 2010-May-17 TELE4653 - Convolutional Codes 10
  • 11. Encoder representation  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 2010-May-17 TELE4653 - Convolutional Codes 11
  • 12. State diagram  A finite-state machine only encounters a finite number of states.  State of a machine: the smallest amount of information that, together with a current input to the machine, can predict the output of the machine.  In a Convolutional encoder, the state is represented by the content of the memory.  Hence, there are 2 states. K 1 2010-May-17 TELE4653 - Convolutional Codes 12
  • 13. State diagram – cont’d  A state diagram is a way to represent the encoder.  A state diagram contains all the states and all possible transitions between them.  Only two transitions initiating from a state  Only two transitions ending up in a state 2010-May-17 TELE4653 - Convolutional Codes 13
  • 14. State diagram – cont’d Current input Next output 0/00 Output state state (Branch word) S0 Input S0 0 S0 00 1/11 00 0 / 11 00 1 S2 11 1/00 S1 0 S0 11 S2 S1 10 01 01 1 S2 00 0/10 S2 0 S1 10 1/01 S3 0/01 10 1 S3 01 0 01 11 S3 S1 1/10 11 1 S3 10 2010-May-17 TELE4653 - Convolutional Codes 14
  • 15. Trellis – cont’d  Trellis diagram is an extension of the state diagram that shows the passage of time.  Example of a section of trellis for the rate ½ code State S 0  00 0/00 1/11 S 2  10 0/11 1/00 S1  01 1/01 0/10 0/01 1/10 S3  11 ti ti 1 Time 2010-May-17 TELE4653 - Convolutional Codes 15
  • 16. Trellis –cont’d  A trellis diagram for the example code. Input bits Tail bits 1 0 1 0 0 Output bits 11 10 00 10 11 0/00 0/00 0/00 0/00 0/00 1/11 1/11 1/11 1/11 1/11 0/11 0/11 0/11 0/11 0/11 1/00 1/00 1/00 1/00 1/00 0/10 0/10 0/10 0/10 0/10 1/01 1/01 1/01 1/01 1/01 0/01 0/01 0/01 0/01 0/01 1/10 1/10 1/10 1/10 1/10 t1 t 2 t 3 t 4 t 5 t 6 2010-May-17 TELE4653 - Convolutional Codes 16
  • 17. Trellis – cont’d Input bits Tail bits 1 0 1 0 0 Output bits 11 10 00 10 11 0/00 0/00 0/00 0/00 0/00 1/11 1/11 1/11 0/11 0/11 0/11 0/10 1/00 0/10 0/10 1/01 1/01 0/01 0/01 1/10 t1 t 2 t 3 t 4 t 5 t 6 2010-May-17 TELE4653 - Convolutional Codes 17
  • 18. PART II -- Decoding  How the decoding is performed for Convolutional codes?  What is a Maximum likelihood decoder?  How does the Viterbi algorithm work? 2010-May-17 TELE4653 - Convolutional Codes 18
  • 19. Block diagram of the DCS Information Rate 1/n Modulator source Conv. encoder m  (m1 , m2 ,..., mi ,...) U  G(m)      (U1 , U 2 , U 3 ,..., U i ,...) Channel Input sequence     Codeword sequence U i  u1i ,...,u ji ,...,u ni    Branch word ( n coded bits) Information Rate 1/n Demodulator sink Conv. decoder m  (m1 , m2 ,..., mi ,...) ˆ ˆ ˆ ˆ Z  ( Z1 , Z 2 , Z 3 ,..., Z i ,...)     received sequence Zi  z1i ,...,z ji ,...,zni     Demodulator outputs n outputs per Branch word for Branch word i 2010-May-17 TELE4653 - Convolutional Codes 19
  • 20. Optimum decoding  If the input sequence messages are equally likely, the optimum decoder which minimizes the probability of error is the Maximum Likelihood (ML) decoder.  ML decoder, selects a codeword among all the possible codewords which maximizes the likelihood function p (Z | U (m) ) where Z is the received sequence and U (m) is one of the possible codewords: 2 L codewords to search!!! ML decoding rule: Choose U ( m) if p (Z | U ( m) )  max(m) p (Z | U ( m ) ) over all U 2010-May-17 TELE4653 - Convolutional Codes 20
  • 21. The Viterbi algorithm  The Viterbi algorithm performs Maximum Likelihood decoding.  It finds a path through trellis with the largest metric (maximum correlation or minimum distance).  It processes the demodulator outputs in an iterative manner.  At each step in the trellis, it compares the metric of all paths entering each state, and keeps only the path with the largest metric, called the survivor, together with its metric.  It proceeds in the trellis by eliminating the least likely paths.  It reduces the decoding complexity to L 2 K 1 ! 2010-May-17 TELE4653 - Convolutional Codes 21
  • 22. The Viterbi algorithm - cont’d  Viterbi algorithm: A. Do the following set up:  For a data block of L bits, form the trellis. The trellis has L+K-1 sections or levels and starts at time t1 and ends up at time t L  K .  Label all the branches in the trellis with their corresponding branch metric.  For each state in the trellis at the time ti which is denoted by S (ti )  {0,1,...,2 K 1} , define a parameter S (ti ), ti  B. Then, do the following: 2010-May-17 TELE4653 - Convolutional Codes 22
  • 23. The Viterbi algorithm - cont’d 1. Set (0, t1 )  0 and i  2. 2. At time ti , compute the partial path metrics for all the paths entering each state. 3. Set S (ti ), ti  equal to the best partial path metric entering each state at time ti . Keep the survivor path and delete the dead paths from the trellis. 4. If i  L  K , increase i by 1 and return to step 2. C. Start at state zero at time t L  K . Follow the surviving branches backwards through the trellis. The path thus defined is unique and correspond to the ML codeword. 2010-May-17 TELE4653 - Convolutional Codes 23
  • 24. Example of Viterbi decoding m  (101) Source message U  (11 10 00 10 11) Codeword to be transmitted Z  (11 10 11 10 01) Received codeword 0/00 0/00 0/00 0/00 0/00 1/11 1/11 1/11 0/11 0/11 0/11 0/10 1/00 0/10 0/10 1/01 1/01 0/01 0/01 1/10 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 24
  • 25. Example of Viterbi decoding-cont’d  Label all the branches with the branch metric (Hamming distance) S (ti ), ti  0 2 1 2 1 1 0 1 0 0 1 1 2 0 1 0 1 2 2 1 1 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 25
  • 26. Example of Viterbi decoding-cont’d  i=2 0 2 2 1 2 1 1 0 1 0 0 0 1 1 2 0 1 0 1 2 2 1 1 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 26
  • 27. Example of Viterbi decoding-cont’d  i=3 0 2 2 1 3 2 1 1 0 1 0 0 3 0 1 1 2 0 1 0 0 1 2 2 2 1 1 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 27
  • 28. Example of Viterbi decoding-cont’d  i=4 0 2 2 1 3 2 0 1 1 0 1 0 0 3 2 0 1 1 1 2 0 0 0 3 1 2 2 2 1 3 1 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 28
  • 29. Example of Viterbi decoding-cont’d  i=5 0 2 2 1 3 2 0 1 1 1 0 1 0 0 3 2 0 1 1 1 2 0 0 2 0 3 1 2 2 2 1 3 1 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 29
  • 30. Example of Viterbi decoding-cont’d  i=6 0 2 2 1 3 2 0 1 1 1 2 0 1 0 0 3 2 0 1 1 1 2 0 0 2 0 3 1 2 2 2 1 3 1 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 30
  • 31. Example of Viterbi decoding-cont’d  Trace back and then: m  (100) ˆ U  (11 10 11 00 00) There are some decoding errors. ˆ 0 2 2 1 3 2 0 1 1 1 2 0 1 0 0 3 2 0 1 1 1 2 0 0 2 0 3 1 2 2 2 1 3 1 t1 t2 t3 t4 t5 t6 2010-May-17 TELE4653 - Convolutional Codes 31