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?

Convolution codes and turbo codes
Convolution codes and turbo codesConvolution codes and turbo codes
Convolution codes and turbo codes
Manish Srivastava
 
Reed_Solomon_Implementation
Reed_Solomon_ImplementationReed_Solomon_Implementation
Reed_Solomon_Implementation
ramya c b
 

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 emc
Vin Voro
 
Chapter2 framework-for-design
Chapter2 framework-for-designChapter2 framework-for-design
Chapter2 framework-for-design
Vin Voro
 
Chapter14 quality
Chapter14 qualityChapter14 quality
Chapter14 quality
Vin Voro
 
Slide bio4206
Slide bio4206Slide bio4206
Slide bio4206
dparkin
 
Kamaroninfo núm. 22 febrer 1998
Kamaroninfo núm. 22 febrer 1998Kamaroninfo núm. 22 febrer 1998
Kamaroninfo núm. 22 febrer 1998
Josep Miquel
 
referenties C2- The Communication Square Website
referenties C2- The Communication Square Websitereferenties C2- The Communication Square Website
referenties C2- The Communication Square Website
Valerie Leeman
 
ч.саранцацрал цахим тест
ч.саранцацрал цахим тестч.саранцацрал цахим тест
ч.саранцацрал цахим тест
tsatsraletka
 
library class power point
library class power pointlibrary class power point
library class power point
dparkin
 
Aztecs empire
Aztecs empireAztecs empire
Aztecs empire
goooooood
 
Oral presentation
Oral presentationOral presentation
Oral presentation
Vin 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_vs2
WanNurdiana
 
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
Loren Schwappach
 
Text compression in LZW and Flate
Text compression in LZW and FlateText compression in LZW and Flate
Text compression in LZW and Flate
Subeer Rangra
 
Speech waves in tube and filters
Speech waves in tube and filtersSpeech waves in tube and filters
Speech waves in tube and filters
Nikolay Karpov
 
Decoders
DecodersDecoders
Decoders
Re Man
 
digitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptxdigitalelectronicslogicfamilies-190628101225-converted.pptx
digitalelectronicslogicfamilies-190628101225-converted.pptx
Bijay Sharma
 
Hardware combinational
Hardware combinationalHardware combinational
Hardware combinational
Defri Tan
 
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)
 

Ä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 tut6
Vin Voro
 
Tele3113 tut5
Tele3113 tut5Tele3113 tut5
Tele3113 tut5
Vin Voro
 
Tele3113 tut4
Tele3113 tut4Tele3113 tut4
Tele3113 tut4
Vin Voro
 
Tele3113 tut1
Tele3113 tut1Tele3113 tut1
Tele3113 tut1
Vin Voro
 
Tele3113 tut3
Tele3113 tut3Tele3113 tut3
Tele3113 tut3
Vin Voro
 
Tele3113 tut2
Tele3113 tut2Tele3113 tut2
Tele3113 tut2
Vin Voro
 
Tele3113 wk11tue
Tele3113 wk11tueTele3113 wk11tue
Tele3113 wk11tue
Vin Voro
 
Tele3113 wk10wed
Tele3113 wk10wedTele3113 wk10wed
Tele3113 wk10wed
Vin Voro
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tue
Vin Voro
 
Tele3113 wk11wed
Tele3113 wk11wedTele3113 wk11wed
Tele3113 wk11wed
Vin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
Vin Voro
 
Tele3113 wk9tue
Tele3113 wk9tueTele3113 wk9tue
Tele3113 wk9tue
Vin Voro
 
Tele3113 wk8wed
Tele3113 wk8wedTele3113 wk8wed
Tele3113 wk8wed
Vin Voro
 
Tele3113 wk9wed
Tele3113 wk9wedTele3113 wk9wed
Tele3113 wk9wed
Vin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
Vin Voro
 
Tele3113 wk7wed
Tele3113 wk7wedTele3113 wk7wed
Tele3113 wk7wed
Vin Voro
 
Tele3113 wk7tue
Tele3113 wk7tueTele3113 wk7tue
Tele3113 wk7tue
Vin Voro
 
Tele3113 wk6wed
Tele3113 wk6wedTele3113 wk6wed
Tele3113 wk6wed
Vin Voro
 
Tele3113 wk6tue
Tele3113 wk6tueTele3113 wk6tue
Tele3113 wk6tue
Vin Voro
 
Tele3113 wk5tue
Tele3113 wk5tueTele3113 wk5tue
Tele3113 wk5tue
Vin 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

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Chapter 7 Pharmacosy Traditional System of Medicine & Ayurvedic Preparations ...
Chapter 7 Pharmacosy Traditional System of Medicine & Ayurvedic Preparations ...Chapter 7 Pharmacosy Traditional System of Medicine & Ayurvedic Preparations ...
Chapter 7 Pharmacosy Traditional System of Medicine & Ayurvedic Preparations ...
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Benefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxBenefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptx
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 

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