Chapter10 Convolutional Codes. Dr. Chih-Peng Li ( 李 )

Size: px
Start display at page:

Download "Chapter10 Convolutional Codes. Dr. Chih-Peng Li ( 李 )"

Transcription

1 Chapter Convolutional Codes Dr. Chih-Peng Li ( 李 )

2 Table of Contents. Encoding of Convolutional Codes. tructural Properties of Convolutional Codes. Distance Properties of Convolutional Codes

3 Convolutional Codes Convolutional codes differ from block codes in that the encoder contains memory and the n encoder outputs at any time unit depend not only on the k inputs but also on m previous input blocks. An (n, k, m) convolutional code can be implemented with a k- input, n-output linear sequential circuit with input memory m. Typically, n and k are small integers with k<n, but the memory order m must be made large to achieve low error probabilities. In the important special case when k=, the information sequence is not divided into blocks and can be processed continuously. Convolutional codes were first introduced by Elias in 955 as an alternative to block codes.

4 Convolutional Codes hortly thereafter, Wozencraft proposed sequential decoding as an efficient decoding scheme for convolutional codes, and experimental studies soon began to appear. In 96, Massey proposed a less efficient but simpler-toimplement decoding method called threshold decoding. Then in 967, Viterbi proposed a maximum likelihood decoding scheme that was relatively easy to implement for cods with small memory orders. This scheme, called Viterbi decoding, together with improved versions of sequential decoding, led to the application of convolutional codes to deep-space and satellite communication in early 97s.

5 Convolutional Code A convolutional code is generated by passing the information sequence to be transmitted through a linear finite-state shift register. In general, the shift register consists of K (k-bit) stages and n linear algebraic function generators. 5

6 Convolutional codes Convoltuional Code k = number of bits shifted into the encoder at one time k= is usually used!! n = number of encoder output bits corresponding to the k information bits R c = k/n = code rate K = constraint length, encoder memory. Each encoded bit is a function of the present input bits and their past ones. Note that the definition of constraint length here is the same as that of hu Lin s, while the shift register s representation is different. 6

7 Example : Encoding of Convolutional Code Consider the binary convolutional encoder with constraint length K=, k=, and n=. The generators are: g =[], g =[], and g =[]. The generators are more conveniently given in octal form as (,5,7). 7

8 Example : Encoding of Convolutional Code Consider a rate / convolutional encoder. The generators are: g =[], g =[], and g =[]. In octal form, these generator are (, 5, ). 8

9 Representations of Convolutional Code There are three alternative methods that are often used to describe a convolutional code: Tree diagram Trellis diagram tate disgram 9

10 Representations of Convolutional Code Tree diagram Note that the tree diagram in the right repeats itself after the third stage. This is consistent with the fact that the constraint length K=. The output sequence at each stage is determined by the input bit and the two previous input bits. In other words, we may sat that the -bit output sequence for each input bit is determined by the input bit and the four possible states of the shift register, denoted as a=, b=, c=, and d=. Tree diagram for rate /, K= convolutional code.

11 Representations of Convolutional Code Trellis diagram Tree diagram for rate /, K= convolutional code.

12 Representations of Convolutional Code tate diagram a a a c b a b c c b c d d b d d tate diagram for rate /, K= convolutional code.

13 Representations of Convolutional Code Example: K=, k=, n= convolutional code Tree diagram

14 Representations of Convolutional Code Example: K=, k=, n= convolutional code Trellis diagram

15 Representations of Convolutional Code Example: K=, k=, n= convolutional code tate diagram 5

16 Representations of Convolutional Code In general, we state that a rate k/n, constraint length K, convolutional code is characterized by k branches emanating from each node of the tree diagram. The trellis and the state diagrams each have k(k-) possible states. There are k branches entering each state and k branches leaving each state. 6

17 . Encoding of Convolutional Codes Example: A (,, ) binary convolutional codes: the encoder consists of an m= -stage shift register together with n= modulo- adders and a multiplexer for serializing the encoder outputs. The mod- adders can be implemented as ECLUIVE-OR gates. ince mod- addition is a linear operation, the encoder is a linear feedforward shift register. All convolutional encoders can be implemented using a linear feedforward shift register of this type. 7

18 . Encoding of Convolutional Codes The information sequence u =(u, u, u, ) enters the encoder one bit at a time. ince the encoder is a linear system, the two encoder output sequence v = ( υ, υ, υ, ) and v = ( υ, υ, υ, ) can be obtained as the convolution of the input sequence u with the two encoder impulse response. The impulse responses are obtained by letting u =( ) and observing the two output sequence. ince the encoder has an m-time unit memory, the impulse responses can last at most m time units, and are written as : g g () () = = ( g ( g () (), g, g () () 8,, g,, g () m () m ) )

19 . Encoding of Convolutional Codes The encoder of the binary (,, ) code is () g = ( ) () g = ( ) The impulse response g () and g () are called the generator sequences of the code. The encoding equations can now be written as () v () = u g () v () = u g where * denotes discrete convolution and all operations are mod-. The convolution operation implies that for all l, m ( j) ( j) ( j) ( j) ( j) υl li i l l lm m i= where = u g = u g u g u g, j =,,. u = l i for all l < i. 9

20 . Encoding of Convolutional Codes Hence, for the encoder of the binary (,,) code, υ υ () l () l = u = u l l u l u u l l u u as can easily be verified by direct inspection of the encoding circuit. After encoding, the two output sequences are multiplexed into a signal sequence, called the code word, for transmission over the channel. The code word is given by l l v = () () () () () () ( υ υ, υ υ, υ υ, ).

21 Example.. Encoding of Convolutional Codes Let the information sequence u = ( ). Then the output sequences are () v = ( ) ( () v = ( ) ( and the code word is v = (,,, ) = ( ) = (,,,, ). ) )

22 . Encoding of Convolutional Codes If the generator sequence g () and g () are interlaced and then arranged in the matrix () () () () () () () () g g g g g g g m g m () () () () () () () () g g g g g mg m g m g m G = () () () () () () () g g g mg m g mg m g m g m where the blank areas are all zeros, the encoding equations can be rewritten in matrix form as v = ug. G is called the generator matrix of the code. Note that each row of G is identical to the preceding row but shifted n = places to right, and the G is a semi-infinite matrix, corresponding to the fact that the information sequence u is of arbitrary length. ()

23 . Encoding of Convolutional Codes If u has finite length L, then G has L rows and (ml) columns, and v has length (m L). Example. If u=( ), then v = ug = ( = (, ),,,,,, ), agree with our previous calculation using discrete convolution.

24 . Encoding of Convolutional Codes Consider a (,, ) convolutional codes ince k =, the encoder consists of two m = - stage shift registers together with n = mode- adders and two multiplexers.

25 . Encoding of Convolutional Codes The information sequence enters the encoder k = bits at a time, and can be written as () () () () () () u = ( u u, u u, u u, ) () () () () or as the two input sequences u = ( u, u, u, ) () () () () u = ( u, u, u, ) There are three generator sequences corresponding to each input sequence. ( j) ( j) ( j) ( j) Let gi = ( gi,, gi,,, gi, m ) represent the generator sequence corresponding to input i and output j, the generator sequence of the (,, ) convolutional codes are g g () () = ( = ( ), ), g g () () = ( = ( 5 ), ), g g () () = ( = ( ), ),

26 . Encoding of Convolutional Codes And the encoding equations can be written as v v v () () () = u = u = u () () () The convolution operation implies that υ υ υ () l () l () l = u = = u () () () After multiplexing, the code word is given by () () () () l () l g g g u u () l () l u u u () () () u u u () l () l () l g g g u, () l () () () () () () () () () v = ( υ υ υ, υ υ υ, υ υ υ, ). 6

27 . Encoding of Convolutional Codes Example. If u() = ( ) and u() = ( ), then v v v () () () and = ( = ( = ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) = ( ) = ( ) = ( ) ) ) v = (,,, ). 7

28 . Encoding of Convolutional Codes The generator matrix of a (,, m) code is () () () () () () () () () g, g, g, g, g, g, g, mg, mg, m () () () () () () () () () g,g, g, g,g, g, g, mg, mg, m = () () () () () () () () G g, g, g, g, mg, mg, m g, mg, mg () () () () () () () () g,g, g, g, mg, mg, m g, mg, mg and the encoding equation in matrix are again given by v = ug. Note that each set of k = rows of G is identical to the preceding set of rows but shifted n = places to right. (), m (), m 8

29 Example.. Encoding of Convolutional Codes If u () = ( ) and u () = ( ), then u = (,, ) and v = ug = (,, ) = (,,, ), it agree with our previous calculation using discrete convolution. 9

30 . Encoding of Convolutional Codes In particular, the encoder now contains k shift registers, not all of which must have the same length. If K i is the length of the ith shift register, then the encoder memory order m is defined as m max K An example of a (,, ) convolutional encoder in which the shift register length are,, and. i k i

31 . Encoding of Convolutional Codes The constraint length is defined as n A n(m). ince each information bit remains in the encoder for up to m time units, and during each time unit can affect any of the n encoder outputs, n A can be interpreted as the maximum number of encoder outputs that can be affected by a signal information bit. For example, the constraint length of the (,,), (,,), and (,,) convolutional codes are 8, 6, and, respectively.

32 . Encoding of Convolutional Codes If the general case of an (n, k, m) code, the generator matrix is where each G l is a k n submatrix whose entries are Note that each set of k rows of G is identical to the previous set of rows but shifted n places to the right. = m m m m m m G G G G G G G G G G G G G = ) (, (), (), ) (, (), (), ) (, (), (), n l k l k l k n l l l n l l l l g g g g g g g g g G

33 . Encoding of Convolutional Codes For an information sequence () () ( k ) () () ( k ) u = ( u, u, ) = ( u u u, u u u, ) () () ( n) () () ( n) and the code word v = ( v, v, ) = ( υ υ υ, υ υ υ, is given by v = ug. ince the code word v is a linear combination of rows of the generator matrix G, an (n, k, m) convolutional code is a linear code. )

34 . Encoding of Convolutional Codes A convolutional encoder generates n encoded bits for each k information bits, and R = k/n is called the code rate. For an k L finite length information sequence, the corresponding code word has length n(l m), where the final n m outputs are generated after the last nonzero information block has entered the encoder. Viewing a convolutional code as a linear block code with generator matrix G, the block code rate is given by kl/n(l m), the ratio of the number of information bits to the length of the code word. If L» m, then L/(L m), and the block code rate and convolutional code are approximately equal.

35 . Encoding of Convolutional Codes If L were small, however, the ratio kl/n(l m), which is the effective rate of information transmission, would be reduced below the code rate by a fractional amount k n called the fractional rate loss. k n kl n( L m) To keep the fractional rate loss small, L is always assumed to be much larger than m. Example.5 For a (,,) convolutional codes, L=5 and the fractional rate loss is /8=7.5%. However, if the length of the information sequence is L=, the fractional rate loss is only /=.%. = L m m 5

36 . Encoding of Convolutional Codes In a linear system, time-domain operations involving convolution can be replaced by more convenient transform-domain operations involving polynomial multiplication. ince a convolutional encoder is a linear system, each sequence in the encoding equations can be replaced by corresponding polynomial, and the convolution operation replaced by polynomial multiplication. In the polynomial representation of a binary sequence, the sequence itself is represent by the coefficients of the polynomial. For example, for a (,, m) code, the encoding equations become () () v ( D) = u( D) g ( D) () () v ( D) = u( D) g ( D), where u(d) = u u D u D is the information sequence. 6

37 . Encoding of Convolutional Codes The encoded sequences are () () () () v ( D) = υ υ D υ D () () () () v ( D) = υ υ D υ D The generator polynomials of the code are () () () g ( D) = g g D g () () () g ( D) = g g D g and all operations are modulo-. After multiplexing, the code word become () () v ( D) = v ( D ) Dv ( D ) the indeterminate D can be interpreted as a delay operator, and the power of D denoting the number of time units a bit is delayed with respect to the initial bit. 7 () m () m m D D m

38 Example.6. Encoding of Convolutional Codes For the previous (,, ) convolutional code, the generator polynomials are g () (D) = D D and g () (D) = DD D. For the information sequence u(d) = D D D, the encoding equation are () 7 v ( D) = ( D D D )( D D ) = D () v ( D) = ( D D D )( D D D ) 5 7 = D D D D D, and the code word is () () ( D) = D D D = D D D D D D D v v v. Note that the result is the same as previously computed using convolution and matrix multiplication. 8

39 . Encoding of Convolutional Codes The generator polynomials of an encoder can be determined directly from its circuit diagram. ince the shift register stage represents a one-time-unit delay, the sequence of connection (a representing a connection and a no connection) from a shift register to an output is the sequence of coefficients in the corresponding generator polynomial. ince the last stage of the shift register in an (n, ) code must be connected to at least one output, at least one of the generator polynomials must have degree equal to the shift register length m, that is j m = max deg g D j n [ ] 9

40 . Encoding of Convolutional Codes In an (n, k) code where k>, there are n generator polynomials for each of the k inputs. Each set of n generators represents the connections from one of the shift registers to the n outputs. The length K i of the ith shift register is given by K i = [ ] j g D, i k, max deg j n i j where g i D is the generator polynomial relating the ith input to the jth output, and the encoder memory order m is m = max K i i k = max deg j n i k [ ] j g i.

41 . Encoding of Convolutional Codes ince the encoder is a linear system, and u (i) (D) is the ith input sequence and v (j) (D)is the jth output sequence, the generator polynomial ( j g ) i D can be interpreted as the encoder transfer function relating input i to output j. As with k-input, n-output linear system, there are a total of k n transfer functions. These can be represented by the k n transfer function matrix G D () ( n ) g D g D g D () n g D g D g D = () ( ) ( n ) k D k D k D g g g

42 . Encoding of Convolutional Codes Using the transfer function matrix, the encoding equation for an (n, k, m) code can be expressed as ( D) ( D) G( D) V = U where () () ( k ) U D u ( D), u ( D),, u ( D) is the k-tuple of () () ( n) input sequences and V( D) is v ( D), v ( D),, v ( D) the n-tuple of output sequences. After multiplexing, the code word becomes v ( ) ( n ) ( ) ( n ) n ( n ) ( n D = v D Dv D D v D ).

43 Example.7 V. Encoding of Convolutional Codes For the previous (,, ) convolutional code D D D G( D) = D For the input sequences u () (D) = D and u () (D)=D, the encoding equations are [ ] [ ] D D D D = v D, v D, v D = D, D D = D, D, D D () and the code word is v [ ] ( D) = ( ) ( ) ( ) D D D D D D = D D D D D 8 9

44 . Encoding of Convolutional Codes Then, we can find a means of representing the code word v(d) directly in terms of the input sequences. A little algebraic manipulation yields where k () i ( n D = D ) g ( D) v u i= () ( n ) ( ) ( n ) n ( n ) ( n ) g D g D Dg D D g D, i k, i i i i is a composite generator polynomial relating the ith input sequence to v(d). i

45 Example.8. Encoding of Convolutional Codes For the previous (,, ) convolutional codes, the composite generator polynomial is g () ( ) ( ) ( ) D = g D Dg D = D D D D D D and for u(d)=d D D, the code word is ( D = D ) ( D) v u g ( 6 8) ( D D D D D D D D D ) = = D D D D D D D again agreeing with previous calculations. 5

46 . tructural Properties of Convolutional Codes ince a convolutional encoder is a sequential circuit, its operation can be described by a state diagram. The state of the encoder is defined as its shift register contents. For an (n, k, m) code with k >, the ith shift register contains K i previous information bits. k Defined K as the total encoder memory, the encoder i = K i state at time unit l is the binary K-tuple of inputs ( ( k ) ( k ) ( k ) u u u u u u u u u ) l l l K l l l K l l and there are a total K different possible states. l K k 6

47 . tructural Properties of Convolutional Codes For a (n,, m) code, K = K = m and the encoder state at time unit l is simply ( u ). l ul ul m Each new block of k inputs causes a transition to a new state. There are k branches leaving each state, one corresponding to each different input block. Note that for an (n,, m) code, there are only two branches leaving each state. Each branch is labeled with the k inputs causing the transition () ( k ) () ( n) u u and n corresponding outputs υ υ υ. ( u ) l l l The states are labeled,,, K-, where by convention i represents the state whose binary K-tuple representation b,b,,b K- is equivalent to the integer i b b b K = K 7 l l l

48 . tructural Properties of Convolutional Codes Assuming that the encoder is initially in state (all-zero state), the code word corresponding to any given information sequence can be obtained by following the path through the state diagram and noting the corresponding outputs on the branch labels. Following the last nonzero information block, the encoder is return to state by a sequence of m all-zero blocks appended to the information sequence. 8

49 . tructural Properties of Convolutional Codes Encoder state diagram of a (,, ) code If u = ( ), the code word v = (,,,,,,, ) 9

50 . tructural Properties of Convolutional Codes Encoder state diagram of a (,, ) code 5

51 . tructural Properties of Convolutional Codes The state diagram can be modified to provide a complete description of the Hamming weights of all nonzero code words (i.e. a weight distribution function for the code). tate is split into an initial state and a final state, the selfloop around state is deleted, and each branch is labeled with a branch gain i,where i is the weight of the n encoded bits on that branch. Each path connecting the initial state to the final state represents a nonzero code word that diverge from and remerge with state exactly 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 in the path gain. 5

52 . tructural Properties of Convolutional Codes Modified encoder state diagram of a (,, ) code. The path representing the sate sequence has path gain =. 5

53 . tructural Properties of Convolutional Codes Modified encoder state diagram of a (,, ) code. The path representing the sate sequence has path gain =. 5

54 . tructural Properties of Convolutional Codes The weight distribution function of a code can be determined by considering the modified state diagram as a signal flow graph and applying Mason s gain formula to compute its generating function T i ( ) = A i, where A i is the number of code words of weight i. i In a signal flow graph, a path connecting the initial state to the final state which does not go through any state twice is called a forward path. A closed path starting at any state and returning to that state without going through any other state twice is called a loop. 5

55 . tructural Properties of Convolutional Codes Let C i be the gain of the ith loop. A set of loops is nontouching if no state belongs to more than one loop in the set. Let {i} be the set of all loops, {i, j } be the set of all pairs of nontouching loops, {i, j, l } be the set of all triples of nontouching loops, and so on. Then define = C C C C C C, i ' ' '' '' '' i j i j l ' ' '' '' '' i i, j where C is the sum of the loop gains, C C i ' ' i jis the product of i ' ' i, j the loop gains of two nontouching loops summed over all pairs of nontouching loops, C '' C '' C '' i j l is the product of the loop gains of '' '' '' i, j, l three nontouching loops summed over all nontouching loops. i, j, l 55

56 . tructural Properties of Convolutional Codes And i is defined exactly like, but only for that portion of the graph not touching the ith forward path; that is, all states along the ith forward path, together with all branches connected to these states, are removed from the graph when computing i. Mason s formula for computing the generating function T() of a graph can now be states as T F i =, where the sum in the numerator is over all forward paths and F i is the gain of the ith forward path. i i 56

57 57. tructural Properties of Convolutional Codes C Loop C Loop C Loop C Loop C Loop C Loop C Loop C Loop C Loop C Loop C Loop = = = = = = = = = = = : : 9 : 8 : 7 : 6 : 5 : : : : : Example (,,) Code: There are loops in the modified encoder state diagram.

58 . tructural Properties of Convolutional Codes Example (,,) Code: (cont.) There are pairs of nontouching loops : Loop pair Loop pair Loop pair Loop pair Loop pair Loop pair Loop pair Loop pair Loop pair Loop pair : : : : 5 : 6 : 7 : 8 : 9 : : ( loop, loop 8) ( CC8 = ) ( loop, loop ) ( CC 8 = ) ( loop, loop 8) ( CC8 = ) ( loop, loop ) ( CC = ) ( loop 6, loop ) ( C6C 9 = ) ( loop 7, loop 9) ( C7C9 8 = ) ( loop 7, loop ) ( CC8 7 = ) ( loop, loop 8) ( C7C = ) ( loop 7, loop ) ( C7C = ) ( loop 8, loop ) ( C C = ) 58 8

59 . tructural Properties of Convolutional Codes Example (,,) Code : (cont.) There are two triples of nontouching loops : Loop triple Loop triple : : ( loop, loop 8, loop C ) C8C = ( 8 loop 7, loop, loop C C C = ) 7 There are no other sets of nontouching loops. Therefore, = ( ) ( ) ( 8 ) = 59

60 6. tructural Properties of Convolutional Codes Example (,,) Code : (cont.) There are seven forward paths in this state diagram :. path 7 : Foward path 6 : Foward path 5 : Foward path : Foward path : Foward path : Foward path : Foward F F F F F F F = = = = = = =

61 . tructural Properties of Convolutional Codes Example (,,) Code : (cont.) Forward paths and 5 touch all states in the graph, and hence the sub graph not touching these paths contains no states. Therefore, = 5 =. The subgraph not touching forward paths and 6: = 6 = - 6

62 . tructural Properties of Convolutional Codes Example (,,) Code : (cont.) The subgraph not touching forward path : = - The subgraph not touching forward path : = ( ) ( ) = 6

63 . tructural Properties of Convolutional Codes Example (,,) Code : (cont.) The subgraph not touching forward path 7: 7 = ( 5 ) ( 5 ) = 6

64 6. tructural Properties of Convolutional Codes Example (,,) Code : (cont.) The generating function for this graph is then given by T() provides a complete description of the weight distribution of all nonzero code words that diverge from and remerge with state exactly once. In this case, there is one such code word of weight 6, three of weight 7, five of weight 8, and so on. = = = T

65 65. tructural Properties of Convolutional Codes Example (,,) Code : (cont.) There are eight loops, six pairs of nontouching loops, and one triple of nontouching loops in the graph of previous modified encoder state diagrams : (,, ) code, and = =

66 66. tructural Properties of Convolutional Codes F i i i = = Example (,,) Code : (cont.) There are 5 forward path in this graph, and Hence, the generating function is This code contains two nonzero code word of weight, five of weight, fifteen of weight 5, and so on. = = T

67 . tructural Properties of Convolutional Codes Additional information about the structure of a code can be obtained using the same procedure. If the modified state diagram is augmented by labeling each branch corresponding to a nonzero information block with Y j, where j is the weight of the k information bits on the branch, and labeling every branch with Z, the generating function is given by T i j, Y, Z = A Y Z. i, j, l The coefficient A i,j,l denotes the number of code words with weight i, whose associated information sequence has weight j, and whose length is l branches. i, j, l l 67

68 . tructural Properties of Convolutional Codes The augment state diagram for the (,, ) codes. 68

69 69. tructural Properties of Convolutional Codes Example (,,) Code: For the graph of the augment state diagram for the (,, ) codes, we have: ) ( ) ( Z Y Z Y Z Y Z Z Y Z Y YZ Z Z Y Z Z Y Z Y Z Y Z Y Z Y Z Y Z Y Z Y Z Y Z Y Z Y Z Y Z Y YZ Z Y Z Y YZ YZ Z Y Z Y Z Y Z Y Z Y Z Y = =

70 7. tructural Properties of Convolutional Codes Example (,,) Code: (cont.) Hence the generating function is ) ( Z Y YZ Z Y Z Y YZ YZ YZ Z Y Z Y Z Y Z Z Y Z Y YZ Z Y YZ Z Y Z Y F i i i = = = = ,, Z Y Z Y Z Y Z Y Z Y Z Y YZ Z Y Z Y YZ Z Y Z Y T

71 . tructural Properties of Convolutional Codes Example (,,) Code: (cont.) This implies that the code word of weight 6 has length 5 branches and an information sequence of weight, one code word of weight 7 has length branches and information sequence weight, another has length 6 branches and information sequence weight, the third has length 7 branches and information sequence weight, and so on. 7

72 The Transfer Function of a Convolutional Code The state diagram can be used to obtain the distance property of a convolutional code. Without loss of generality, we assume that the all-zero code sequence is the input to the encoder. 7

73 The Transfer Function of a Convolutional Code First, we label the branches of the state diagram as either D =, D, D, or D, where the exponent of D denotes the Hamming distance between the sequence of output bits corresponding to each branch and the sequence of output bits corresponding to the all-zero branch. The self-loop at node a can be eliminated, since it contributes nothing to the distance properties of a code sequence relative to the all-zero code sequence. Furthermore, node a is split into two nodes, one of which represents the input and the other the output of the state diagram. 7

74 The Transfer Function of a Convolutional Code Use the modified state diagram, we can obtain four state equations: c = Da Db = D D b c d = D D d c d e = D b The transfer function for the code is defined as T(D)= e / a. By solving the state equations, we obtain: 6 D 6 8 d T D = = D D D 8D = a d D D a d = ( d 6) 7 ( even d) ( odd d) d = 6

75 The Transfer Function of a Convolutional Code The transfer function can be used to provide more detailed information than just the distance of the various paths. uppose we introduce a factor N into all branch transitions caused by the input bit. Furthermore, we introduce a factor of J into each branch of the state diagram so that the exponent of J will serve as a counting variable to indicate the number of branches in any given path from node a to node e. 75

76 The Transfer Function of a Convolutional Code The state equations for the state diagram are: c = JND a JND b = JD JD b c d = JND JND d c d e = JD b Upon solving these equations for the ratio e / a, we obtain the transfer function: 6 J ND T( D, N, J) = JND J 76 = J ND J N D J N D J N D J ND JND

77 The Transfer Function of a Convolutional Code The exponent of the factor J indicates the length of the path that merges with the all-zero path for the first time. The exponent of the factor N indicates the number of s in the information sequence for that path. The exponent of D indicates the distance of the sequence of encoded bits for that path from the all-zero sequence. Reference: John G. Proakis, Digital Communications, Fourth Edition, pp. 77 8, McGraw-Hill,. 77

78 . tructural Properties of Convolutional Codes An important subclass of convolutional codes is the class of systematic codes. In a systematic code, the first k output sequences are exact replicas of the k input sequences, i.e., v (i) = u (i), i =,,, k, and the generator sequences satisfy ( j ) if j = i gi =, i =,,...k, if j i 78

79 79. tructural Properties of Convolutional Codes The generator matrix is given by where I is the k k identity matrix, is the k k all-zero matrix, and P l is the k (n k) matrix = m m m m m m P P P P I P P P P I P P P P I G,,,,,,,,,, = n l k k l k k l k n l k l k l n l k l k l l g g g g g g g g g P

80 . tructural Properties of Convolutional Codes And the transfer matrix becomes ( k ) ( n g ) D g D ( k ) ( n g ) D g D G D = k n g k D g k D ince the first k output sequences equal the input sequences, they are called information sequences and the last n k output sequences are called parity sequences. Note that whereas in general k n generator sequences must be specified to define an (n, k, m) convolutional code, only k (n k) sequences must be specified to define a systematic code. ystematic codes represent a subclass of the set of all possible codes. 8

81 8. tructural Properties of Convolutional Codes Example (,,) Code: Consider the (,, ) systematic code. The generator sequences are g () =( ) and g () =( ). The generator matrix is = G The (,, ) systematic code.

82 . tructural Properties of Convolutional Codes Example (,,) Code: The transfer function matrix is g()=( ) and g()=( ). G(D) = [ D D ]. For an input sequence u(d) = D D, the information sequence is v () ( ) ( ) D = u D g D = D D = D D and the parity sequence is v ( ) ( ) ( )( D = u D g D = D D D D ) = D D 8 D D D 5 D 6

83 . tructural Properties of Convolutional Codes One advantage of systematic codes is that encoding is somewhat simpler than for nonsystematic codes because less hardware is required. For an (n, k, m) systematic code with k > n k, there exits a modified encoding circuit which normally requires fewer than K shift register states. The (,, ) systematic code requires only one modulo- adder with three inputs. 8

84 . tructural Properties of Convolutional Codes Example (,,) ystematic Code: Consider the (,, ) systematic code with transfer function matrix D D G( D) = D The straightforward realization of the encoder requires a total of K = K K = shift registers. 8

85 . tructural Properties of Convolutional Codes Example (,,) ystematic Code: ince the information sequences are given by v () (D) = u () (D) and v () (D) = u () (D), and the parity sequence is given by ( ) ( ) ( ) ( ) ( D = u D g D u D g ) ( D), v The (,, ) systematic encoder, and it requires only two stages of encoder memory rather than. 85

86 . tructural Properties of Convolutional Codes A complete discussion of the minimal encoder memory required to realize a convolutional code is given by Forney. In most cases the straightforward realization requiring K states of shift register memory is most efficient. In the case of an (n,k,m) systematic code with k>n-k, a simpler realization usually exists. Another advantage of systematic codes is that no inverting circuit is needed for recovering the information sequence from the code word. 86

87 . tructural Properties of Convolutional Codes Nonsystematic codes, on the other hand, require an inverter to recover the information sequence; that is, an n k matrix G - (D) must exit such that G(D)G - (D) = ID l for some l, where I is the k k identity matrix. ince V(D) = U(D)G(D), we can obtain V(D)G - (D) = U(D)G(D)G - (D) = U(D)D l, and the information sequence can be recovered with an l-timeunit delay from the code word by letting V(D) be the input to the n-input, k-output linear sequential circuit whose transfer function matrix is G - (D). 87

88 . tructural Properties of Convolutional Codes For an (n,, m) code, a transfer function matrix G(D) has a feedforward inverse G - (D) of delay l if and only if GCD[g () (D), g () (D),, g (n) (D)] = D l for some l, where GCD denotes the greatest common divisor. n For an (n, k, m) code with k >, let i ( D), i =,,,, k be the determinants of the n distinct k k submatrices of the k transfer function matrix G(D). A feedforward inverse of delay l exits if and only if for some l. GCD i ( D ) : i =,,, k n = D l 88

89 . tructural Properties of Convolutional Codes Example (,,) Code: For the (,, ) code, GCD D D, D D D = = D and the transfer function matrix D D G ( D) = D D provides the required inverse of delay [i.e., G(D)G (D) = ]. The implementation of the inverse is shown below 89

90 . tructural Properties of Convolutional Codes Example (,,) Code: For the (,, ) code, the submatrices of G(D) yield determinants D D, D, and. ince GCD D D, D, = there exists a feedforward inverse of delay. The required transfer function matrix is given by: G ( D) = D D 9

91 . tructural Properties of Convolutional Codes To understand what happens when a feedforward inverse does not exist, it is best to consider an example. For the (,, ) code with g () (D) = D and g () (D) = D, GCD D, D = D, and a feedforward inverse does not exist. If the information sequence is u(d) = /( D) = D D, the output sequences are v () (D) = and v () (D) = D; that is, the code word contains only three nonzero bits even though the information sequence has infinite weight. If this code word is transmitted over a BC, and the three nonzero bits are changed to zeros by the channel noise, the received sequence will be all zeros. 9

92 . tructural Properties of Convolutional Codes A MLD will then produce the all-zero code word as its estimated, since this is a valid code word and it agrees exactly with the received sequence. The estimated information sequence will be implying an infinite number of decoding errors u ( D caused ) =, by a finite number (only three in this case) of channel errors. Clearly, this is a very undesirable circumstance, and the code is said to be subject to catastrophic error propagation, and is called a catastrophic code. () ( ) ( n ) l GCD D, D,, ( D) and g g g = D GCD i ( D) l : i =,,..., n D are necessary and sufficient conditions k = for a code to be noncatastrophic. 9

93 . tructural Properties of Convolutional Codes Any code for which a feedforward inverse exists is noncatastrophic. Another advantage of systematic codes is that they are always noncatastrophic. A code is catastrophic if and only if the state diagram contains a loop of zero weight other than the self-loop around the state. Note that the self-loop around the state has zero weight. tate diagram of a (,, ) catastrophic code. 9

94 . tructural Properties of Convolutional Codes In choosing nonsystematic codes for use in a communication system, it is important to avoid the selection of catastrophic codes. Only a fraction /( n ) of (n,, m) nonsystematic codes are catastrophic. A similar result for (n, k, m) codes with k > is still lacking. 9

95 . Distance Properties of Convolutional Codes The performance of a convolutional code depends on the decoding algorithm employed and the distance properties of the code. The most important distance measure for convolutional codes is the minimum free distance d free, defined as { v v u u } dfree min d, :, where v and v are the code words corresponding to the information sequences u and u, respectively. In equation above, it is assumed that if u and u are of different lengths, zeros are added to the shorter sequence so that their corresponding code words have equal lengths. 95

96 . Distance Properties of Convolutional Codes d free is the minimum distance between any two code words in the code. ince a convolutional code is a linear code, ( v) u ( ug) u { w v v u u } dfree = min : { w } = min : { w } = min :, where v is the code word corresponding to the information sequence u. d free is the minimum-weight code word of any length produced by a nonzero information sequence. 96

97 Also, it is the minimum weight of all paths in the state diagram that diverge from and remerge with the all-zero state, and it is the lowest power of in the code-generating function T(). For example, d free = 6 for the (,, ) code of example.(a), and d free = for the (,, ) code of Example.(b). Another important distance measure for convolutional codes is the column distance function (CDF). Letting. Distance Properties of Convolutional Codes i i i [ ] ( n) ( n) ( n) v = v v v, v v v,, i v v v denote the ith truncation of the code word v, and i i i [ ] ( k) ( k) ( k) u = u u u, u u u,, i u u u denote the ith truncation of the code word u. 97

98 . Distance Properties of Convolutional Codes The column distance function of order i, d i, is defined as d { d( [ v ] [ v ] ) [ u ] [ u ] } min, :, i i i { w[ v] [ u] } = min : i where v is the code word corresponding to the information sequence u. d i is the minimum-weight code word over the first (i ) time units whose initial information block is nonzero. In terms of the generator matrix of the code, [ v] = [ u] [ G] i i i 98

99 [G] i is a k(i ) n(i ) submatrix of G with the form or [ G] i. Distance Properties of Convolutional Codes [ G] G G Gi = G Gi, i m, i G G G Gm Gm G Gm Gm Gm G m G Gm = G G G G m m, i > m. G G Gm G G G G G 99

100 Then d { ([ ] [ ] ) [ ] } i = min w u G : u i i is seen to depend only on the first n(i ) columns of G and this accounts for the name column distance function. The definition implies that d i cannot decrease with increasing i (i.e., it is a monotonically nondecreasing function of i). The complete CDF of the (,, 6) code with G ( D) = D D D D D D D. Distance Properties of Convolutional Codes, D D D D D D D D D D is shown in the figure of the following page.

101 . Distance Properties of Convolutional Codes Column distance function of a (,,6) code

102 . Distance Properties of Convolutional Codes Two cases are of specific interest: i = m and i. For i = m, d m is called the minimum distance of a convolutional code and will also be denoted d min. From the definition d i = min{w([u] i [G] i ):[u] }, we see that d min represents the minimum-weight code word over the first constraint length whose initial information block is nonzero. For the (,,6) convolutional code, d min = d 6 = 8. For i, lim i d i is the minimum-weight code word of any length whose first information block is nonzero. Comparing the definitions of lim i d i and d free, it can be shown that for noncatastrophic codes lim d i i = d free

103 . Distance Properties of Convolutional Codes d i eventually reaches d free and then increases no more. This usually happens within three to four constraint lengths (i.e., when i reaches m or m). Above equation is not necessarily true for catastrophic codes. Take as an example the (,,) catastrophic code whose state diagram is shown in Figure.. For this code, d = and d = d = = lim i d i =, since the truncated information sequence [u] i =(,,,, ) always produces the truncated code word [v] i =(,,,,, ), even in the limit as i. Note that all paths in the state diagram that diverge from and remerge with the all-zero state have weight at least, and d free =.

104 . Distance Properties of Convolutional Codes Hence, we have a situation in which lim i d i = d free =. It is characteristic of catastrophic codes that an infinite-weight information sequence produces a finite-weight code word. In some cases, as in the example above, this code word can have weight less than the free distance of the code. This is due to the zero weight loop in the state diagram. In other words, an information sequence that cycles around this zero weight loop forever will itself pick up infinite weight without adding to the weight of the code word.

105 . Distance Properties of Convolutional Codes In a noncatastrophic code, which contains no zero weight loop other than the self-loop around the all-zero state, all infiniteweight information sequences must generate infinite-weight code words, and the minimum-weight code word always has finite length. Unfortunately, the information sequence that produces the minimum-weight code word may be quite long in some cases, thereby causing the calculation of d free to be a rather formidable task. The best achievable d free for a convolutional code with a given rate and encoder memory has not been determined exactly. Upper and lower bound on d free for the best code have been obtained using a random coding approach. 5

106 . Distance Properties of Convolutional Codes A comparison of the bounds for nonsystematic codes with the bounds for systematic codes implies that more free distance is available with nonsystematic codes of a given rate and encoder memory than with systematic codes. This observation is verified by the code construction results presented in succeeding chapters, and has important consequences when a code with large d free must be selected for use with either Viterbi or sequential decoding. Heller (968) derived the upper bound on the minimum free distance of a rate /n convolutional code: l d free min K l n l l 6

107 Maximum Free Distance Codes Rate ½ 7

108 Maximum Free Distance Codes Rate / 8

109 Maximum Free Distance Codes Rate / 9

110 Maximum Free Distance Codes Rate /5

111 Maximum Free Distance Codes Rate /6

112 Maximum Free Distance Codes Rate /7

113 Maximum Free Distance Codes Rate /8

114 Rate / Maximum Free Distance Codes Rate k/5

115 Rate / and /8 Maximum Free Distance Codes Rate k/7 5

Example of Convolutional Codec

Example of Convolutional Codec Example of Convolutional Codec Convolutional Code tructure K k bits k k k n- n Output Convolutional codes Convoltuional Code k = number of bits shifted into the encoder at one time k= is usually used!!

More information

Introduction to Binary Convolutional Codes [1]

Introduction to Binary Convolutional Codes [1] Introduction to Binary Convolutional Codes [1] Yunghsiang S. Han Graduate Institute of Communication Engineering, National Taipei University Taiwan E-mail: yshan@mail.ntpu.edu.tw Y. S. Han Introduction

More information

Lecture 3 : Introduction to Binary Convolutional Codes

Lecture 3 : Introduction to Binary Convolutional Codes Lecture 3 : Introduction to Binary Convolutional Codes Binary Convolutional Codes 1. Convolutional codes were first introduced by Elias in 1955 as an alternative to block codes. In contrast with a block

More information

ELEC 405/511 Error Control Coding. Binary Convolutional Codes

ELEC 405/511 Error Control Coding. Binary Convolutional Codes ELEC 405/511 Error Control Coding Binary Convolutional Codes Peter Elias (1923-2001) Coding for Noisy Channels, 1955 2 With block codes, the input data is divided into blocks of length k and the codewords

More information

Convolutional Codes. Telecommunications Laboratory. Alex Balatsoukas-Stimming. Technical University of Crete. November 6th, 2008

Convolutional Codes. Telecommunications Laboratory. Alex Balatsoukas-Stimming. Technical University of Crete. November 6th, 2008 Convolutional Codes Telecommunications Laboratory Alex Balatsoukas-Stimming Technical University of Crete November 6th, 2008 Telecommunications Laboratory (TUC) Convolutional Codes November 6th, 2008 1

More information

Binary Convolutional Codes

Binary Convolutional Codes Binary Convolutional Codes A convolutional code has memory over a short block length. This memory results in encoded output symbols that depend not only on the present input, but also on past inputs. An

More information

Coding on a Trellis: Convolutional Codes

Coding on a Trellis: Convolutional Codes .... Coding on a Trellis: Convolutional Codes Telecommunications Laboratory Alex Balatsoukas-Stimming Technical University of Crete November 6th, 2008 Telecommunications Laboratory (TUC) Coding on a Trellis:

More information

Code design: Computer search

Code design: Computer search Code design: Computer search Low rate codes Represent the code by its generator matrix Find one representative for each equivalence class of codes Permutation equivalences? Do NOT try several generator

More information

NAME... Soc. Sec. #... Remote Location... (if on campus write campus) FINAL EXAM EE568 KUMAR. Sp ' 00

NAME... Soc. Sec. #... Remote Location... (if on campus write campus) FINAL EXAM EE568 KUMAR. Sp ' 00 NAME... Soc. Sec. #... Remote Location... (if on campus write campus) FINAL EXAM EE568 KUMAR Sp ' 00 May 3 OPEN BOOK exam (students are permitted to bring in textbooks, handwritten notes, lecture notes

More information

Introduction to Convolutional Codes, Part 1

Introduction to Convolutional Codes, Part 1 Introduction to Convolutional Codes, Part 1 Frans M.J. Willems, Eindhoven University of Technology September 29, 2009 Elias, Father of Coding Theory Textbook Encoder Encoder Properties Systematic Codes

More information

1 1 0, g Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g

1 1 0, g Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g Exercise Generator polynomials of a convolutional code, given in binary form, are g 0, g 2 0 ja g 3. a) Sketch the encoding circuit. b) Sketch the state diagram. c) Find the transfer function TD. d) What

More information

Convolutional Codes ddd, Houshou Chen. May 28, 2012

Convolutional Codes ddd, Houshou Chen. May 28, 2012 Representation I, II Representation III, IV trellis of Viterbi decoding Turbo codes Convolutional Codes ddd, Houshou Chen Department of Electrical Engineering National Chung Hsing University Taichung,

More information

Introduction to convolutional codes

Introduction to convolutional codes Chapter 9 Introduction to convolutional codes We now introduce binary linear convolutional codes, which like binary linear block codes are useful in the power-limited (low-snr, low-ρ) regime. In this chapter

More information

Chapter 5. Cyclic Codes

Chapter 5. Cyclic Codes Wireless Information Transmission System Lab. Chapter 5 Cyclic Codes Institute of Communications Engineering National Sun Yat-sen University Outlines Description of Cyclic Codes Generator and Parity-Check

More information

Chapter 7: Channel coding:convolutional codes

Chapter 7: Channel coding:convolutional codes Chapter 7: : Convolutional codes University of Limoges meghdadi@ensil.unilim.fr Reference : Digital communications by John Proakis; Wireless communication by Andreas Goldsmith Encoder representation Communication

More information

Cyclic codes: overview

Cyclic codes: overview Cyclic codes: overview EE 387, Notes 14, Handout #22 A linear block code is cyclic if the cyclic shift of a codeword is a codeword. Cyclic codes have many advantages. Elegant algebraic descriptions: c(x)

More information

Chapter 3 Linear Block Codes

Chapter 3 Linear Block Codes Wireless Information Transmission System Lab. Chapter 3 Linear Block Codes Institute of Communications Engineering National Sun Yat-sen University Outlines Introduction to linear block codes Syndrome and

More information

Lecture 4: Linear Codes. Copyright G. Caire 88

Lecture 4: Linear Codes. Copyright G. Caire 88 Lecture 4: Linear Codes Copyright G. Caire 88 Linear codes over F q We let X = F q for some prime power q. Most important case: q =2(binary codes). Without loss of generality, we may represent the information

More information

Some Easily Decoded, Efficient, Burst Error Correcting Block Codes

Some Easily Decoded, Efficient, Burst Error Correcting Block Codes INFORMATION AND CONTROL 23, 234--244 (1973) Some Easily Decoded, Efficient, Burst Error Correcting Block Codes DAVID MANDELBAUM P.O. Box 645, Eatontown, New Jersey 07724 Single phased burst correcting

More information

Modular numbers and Error Correcting Codes. Introduction. Modular Arithmetic.

Modular numbers and Error Correcting Codes. Introduction. Modular Arithmetic. Modular numbers and Error Correcting Codes Introduction Modular Arithmetic Finite fields n-space over a finite field Error correcting codes Exercises Introduction. Data transmission is not normally perfect;

More information

Lecture 12. Block Diagram

Lecture 12. Block Diagram Lecture 12 Goals Be able to encode using a linear block code Be able to decode a linear block code received over a binary symmetric channel or an additive white Gaussian channel XII-1 Block Diagram Data

More information

Convolutional Coding LECTURE Overview

Convolutional Coding LECTURE Overview MIT 6.02 DRAFT Lecture Notes Spring 2010 (Last update: March 6, 2010) Comments, questions or bug reports? Please contact 6.02-staff@mit.edu LECTURE 8 Convolutional Coding This lecture introduces a powerful

More information

Combinational Logic. By : Ali Mustafa

Combinational Logic. By : Ali Mustafa Combinational Logic By : Ali Mustafa Contents Adder Subtractor Multiplier Comparator Decoder Encoder Multiplexer How to Analyze any combinational circuit like this? Analysis Procedure To obtain the output

More information

Physical Layer and Coding

Physical Layer and Coding Physical Layer and Coding Muriel Médard Professor EECS Overview A variety of physical media: copper, free space, optical fiber Unified way of addressing signals at the input and the output of these media:

More information

MATH3302. Coding and Cryptography. Coding Theory

MATH3302. Coding and Cryptography. Coding Theory MATH3302 Coding and Cryptography Coding Theory 2010 Contents 1 Introduction to coding theory 2 1.1 Introduction.......................................... 2 1.2 Basic definitions and assumptions..............................

More information

Appendix D: Basics of convolutional codes

Appendix D: Basics of convolutional codes Appendix D: Basics of convolutional codes Convolutional encoder: In convolutional code (B. P. Lathi, 2009; S. G. Wilson, 1996; E. Biglieri, 2005; T. Oberg, 2001), the block of n code bits generated by

More information

Logic. Combinational. inputs. outputs. the result. system can

Logic. Combinational. inputs. outputs. the result. system can Digital Electronics Combinational Logic Functions Digital logic circuits can be classified as either combinational or sequential circuits. A combinational circuit is one where the output at any time depends

More information

Contents. A Finite-Field Algebra Review 254 A.1 Groups, Rings, and Fields

Contents. A Finite-Field Algebra Review 254 A.1 Groups, Rings, and Fields Contents 10 System Design with Codes 147 10.1 Convolutional Codes and Implementation........................... 148 10.1.1 Notation and Terminology................................ 148 10.1.2 The Convolutional

More information

On Weight Enumerators and MacWilliams Identity for Convolutional Codes

On Weight Enumerators and MacWilliams Identity for Convolutional Codes On Weight Enumerators and MacWilliams Identity for Convolutional Codes Irina E Bocharova 1, Florian Hug, Rolf Johannesson, and Boris D Kudryashov 1 1 Dept of Information Systems St Petersburg Univ of Information

More information

Chapter 2. Error Correcting Codes. 2.1 Basic Notions

Chapter 2. Error Correcting Codes. 2.1 Basic Notions Chapter 2 Error Correcting Codes The identification number schemes we discussed in the previous chapter give us the ability to determine if an error has been made in recording or transmitting information.

More information

SIPCom8-1: Information Theory and Coding Linear Binary Codes Ingmar Land

SIPCom8-1: Information Theory and Coding Linear Binary Codes Ingmar Land SIPCom8-1: Information Theory and Coding Linear Binary Codes Ingmar Land Ingmar Land, SIPCom8-1: Information Theory and Coding (2005 Spring) p.1 Overview Basic Concepts of Channel Coding Block Codes I:

More information

Communications II Lecture 9: Error Correction Coding. Professor Kin K. Leung EEE and Computing Departments Imperial College London Copyright reserved

Communications II Lecture 9: Error Correction Coding. Professor Kin K. Leung EEE and Computing Departments Imperial College London Copyright reserved Communications II Lecture 9: Error Correction Coding Professor Kin K. Leung EEE and Computing Departments Imperial College London Copyright reserved Outline Introduction Linear block codes Decoding Hamming

More information

Binary Convolutional Codes of High Rate Øyvind Ytrehus

Binary Convolutional Codes of High Rate Øyvind Ytrehus Binary Convolutional Codes of High Rate Øyvind Ytrehus Abstract The function N(r; ; d free ), defined as the maximum n such that there exists a binary convolutional code of block length n, dimension n

More information

Introduction to Wireless & Mobile Systems. Chapter 4. Channel Coding and Error Control Cengage Learning Engineering. All Rights Reserved.

Introduction to Wireless & Mobile Systems. Chapter 4. Channel Coding and Error Control Cengage Learning Engineering. All Rights Reserved. Introduction to Wireless & Mobile Systems Chapter 4 Channel Coding and Error Control 1 Outline Introduction Block Codes Cyclic Codes CRC (Cyclic Redundancy Check) Convolutional Codes Interleaving Information

More information

Trellis Coded Modulation

Trellis Coded Modulation Trellis Coded Modulation Trellis coded modulation (TCM) is a marriage between codes that live on trellises and signal designs We have already seen that trellises are the preferred way to view convolutional

More information

UNIT II COMBINATIONAL CIRCUITS:

UNIT II COMBINATIONAL CIRCUITS: UNIT II COMBINATIONAL CIRCUITS: INTRODUCTION: The digital system consists of two types of circuits, namely (i) (ii) Combinational circuits Sequential circuits Combinational circuit consists of logic gates

More information

Information redundancy

Information redundancy Information redundancy Information redundancy add information to date to tolerate faults error detecting codes error correcting codes data applications communication memory p. 2 - Design of Fault Tolerant

More information

Punctured Convolutional Codes Revisited: the Exact State Diagram and Its Implications

Punctured Convolutional Codes Revisited: the Exact State Diagram and Its Implications Punctured Convolutional Codes Revisited: the Exact State iagram and Its Implications Jing Li Tiffany) Erozan Kurtas epartment of Electrical and Computer Engineering Seagate Research Lehigh University Bethlehem

More information

Communication Theory II

Communication Theory II Communication Theory II Lecture 24: Error Correction Techniques Ahmed Elnakib, PhD Assistant Professor, Mansoura University, Egypt May 14 th, 2015 1 Error Correction Techniques olinear Block Code Cyclic

More information

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering TIMING ANALYSIS Overview Circuits do not respond instantaneously to input changes

More information

Introduction to Matrices and Linear Systems Ch. 3

Introduction to Matrices and Linear Systems Ch. 3 Introduction to Matrices and Linear Systems Ch. 3 Doreen De Leon Department of Mathematics, California State University, Fresno June, 5 Basic Matrix Concepts and Operations Section 3.4. Basic Matrix Concepts

More information

MODULAR CIRCUITS CHAPTER 7

MODULAR CIRCUITS CHAPTER 7 CHAPTER 7 MODULAR CIRCUITS A modular circuit is a digital circuit that performs a specific function or has certain usage. The modular circuits to be introduced in this chapter are decoders, encoders, multiplexers,

More information

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix Algebra & Trig. I 8.1 Matrix Solutions to Linear Systems A matrix is a rectangular array of elements. o An array is a systematic arrangement of numbers or symbols in rows and columns. Matrices (the plural

More information

Minimal-span bases, linear system theory, and the invariant factor theorem

Minimal-span bases, linear system theory, and the invariant factor theorem Minimal-span bases, linear system theory, and the invariant factor theorem G. David Forney, Jr. MIT Cambridge MA 02139 USA DIMACS Workshop on Algebraic Coding Theory and Information Theory DIMACS Center,

More information

Linear Codes and Syndrome Decoding

Linear Codes and Syndrome Decoding Linear Codes and Syndrome Decoding These notes are intended to be used as supplementary reading to Sections 6.7 9 of Grimaldi s Discrete and Combinatorial Mathematics. The proofs of the theorems are left

More information

4 An Introduction to Channel Coding and Decoding over BSC

4 An Introduction to Channel Coding and Decoding over BSC 4 An Introduction to Channel Coding and Decoding over BSC 4.1. Recall that channel coding introduces, in a controlled manner, some redundancy in the (binary information sequence that can be used at the

More information

New Trellis Codes Based on Lattices and Cosets *

New Trellis Codes Based on Lattices and Cosets * New Trellis Codes Based on Lattices and Cosets * A. R. Calderbank and N. J. A. Sloane Mathematical Sciences Research Center AT&T Bell Laboratories Murray Hill, NJ 07974 ABSTRACT A new technique is proposed

More information

Decoding the Tail-Biting Convolutional Codes with Pre-Decoding Circular Shift

Decoding the Tail-Biting Convolutional Codes with Pre-Decoding Circular Shift Decoding the Tail-Biting Convolutional Codes with Pre-Decoding Circular Shift Ching-Yao Su Directed by: Prof. Po-Ning Chen Department of Communications Engineering, National Chiao-Tung University July

More information

Chapter 6. BCH Codes

Chapter 6. BCH Codes Chapter 6 BCH Codes Description of the Codes Decoding of the BCH Codes Outline Implementation of Galois Field Arithmetic Implementation of Error Correction Nonbinary BCH Codes and Reed-Solomon Codes Weight

More information

Höst, Stefan; Johannesson, Rolf; Zigangirov, Kamil; Zyablov, Viktor V.

Höst, Stefan; Johannesson, Rolf; Zigangirov, Kamil; Zyablov, Viktor V. Active distances for convolutional codes Höst, Stefan; Johannesson, Rolf; Zigangirov, Kamil; Zyablov, Viktor V Published in: IEEE Transactions on Information Theory DOI: 101109/18749009 Published: 1999-01-01

More information

Sample Test Paper - I

Sample Test Paper - I Scheme G Sample Test Paper - I Course Name : Computer Engineering Group Marks : 25 Hours: 1 Hrs. Q.1) Attempt any THREE: 09 Marks a) Define i) Propagation delay ii) Fan-in iii) Fan-out b) Convert the following:

More information

Solutions or answers to Final exam in Error Control Coding, October 24, G eqv = ( 1+D, 1+D + D 2)

Solutions or answers to Final exam in Error Control Coding, October 24, G eqv = ( 1+D, 1+D + D 2) Solutions or answers to Final exam in Error Control Coding, October, Solution to Problem a) G(D) = ( +D, +D + D ) b) The rate R =/ and ν i = ν = m =. c) Yes, since gcd ( +D, +D + D ) =+D + D D j. d) An

More information

Can You Hear Me Now?

Can You Hear Me Now? Can You Hear Me Now? An Introduction to Coding Theory William J. Turner Department of Mathematics & Computer Science Wabash College Crawfordsville, IN 47933 19 October 2004 W. J. Turner (Wabash College)

More information

Ma/CS 6b Class 25: Error Correcting Codes 2

Ma/CS 6b Class 25: Error Correcting Codes 2 Ma/CS 6b Class 25: Error Correcting Codes 2 By Adam Sheffer Recall: Codes V n the set of binary sequences of length n. For example, V 3 = 000,001,010,011,100,101,110,111. Codes of length n are subsets

More information

Chapter 7. Error Control Coding. 7.1 Historical background. Mikael Olofsson 2005

Chapter 7. Error Control Coding. 7.1 Historical background. Mikael Olofsson 2005 Chapter 7 Error Control Coding Mikael Olofsson 2005 We have seen in Chapters 4 through 6 how digital modulation can be used to control error probabilities. This gives us a digital channel that in each

More information

Data Detection for Controlled ISI. h(nt) = 1 for n=0,1 and zero otherwise.

Data Detection for Controlled ISI. h(nt) = 1 for n=0,1 and zero otherwise. Data Detection for Controlled ISI *Symbol by symbol suboptimum detection For the duobinary signal pulse h(nt) = 1 for n=0,1 and zero otherwise. The samples at the output of the receiving filter(demodulator)

More information

On the exact bit error probability for Viterbi decoding of convolutional codes

On the exact bit error probability for Viterbi decoding of convolutional codes On the exact bit error probability for Viterbi decoding of convolutional codes Irina E. Bocharova, Florian Hug, Rolf Johannesson, and Boris D. Kudryashov Dept. of Information Systems Dept. of Electrical

More information

Error Correction and Trellis Coding

Error Correction and Trellis Coding Advanced Signal Processing Winter Term 2001/2002 Digital Subscriber Lines (xdsl): Broadband Communication over Twisted Wire Pairs Error Correction and Trellis Coding Thomas Brandtner brandt@sbox.tugraz.at

More information

The Maximum-Likelihood Soft-Decision Sequential Decoding Algorithms for Convolutional Codes

The Maximum-Likelihood Soft-Decision Sequential Decoding Algorithms for Convolutional Codes The Maximum-Likelihood Soft-Decision Sequential Decoding Algorithms for Convolutional Codes Prepared by Hong-Bin Wu Directed by Prof. Po-Ning Chen In Partial Fulfillment of the Requirements For the Degree

More information

Advanced Boolean Logic and Applications to Control Systems

Advanced Boolean Logic and Applications to Control Systems Advanced Boolean Logic and Applications to Control Systems Course No: E0-0 Credit: PDH Jeffrey Cwalinski, P.E. Continuing Education and Development, Inc. 9 Greyridge Farm Court Stony Point, NY 0980 P:

More information

Chapter 3 Combinational Logic Design

Chapter 3 Combinational Logic Design Logic and Computer Design Fundamentals Chapter 3 Combinational Logic Design Part 2 Combinational Logic Charles Kime & Thomas Kaminski 28 Pearson Education, Inc. (Hyperlinks are active in View Show mode)

More information

1.6: Solutions 17. Solution to exercise 1.6 (p.13).

1.6: Solutions 17. Solution to exercise 1.6 (p.13). 1.6: Solutions 17 A slightly more careful answer (short of explicit computation) goes as follows. Taking the approximation for ( N K) to the next order, we find: ( N N/2 ) 2 N 1 2πN/4. (1.40) This approximation

More information

University of Toronto Faculty of Applied Science and Engineering Final Examination

University of Toronto Faculty of Applied Science and Engineering Final Examination University of Toronto Faculty of Applied Science and Engineering Final Examination ECE 24S - Digital Systems Examiner: Belinda Wang, Jianwen Zhu 2: - 4:3pm, April 26th, 24 Duration: 5 minutes (2.5 hours)

More information

Fault Tolerance & Reliability CDA Chapter 2 Cyclic Polynomial Codes

Fault Tolerance & Reliability CDA Chapter 2 Cyclic Polynomial Codes Fault Tolerance & Reliability CDA 5140 Chapter 2 Cyclic Polynomial Codes - cylic code: special type of parity check code such that every cyclic shift of codeword is a codeword - for example, if (c n-1,

More information

Logic and Boolean algebra

Logic and Boolean algebra Computer Mathematics Week 7 Logic and Boolean algebra College of Information Science and Engineering Ritsumeikan University last week coding theory channel coding information theory concept Hamming distance

More information

EE 229B ERROR CONTROL CODING Spring 2005

EE 229B ERROR CONTROL CODING Spring 2005 EE 229B ERROR CONTROL CODING Spring 2005 Solutions for Homework 1 1. Is there room? Prove or disprove : There is a (12,7) binary linear code with d min = 5. If there were a (12,7) binary linear code with

More information

Some Extended Results on the Search for Good Convolutional Codes

Some Extended Results on the Search for Good Convolutional Codes 1682 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL 43, NO 5, SEPTEMBER 1997 Some Extended Results on the Search for Good Convolutional Codes Jinn-Ja Chang, Member, IEEE, Der-June Hwang, and Mao-Chao Lin,

More information

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture) COSC 243 Introduction to Logic And Combinatorial Logic 1 Overview This Lecture Introduction to Digital Logic Gates Boolean algebra Combinatorial Logic Source: Chapter 11 (10 th edition) Source: J.R. Gregg,

More information

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS 1) Given the two binary numbers X = 1010100 and Y = 1000011, perform the subtraction (a) X -Y and (b) Y - X using 2's complements. a) X = 1010100

More information

MATH 433 Applied Algebra Lecture 22: Review for Exam 2.

MATH 433 Applied Algebra Lecture 22: Review for Exam 2. MATH 433 Applied Algebra Lecture 22: Review for Exam 2. Topics for Exam 2 Permutations Cycles, transpositions Cycle decomposition of a permutation Order of a permutation Sign of a permutation Symmetric

More information

The Viterbi Algorithm EECS 869: Error Control Coding Fall 2009

The Viterbi Algorithm EECS 869: Error Control Coding Fall 2009 1 Bacground Material 1.1 Organization of the Trellis The Viterbi Algorithm EECS 869: Error Control Coding Fall 2009 The Viterbi algorithm (VA) processes the (noisy) output sequence from a state machine

More information

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr. Chapter 4 Dr. Panos Nasiopoulos Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. Sequential: In addition, they include storage elements Combinational

More information

Class Website:

Class Website: ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #5 Instructor: Andrew B. Kahng (lecture) Email: abk@ece.ucsd.edu Telephone: 858-822-4884 office, 858-353-0550 cell Office:

More information

Fully-parallel linear error block coding and decoding a Boolean approach

Fully-parallel linear error block coding and decoding a Boolean approach Fully-parallel linear error block coding and decoding a Boolean approach Hermann Meuth, Hochschule Darmstadt Katrin Tschirpke, Hochschule Aschaffenburg 8th International Workshop on Boolean Problems, 28

More information

3. Coding theory 3.1. Basic concepts

3. Coding theory 3.1. Basic concepts 3. CODING THEORY 1 3. Coding theory 3.1. Basic concepts In this chapter we will discuss briefly some aspects of error correcting codes. The main problem is that if information is sent via a noisy channel,

More information

Channel Coding and Interleaving

Channel Coding and Interleaving Lecture 6 Channel Coding and Interleaving 1 LORA: Future by Lund www.futurebylund.se The network will be free for those who want to try their products, services and solutions in a precommercial stage.

More information

Structured Low-Density Parity-Check Codes: Algebraic Constructions

Structured Low-Density Parity-Check Codes: Algebraic Constructions Structured Low-Density Parity-Check Codes: Algebraic Constructions Shu Lin Department of Electrical and Computer Engineering University of California, Davis Davis, California 95616 Email:shulin@ece.ucdavis.edu

More information

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks ECE 545 Digital System Design with VHDL Lecture Digital Logic Refresher Part A Combinational Logic Building Blocks Lecture Roadmap Combinational Logic Basic Logic Review Basic Gates De Morgan s Law Combinational

More information

Digital Communication Systems ECS 452. Asst. Prof. Dr. Prapun Suksompong 5.2 Binary Convolutional Codes

Digital Communication Systems ECS 452. Asst. Prof. Dr. Prapun Suksompong 5.2 Binary Convolutional Codes Digital Communication Systems ECS 452 Asst. Prof. Dr. Prapun Suksompong prapun@siit.tu.ac.th 5.2 Binary Convolutional Codes 35 Binary Convolutional Codes Introduced by Elias in 1955 There, it is referred

More information

Quasi-cyclic Low Density Parity Check codes with high girth

Quasi-cyclic Low Density Parity Check codes with high girth Quasi-cyclic Low Density Parity Check codes with high girth, a work with Marta Rossi, Richard Bresnan, Massimilliano Sala Summer Doctoral School 2009 Groebner bases, Geometric codes and Order Domains Dept

More information

ELEC 519A Selected Topics in Digital Communications: Information Theory. Hamming Codes and Bounds on Codes

ELEC 519A Selected Topics in Digital Communications: Information Theory. Hamming Codes and Bounds on Codes ELEC 519A Selected Topics in Digital Communications: Information Theory Hamming Codes and Bounds on Codes Single Error Correcting Codes 2 Hamming Codes (7,4,3) Hamming code 1 0 0 0 0 1 1 0 1 0 0 1 0 1

More information

Codes on graphs. Chapter Elementary realizations of linear block codes

Codes on graphs. Chapter Elementary realizations of linear block codes Chapter 11 Codes on graphs In this chapter we will introduce the subject of codes on graphs. This subject forms an intellectual foundation for all known classes of capacity-approaching codes, including

More information

3. Combinational Circuit Design

3. Combinational Circuit Design CSEE 3827: Fundamentals of Computer Systems, Spring 2 3. Combinational Circuit Design Prof. Martha Kim (martha@cs.columbia.edu) Web: http://www.cs.columbia.edu/~martha/courses/3827/sp/ Outline (H&H 2.8,

More information

PAijpam.eu CONVOLUTIONAL CODES DERIVED FROM MELAS CODES

PAijpam.eu CONVOLUTIONAL CODES DERIVED FROM MELAS CODES International Journal of Pure and Applied Mathematics Volume 85 No. 6 013, 1001-1008 ISSN: 1311-8080 (printed version); ISSN: 1314-3395 (on-line version) url: http://www.ijpam.eu doi: http://dx.doi.org/10.173/ijpam.v85i6.3

More information

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function Question Paper Digital Electronics (EE-204-F) MDU Examination May 2015 1. (a) represent (32)10 in (i) BCD 8421 code (ii) Excess-3 code (iii) ASCII code (b) Design half adder using only NAND gates. ( c)

More information

Asymptotically Good Convolutional Codes with Feedback Encoders. Peter J. Sallaway OCT

Asymptotically Good Convolutional Codes with Feedback Encoders. Peter J. Sallaway OCT Asymptotically Good Convolutional Codes with Feedback Encoders by Peter J. Sallaway Submitted to the Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements

More information

Combinational Logic Design Combinational Functions and Circuits

Combinational Logic Design Combinational Functions and Circuits Combinational Logic Design Combinational Functions and Circuits Overview Combinational Circuits Design Procedure Generic Example Example with don t cares: BCD-to-SevenSegment converter Binary Decoders

More information

Linear equations The first case of a linear equation you learn is in one variable, for instance:

Linear equations The first case of a linear equation you learn is in one variable, for instance: Math 52 0 - Linear algebra, Spring Semester 2012-2013 Dan Abramovich Linear equations The first case of a linear equation you learn is in one variable, for instance: 2x = 5. We learned in school that this

More information

Algebra for error control codes

Algebra for error control codes Algebra for error control codes EE 387, Notes 5, Handout #7 EE 387 concentrates on block codes that are linear: Codewords components are linear combinations of message symbols. g 11 g 12 g 1n g 21 g 22

More information

CHAPTER 7. Exercises 17/ / /2 2 0

CHAPTER 7. Exercises 17/ / /2 2 0 CHAPTER 7 Exercises E7. (a) For the whole part, we have: Quotient Remainders 23/2 /2 5 5/2 2 2/2 0 /2 0 Reading the remainders in reverse order, we obtain: 23 0 = 0 2 For the fractional part we have 2

More information

MATH3302 Coding Theory Problem Set The following ISBN was received with a smudge. What is the missing digit? x9139 9

MATH3302 Coding Theory Problem Set The following ISBN was received with a smudge. What is the missing digit? x9139 9 Problem Set 1 These questions are based on the material in Section 1: Introduction to coding theory. You do not need to submit your answers to any of these questions. 1. The following ISBN was received

More information

CODE DECOMPOSITION IN THE ANALYSIS OF A CONVOLUTIONAL CODE

CODE DECOMPOSITION IN THE ANALYSIS OF A CONVOLUTIONAL CODE Bol. Soc. Esp. Mat. Apl. n o 42(2008), 183 193 CODE DECOMPOSITION IN THE ANALYSIS OF A CONVOLUTIONAL CODE E. FORNASINI, R. PINTO Department of Information Engineering, University of Padua, 35131 Padova,

More information

Multimedia Systems WS 2010/2011

Multimedia Systems WS 2010/2011 Multimedia Systems WS 2010/2011 15.11.2010 M. Rahamatullah Khondoker (Room # 36/410 ) University of Kaiserslautern Department of Computer Science Integrated Communication Systems ICSY http://www.icsy.de

More information

Chapter 7 Network Flow Problems, I

Chapter 7 Network Flow Problems, I Chapter 7 Network Flow Problems, I Network flow problems are the most frequently solved linear programming problems. They include as special cases, the assignment, transportation, maximum flow, and shortest

More information

g(x) = 1 1 x = 1 + x + x2 + x 3 + is not a polynomial, since it doesn t have finite degree. g(x) is an example of a power series.

g(x) = 1 1 x = 1 + x + x2 + x 3 + is not a polynomial, since it doesn t have finite degree. g(x) is an example of a power series. 6 Polynomial Rings We introduce a class of rings called the polynomial rings, describing computation, factorization and divisibility in such rings For the case where the coefficients come from an integral

More information

IEEE Working Group on Mobile Broadband Wireless Access. <http://grouper.ieee.org/groups/802/20/>

IEEE Working Group on Mobile Broadband Wireless Access. <http://grouper.ieee.org/groups/802/20/> C802.20-07/35 Project IEEE 802.20 Working Group on Mobile Broadband Wireless Access Title Date Submitted Practice letter ballot 2 comment LDPC harmonized text from

More information

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Contents. Chapter 3 Combinational Circuits Page 1 of 36 Chapter 3 Combinational Circuits Page of 36 Contents Combinational Circuits...2 3. Analysis of Combinational Circuits...3 3.. Using a Truth Table...3 3..2 Using a Boolean Function...6 3.2 Synthesis of

More information

Characterization of 2 n -Periodic Binary Sequences with Fixed 2-error or 3-error Linear Complexity

Characterization of 2 n -Periodic Binary Sequences with Fixed 2-error or 3-error Linear Complexity Characterization of n -Periodic Binary Sequences with Fixed -error or 3-error Linear Complexity Ramakanth Kavuluru Department of Computer Science, University of Kentucky, Lexington, KY 40506, USA. Abstract

More information

Cyclic Redundancy Check Codes

Cyclic Redundancy Check Codes Cyclic Redundancy Check Codes Lectures No. 17 and 18 Dr. Aoife Moloney School of Electronics and Communications Dublin Institute of Technology Overview These lectures will look at the following: Cyclic

More information

An Introduction to Low Density Parity Check (LDPC) Codes

An Introduction to Low Density Parity Check (LDPC) Codes An Introduction to Low Density Parity Check (LDPC) Codes Jian Sun jian@csee.wvu.edu Wireless Communication Research Laboratory Lane Dept. of Comp. Sci. and Elec. Engr. West Virginia University June 3,

More information