S Advanced Digital Communication (4 cr)

Slides:



Advertisements
Similar presentations
Convolutional Codes Mohammad Hanaysheh Mahdi Barhoush.
Advertisements

Convolutional Codes Representation and Encoding  Many known codes can be modified by an extra code symbol or by deleting a symbol * Can create codes of.
Decoding of Convolutional Codes  Let C m be the set of allowable code sequences of length m.  Not all sequences in {0,1}m are allowable code sequences!
1 S Digital Communication Systems Advanced Modulation and Random Access Techniques.
1 S Digital Communication Systems Cyclic Codes.
Data Communication, Lecture 111 Channel Coding. Data Communication, Lecture 112 audio video (analogue) data (digital) Source anti-alias filter A/D Nyquist.
S Digital Communication Systems Bandpass modulation II.
6.375 Project Arthur Chang Omid Salehi-Abari Sung Sik Woo May 11, 2011
Maximum Likelihood Sequence Detection (MLSD) and the Viterbi Algorithm
Cellular Communications
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
Error detection/correction FOUR WEEK PROJECT 1 ITEMS TO BE DISCUSSED 1.0 OVERVIEW OF CODING STRENGTH (3MINS) Weight/distance of binary vectors Error detection.
Chapter 11 Error-Control CodingChapter 11 : Lecture edition by K.Heikkinen.
Figure 6.1. A convolutional encoder. Figure 6.2. Structure of a systematic convolutional encoder of rate.
ECE 559 VLSI – Design Project Viterbi Decoder VLSI Design Project Spring 2002 Dan Breen Keith Grimes Damian Nowak David Rust Advisor: Prof. Goeckel.
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
EE 3220: Digital Communication Dr Hassan Yousif 1 Dr. Hassan Yousif Ahmed Department of Electrical Engineering College of Engineering at Wadi Aldwasser.
EE 3220: Digital Communication Dr Hassan Yousif 1 Dr. Hassan Yousif Ahmed Department of Electrical Engineering College of Engineering at Wadi Aldwasser.
ECED 4504 Digital Transmission Theory
1 S Advanced Digital Communication (4 cr) Cyclic Codes.
Channel Coding and Error Control
1 Systematic feedback (recursive) encoders G’(D) = [1,(1 + D 2 )/(1 + D + D 2 ),(1 + D)/(1 + D + D 2 ) ] Infinite impulse response (not polynomial) Easier.
1 Channel Coding (II) Cyclic Codes and Convolutional Codes.
1 Solutions for lecture assignments S Transmission Methods in Telecommunication Systems (5 cr)
S Digital Communication Systems The Viterbi algorithm, optimum coherent bandpass modulation.
Copyright © 2001, S. K. Mitra Digital Filter Structures The convolution sum description of an LTI discrete-time system be used, can in principle, to implement.
1 SNS COLLEGE OF ENGINEERING Department of Electronics and Communication Engineering Subject: Digital communication Sem: V Cyclic Codes.
S Transmission Methods in Telecommunication System (5cr) Error Control Coding.
Codes Codes are used for the following purposes: - to detect errors - to correct errors after detection Error Control Coding © Erhan A. Ince Types: -Linear.
Prof. Amr Goneid, AUC1 Analysis & Design of Algorithms (CSCE 321) Prof. Amr Goneid Department of Computer Science, AUC Part 8. Greedy Algorithms.
Medicaps Institute of Technology & Management Submitted by :- Prasanna Panse Priyanka Shukla Savita Deshmukh Guided by :- Mr. Anshul Shrotriya Assistant.
Digital Communications I: Modulation and Coding Course Term Catharina Logothetis Lecture 12.
S Digital Communication Systems Course Overview, Basic Characteristics of Block Codes.
Basic Characteristics of Block Codes
Outline Transmitters (Chapters 3 and 4, Source Coding and Modulation) (week 1 and 2) Receivers (Chapter 5) (week 3 and 4) Received Signal Synchronization.
DIGITAL COMMUNICATIONS Linear Block Codes
ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
1 CONTEXT DEPENDENT CLASSIFICATION  Remember: Bayes rule  Here: The class to which a feature vector belongs depends on:  Its own value  The values.
Real-Time Turbo Decoder Nasir Ahmed Mani Vaya Elec 434 Rice University.
1 Channel Coding (III) Channel Decoding. ECED of 15 Topics today u Viterbi decoding –trellis diagram –surviving path –ending the decoding u Soft.
Last time, we talked about:
The parity bits of linear block codes are linear combination of the message. Therefore, we can represent the encoder by a linear system described by matrices.
Timo O. Korhonen, HUT Communication Laboratory 1 Convolutional encoding u Convolutional codes are applied in applications that require good performance.
Basic Concepts of Encoding Codes and Error Correction 1.
Error Correction Code (2)
Digital Communications I: Modulation and Coding Course Term Catharina Logothetis Lecture 9.
A simple rate ½ convolutional code encoder is shown below. The rectangular box represents one element of a serial shift register. The contents of the shift.
Wireless Communication Research Lab. CGU What is Convolution Code? 指導教授:黃文傑 博士 學生:吳濟廷
Dr. Muqaibel \ EE430 Convolutional Codes 1 Convolutional Codes.
SNS COLLEGE OF ENGINEERING Department of Electronics and Communication Engineering Subject: Digital communication Sem: V Convolutional Codes.
Convolutional Coding In telecommunication, a convolutional code is a type of error- correcting code in which m-bit information symbol to be encoded is.
Hamming Distance & Hamming Code
Error Control Coding. Purpose To detect and correct error(s) that is introduced during transmission of digital signal.
Interleaving Compounding Packets & Convolution Codes
1 Code design: Computer search Low rate: Represent code by its generator matrix Find one representative for each equivalence class of codes Permutation.
FEC decoding algorithm overview VLSI 자동설계연구실 정재헌.
MD. TARIQ HASAN SoC Design LAB Department of Information and Communication Engineering College of Electronics and Information Engineering Chosun University.
DIGITAL SYTEM DESIGN MINI PROJECT CONVOLUTION CODES
The Viterbi Decoding Algorithm
What is this “Viterbi Decoding”
S Digital Communication Systems
COS 463: Wireless Networks Lecture 9 Kyle Jamieson
Subject Name: Information Theory Coding Subject Code: 10EC55
Error Correction Code (2)
Error Correction Code (2)
Error Correction Code (2)
COS 463: Wireless Networks Lecture 9 Kyle Jamieson
Homework #2 Due May 29 , Consider a (2,1,4) convolutional code with g(1) = 1+ D2, g(2) = 1+ D + D2 + D3 a. Draw the.
Error Correction Coding
IV. Convolutional Codes
Presentation transcript:

S.72-3320 Advanced Digital Communication (4 cr) Convolutional Codes

Targets today Why to apply convolutional coding? Defining convolutional codes Practical encoding circuits Defining quality of convolutional codes Decoding principles Viterbi decoding

Convolutional encoding n(L+1) output bits input bit (n,k,L) encoder k bits n bits message bits encoded bits Convolutional codes are applied in applications that require good performance with low implementation complexity. They operate on code streams (not in blocks) Convolution codes have memory that utilizes previous bits to encode or decode following bits (block codes are memoryless) Convolutional codes are denoted by (n,k,L), where L is code (or encoder) Memory depth (number of register stages) Constraint length C=n(L+1) is defined as the number of encoded bits a message bit can influence to Convolutional codes achieve good performance by expanding their memory depth

Example: Convolutional encoder, k = 1, n = 2 memory depth L = number of states (n,k,L) = (2,1,2) encoder Convolutional encoder is a finite state machine (FSM) processing information bits in a serial manner Thus the generated code is a function of input and the state of the FSM In this (n,k,L) = (2,1,2) encoder each message bit influences a span of C= n(L+1)=6 successive output bits = constraint length C Thus, for generation of n-bit output, we require in this example n shift registers in k = 1 convolutional encoder

Example: (n,k,L)=(3,2,1) Convolutional encoder After each new block of k input bits follows a transition into new state Hence, from each input state transition, 2k different output states may follow Each message bit influences a span of C = n(L+1) = 3(1+1) = 6 successive output bits

Generator sequences (n,k,L) encoder k bits n bits (n,k,L) Convolutional code can be described by the generator sequences that are the impulse responses for each coder n output branches: Generator sequences specify convolutional code completely by the associated generator matrix Encoded convolution code is produced by matrix multiplication of the input and the generator matrix Note that the generator sequence length exceeds register depth always by 1

Convolution point of view in encoding and generator matrix Encoder outputs are formed by modulo-2 discrete convolutions: where u is the information sequence: Therefore, the l:th bit of the j:th output branch is* Hence, for this circuit the following equations result, (assume: ) n(L+1) output bits input bit j branches encoder output: *note that u is reversed in time as in the definition of convolution top right

Example: Using generator matrix Verify that you can obtain the result shown!

S.Lin, D.J. Costello: Error Control Coding, II ed, p. 456

Representing convolutional codes: Code tree Number of braches deviating from each node equals 2k (n,k,L) = (2,1,2) encoder This tells how one input bit is transformed into two output bits (initially register is all zero)

Representing convolutional codes compactly: code trellis and state diagram Input state ‘1’ indicated by dashed line State diagram Code trellis Shift register states

Inspecting state diagram: Structural properties of convolutional codes Each new block of k input bits causes a transition into new state Hence there are 2k branches leaving each state Assuming encoder zero initial state, encoded word for any input of k bits can thus be obtained. For instance, below for u=(1 1 1 0 1), encoded word v=(1 1, 1 0, 0 1, 0 1, 1 1, 1 0, 1 1, 1 1) is produced: Verify that you obtain the same result! Input state - encoder state diagram for (n,k,L)=(2,1,2) code - note that the number of states is 8 = 2L+1 => L = 2 (two state bits)

Code weight, path gain, and generating function The state diagram can be modified to yield information on code distance properties (= tells how good the code is to detect or correct errors) Rules (example on the next slide): (1) Split S0 into initial and final state, remove self-loop (2) Label each branch by the branch gain Xi. Here i is the weight* of the n encoded bits on that branch (3) Each path connecting the initial state and the final state represents a nonzero code word that diverges and re-emerges with S0 only once The path gain is the product of the branch gains along a path, and the weight of the associated code word is the power of X in the path gain Code weigh distribution is obtained by using a weighted gain formula to compute its generating function (input-output equation) where Ai is the number of encoded words of weight i *In linear codes, weight is the number of ‘1’:s in the encoder output

Where does these terms come from? branch gain weight: 2 weight: 1 Example: The path representing the state sequence S0S1S3S7S6S5S2S4S0 has the path gain X2X1X1X1X2X1X2X2=X12 and the corresponding code word has the weight of 12 Where does these terms come from?

Distance properties of convolutional codes Code strength is measured by the minimum free distance: where v’ and v’’ are the encoded words corresponding information sequences u’ and u’’. Code can correct up to errors. The minimum free distance dfree denotes: The minimum weight of all the paths in the state diagram that diverge from and remerge with the all-zero state S0 The lowest power of the code-generating function T(X) Code gain*: * for derivation, see Carlson’s, p. 583

Coding gain for some selected convolutional codes Here is a table of some selected convolutional codes and their code gains RCdfree /2 expressed for hard decoding also by

Decoding of convolutional codes Maximum likelihood decoding of convolutional codes means finding the code branch in the code trellis that was most likely transmitted Therefore maximum likelihood decoding is based on calculating code Hamming distances for each branch potentially forming encoded word Assume that the information symbols applied into an AWGN channel are equally alike and independent Let’s denote by x encoded symbols (no errors) and by y received (potentially erroneous) symbols: Probability to decode the symbols is then The most likely path through the trellis will maximize this metric. Often ln() is taken from both sides, because probabilities are often small numbers, yielding: (note this corresponds equavalently also the smallest Hamming distance) received code: Decoder (=distance calculation) non - erroneous code: bit decisions

Example of exhaustive maximal likelihood detection Assume a three bit message is transmitted and encoded by (2,1,2) convolutional encoder. To clear the decoder, two zero-bits are appended after message. Thus 5 bits are encoded resulting 10 bits of code. Assume channel error probability is p = 0.1. After the channel 10,01,10,11,00 is produced (including some errors). What comes after the decoder, e.g. what was most likely the transmitted code and what were the respective message bits? a b states c decoder outputs if this path is selected d

weight for prob. to receive bit in-error correct errors

The largest metric, verify that you get the same result! Note also the Hamming distances!

The Viterbi algorithm Problem of optimum decoding is to find the minimum distance path from the initial state back to the initial state (below from S0 to S0). The minimum distance is one of the sums of all path metrics from S0 to S0 Exhaustive maximum likelihood method must search all the paths in phase trellis (2k paths emerging/ entering from 2 L+1 states for an (n,k,L) code) The Viterbi algorithm gets improvement in computational efficiency via concentrating into survivor paths of the trellis

The survivor path Assume for simplicity a convolutional code with k=1, and thus up to 2k = 2 branches can enter each state in trellis diagram Assume optimal path passes S. Metric comparison is done by adding the metric of S1 and S2 to S. At the survivor path the accumulated metric is naturally smaller (otherwise it could not be the optimum path) For this reason the non-survived path can be discarded -> all path alternatives need not to be further considered Note that in principle the whole transmitted sequence must be received before decision. However, in practice storing of states for input length of 5L is quite adequate

Example of using the Viterbi algorithm Assume the received sequence is and the (n,k,L)=(2,1,2) encoder shown below. Determine the Viterbi decoded output sequence! (Note that for this encoder code rate is 1/2 and memory depth equals L = 2)

The maximum likelihood path Smaller accumulated metric selected After register length L+1=3 branch pattern begins to repeat 1 1 (Branch Hamming distances in parenthesis) First depth with two entries to the node The decoded ML code sequence is 11 10 10 11 00 00 00 whose Hamming distance to the received sequence is 4 and the respective decoded sequence is 1 1 0 0 0 0 0 (why?). Note that this is the minimum distance path. (Black circles denote the deleted branches, dashed lines: '1' was applied)

How to end-up decoding? In the previous example it was assumed that the register was finally filled with zeros thus finding the minimum distance path In practice with long code words zeroing requires feeding of long sequence of zeros to the end of the message bits: this wastes channel capacity & introduces delay To avoid this path memory truncation is applied: Trace all the surviving paths to the depth where they merge Figure right shows a common point at a memory depth J J is a random variable whose applicable magnitude shown in the figure (5L) has been experimentally tested for negligible error rate increase Note that this also introduces the delay of 5L!

Lessons learned You understand the differences between cyclic codes and convolutional codes You can create state diagram for a convolutional encoder You know how to construct convolutional encoder circuits based on knowing the generator sequences You can analyze code strengths based on known code generation circuits / state diagrams or generator sequences You understand how to realize maximum likelihood convolutional decoding by using exhaustive search You understand the principle of Viterbi decoding