Docsity

Convolutional Codes: A Comprehensive Introduction with Examples, Slides of Mobile Computing

Toggle sidebar
bg1
Lecture 10 1
Convolutional codes
A Convolutional code is specified by
three parameters or
where
is the coding rate,
determining the number of data bits
per coded bit.
In practice, usually k=1 is chosen and we
assume that from now on.
K is the constraint length of the
encoder a where the encoder has K-1
memory elements.
There is different definitions in literatures
for constraint length.
),,( Kkn
),/( Knk
nkR
c
/
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Convolutional Codes: A Comprehensive Introduction with Examples and more Slides Mobile Computing in PDF only on Docsity!

Convolutional codes

A Convolutional code is specified by

three parameters or

where

is the coding rate,

determining the number of data bits

per coded bit.

 (^) In practice, usually k=1 is chosen and we assume that from now on.

 K is the constraint length of the

encoder a where the encoder has K-

memory elements.

 (^) There is different definitions in literatures for constraint length.

( n , k , K ) (^ k / n , K )

R k n

c

Block diagram of the DCS

Information source Rate 1/n Conv. encoder Modulator Information sink Rate 1/n Conv. decoder Demodulator        Inputsequence m ( m 1 , m 2 ,..., mi ,...)               Branch word( coded bits) 1 Codeword sequence ( 1 , 2 , 3 ,..., ,...) n i i ji ni i U u ,...,u ,...,u U U U U   UG(m) m ˆ^ ( m ˆ 1 , m ˆ 2 ,..., m ˆ i ,...)  (^)               outputsperBranch wor d 1 forBranch wor d Demodulator outputs received sequence ( 1 , 2 , 3 ,..., ,...) n i ji ni i i i Z z ,...,z ,...,z Z Z Z ZZ  Channel

A Rate ½ Convolutional encoder

t (^11 0 ) u 1 u 2 1 1 u 1 u 2 t (^20 1 ) u 1 u 2 1 0 u 1 u 2 t (^31 0 ) u 1 u 2 0 0 u 1 u 2 t (^40 1 ) u 1 u 2 1 0 u 1 u 2 m ( 101 ) Time (^) Output Time Output Message sequence: (Branch word) (Branch word)

A Rate ½ Convolutional encoder

m ( 101 ) Encoder U ( 11 10 00 10 11 ) t (^50 0 ) u 1 u 2 1 1 u 1 u 2 t (^60 0 ) u 1 u 2 0 0 u 1 u 2 Time (^) Output Time (^) Output (Branch word) (Branch word)

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: m u 1 u 2 u 1 u 2 ( 101 ) ( 111 ) 2 1   g g

Encoder representation – cont’d

Impulse response representaiton:

 (^) The response of encoder to a single “one” bit that goes through it.  (^) Example: 001 1 1

Outputsequence: 11 10 11 Inputsequence: 1 0 0 u 1 u 2 Branch word Register contents 11 10 00 10 11 1 11 10 11 0 00 00 00 1 11 10 11 Input m Output Modulo-2 sum:

Encoder representation –cont’d

In more details: 11 10 00 10 11

2 3 4 2 3 4 2 2 3 4 1 2 2 4 2 2 2 3 4 1 

U

U

m g m g m g m g X X X X X

X X X X X X

X X X X X X

X X X X X

X X X X X X X X

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 states.

1

K

State diagram – cont’d

10 01 00 11 Next output state Current input state

0

S

1

S

2

S

3

S

0

S

2

S

0

S

2

S

1

S

3

S

3

S

1

S

0 S 1 S 2 S 3 S 1/ 1/ 1/ 1/ 0/ 0/ 0/ 0/ Input Output (Branch word)

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 ti ti  1 Time State 00 0

S 

1

S 

10 2 S  11 3

S 

0/ 1/ 0/ 0/ 0/ 1/ 1/ 1/

1 0 1 0 0 11 10 00 10 11 Input bits Output bits

Example of Hard decision Viterbi

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

 - 0/  A trellis diagram for the example code - 0/ 
  • 0/
    • 1/
      • 1/ - 1/
        • 0/ - 0/ - 0/ - 0/ - 1/ - 1/ - 1/ - 0/ - 0/ - 0/ - 0/ - 1/ - 1/ - 1/ - 0/ - 0/ - 0/ - 0/ - 1/ - 1/ - 1/ - 0/ - 0/ - 0/ - 0/ - 1/ - 1/ - 1/ - 0/
  • t 1 t 2 t 3 t 4 t 5 t
    • 1/ Trellis – cont’d
      • 0/ - 0/
        • 1/
          • 1/
            • 0/ - 0/ - 0/ - 0/ - 1/ - 1/ - 1/ - 0/ - 0/ - 0/ - 0/ - 0/ - 0/ - 0/
  • t 1 t 2 t 3 t 4 t 5 t
    • 1/ decoding
      • 0/ - 0/
        • 1/
          • 1/
            • 0/ - 0/ - 0/ - 0/ - 1/ - 1/ - 1/ - 0/ - 0/ - 0/ - 0/ - 0/ - 0/ - 0/
  • t 1 t 2 t 3 t 4 t 5 t

Example of Hard decision Viterbi

decoding-cont’d

 (^) i= 0 2 0 1 2 1 0 1 1 0 1 2 2 1 0 2 1 1 1 t 1 (^) t (^) 2 t 3 t (^) 4 t 5 t 6 1 0 2 0

Example of Hard decision Viterbi

decoding-cont’d

 (^) i= 0 2 0 1 2 1 0 1 1 0 1 2 2 1 0 2 1 1 1 t 1 (^) t (^) 2 t 3 t (^) 4 t 5 t 6 1 0 2 3 0 2 0 3