Implementation of Galois Field Arithmetic. Nonbinary BCH Codes and Reed-Solomon Codes

Size: px
Start display at page:

Download "Implementation of Galois Field Arithmetic. Nonbinary BCH Codes and Reed-Solomon Codes"

Transcription

1 BCH Codes Wireless Information Transmission System Lab Institute of Communications Engineering g National Sun Yat-sen University

2 Outline Binary Primitive BCH Codes Decoding of the BCH Codes Implementation of Galois Field Arithmetic Implementation of Error Correction Nonbinary BCH Codes and Reed-Solomon Codes

3 Preface The Bose, Chaudhuri, and Hocquenghem (BCH codes form a large class of powerful random error-correcting cyclic codes This class of codes is a remarkable generalization of the Hamming codes for multiple-error correction Binary BCH codes were discovered by Hocquenghem in 959 and independently by Bose and Chaudhuri in 960 Generalization of the binary BCH codes to codes in p m symbols (where p is a prime was obtained by Gorenstein and Zierler Among the nonbinary BCH codes, the most important subclass is the class of Reed-Solomon (RS codes Among all the decoding algorithms for BCH codes, Berlekamp s iterative algorithm, and Chien s search algorithm are the most efficient i ones

4 Description of the BCH Codes Wireless Information Transmission System Lab Institute of Communications Engineering g National Sun Yat-sen University

5 Binary Primitive BCH Codes m integer m, t <, a binary BCH codes with m n = Block length n k mt Number of parity-check digits dmin t Minimum distance Clearly, this code is capable of correcting any combination of t or fewer errors in a block of n = m digits We call this code a t-error-correcting BCH code The generator polynomial of this code is specified in terms of its roots from the Galois field GF( m m Let be a primitive element of GF( The generator poly g(x of the t-error-correcting BCH code of length m is the lowestdegree poly over GF( which has t as its roots 5

6 Binary Primitive BCH Codes t It follows from Theorem that g(x has,,, and their i conjugates as all its roots Let φi (x be the minimal poly of Then g(x must be the least common multiple (LCM of x, φ ( x,, φ (, that is, φ ( t x { φ φ φ } gx ( = LCM ( x, ( x, ( x t If i is an even integer, it can be expressed as a product of the following form : l i = i', ' l i i where i is an odd number and l Then = ( is a conjugate ' i i of and therefore and i have the same minimal poly, that is, φ ( x = φ ( x i i 6

7 Binary Primitive BCH Codes Hence, even power of has the same minimal poly as some preceding odd power of deg [ φ ( ] deg [ g( ] { } gx ( = LCM φ( x, φ( x, φt ( x i x m (Theorem 8 & 9 g x mt n k mt The BCH codes defined above are usually called primitive (or narrow-sense BCH codes 7

8 Binary Primitive BCH Codes The single-error-correcting BCH codes of length m is generated by gx ( = φ ( x since t = m is a primitive element of GF( φ ( is a primitive poly of degree x m 0 m (,,, = the single-error-correcting BCH codes of length Hamming code Ex 6 m is a 4 is a primitive element of GF( given by Table 8 such that 4 = 0 The minimal polynomials of,, 5 are 8

9 Binary Primitive BCH Codes φ ( x = x x 4 4 φ ( x = x x x x φ ( x = 5 x x 5 The double-error-correcting BCH code of length n= 4 = 5 is generated by g( x = LCM{ φ( x, φ( x} Since φ x and φ ( are two distinct irreducible polynomials, ( x g( x = ( x x = x 4 x 4 6 ( x x (5,7 cyclic code with d 5 x 7 x 8 min W ( g ( x = 5 d = 5 min x x 4 9

10 Binary Primitive BCH Codes The triple-error-correcting BCH code of length 5 is generated by gx ( = LCM φ ( x, φ ( x, φ ( x = { } 5 = 4 4 ( x x ( x x x x ( x x = x x x x x x It s a (5,5 cyclic code with d 7Since W( g( x = 7, dmin min = 7 Let vx ( v0 vx v n n x be a poly t t = with v GF( If v( x has roots,,,, then v( x is divisible by φ ( x, φ ( x,, φ ( x (Theorem 4 t i v(x is a code poly because ( x g( x = LCM{ φ ( x, φ ( x,, φ ( } v t x 0

11 Binary Primitive BCH Codes We have a new definition for t-error-correcting BCH code: Abinaryn-tuple n v = ( v 0, v, v,, v n is a code word if and only if the poly ( ie v( i = v i i v v v n i 0 n = 0 i v, v, v,, v n = 0 for i ( n i ( 0 t

12 Binary Primitive BCH Codes Binary Primitive BCH Codes Let n ( ( n = H If v is a code word in the t error correcting BCH code ( ( n t t If v is a code word in the t-error-correcting BCH code, then 0 H v = T The code is the null space of the matrix H and H is the parity check matrix of the code 0 H v parity-check matrix of the code

13 Binary Primitive BCH Codes j i j i is a conjugate of, then v( = 0 iff v( = 0 j-th row of H can be omitted As a result H can be reduced to the following form : H n ( ( n = (t t t n ( ( (Thm 只剩下奇數的 Row EX 6 double-error-correcting BCH code of length n = 4 = 5, (5,7 4 code Let be a primitive element in GF(

14 Binary Primitive BCH Codes The parity-check matrix is (Note that the parity check matrix is not binary anymore 4 = H 6 4 Using 5 =, and representing each entry of H by its 4-tuple, H =

15 Binary Primitive BCH Codes FACT: The t-error-correcting BCH code indeed has dmin t (pf: Suppose v 0 such that W(v = δ t Let v, v, v be the nonzero components of v (ie all ones j j jδδ p ( ( T ( ( 0 = vh = ( vjvj vj δ ( ( j j t j j j t j jδ jδ t jδ j j j t ( ( j j j t ( ( (,, = 0 jδ jδ jδ t ( ( 5

16 Binary Primitive BCH Codes j j j δ ( ( j j j δ ( ( (,, = 0 jδ jδ jδ δ ( ( ( t A, a δ δ square matrix δ A = 0 Taking out the common j ( δ j factor from each row of j ( δ j the determinant ( j j j δ = 0 ( jδ δ jδ 6

17 Binary Primitive BCH Codes The determinant in the equality above is a Vandermonde determinant which is nonzero The product on the left-hand side of can not be zero This is a contradiction and hence our assumption that there exists a nonzero code vector v of W(v =δ t is invalid dmin t t is the designed distance of the t-error-correcting BCH code The true minimum distance of a BCH code may or may not be equal to its designed distance m Binary BCH code with length n can be constructed in the same manner as for the case n = m (Theorem 9 m m Let β be an element of order n in GF (, n and g(x be the t binary polynomial of minimum degree that has β, β,, β as roots 7

18 Binary Primitive BCH Codes Let ψ( x, ψ ( x,, ψ t ( x be the minimal poly of respectively then g(x = LCM{ ψ ( x, ψ ( x,, ψ t ( x} n t n β =, β, β,, β are roots of x n gx ( ( x X We see that g(x is a factor of n β, β, β t The cyclic code generated by g(x is a t-error-correcting BCH code of length n The number of parity-check digits dmin t If βis not a primitive element of GF( m, the code is called a nonprimitive BCH code mt 8

19 General Definition of Binary BCH Codes General definition of binary BCH codes β GF( m, 0 be any nonnegative integer and consider l0 l0 l0 d 0 β, β,, β For 0 i< d0, let ψ i (x, ni be the 0 i minimal poly and order of β, respectively g( x = LCM{ ψ 0( x, ψ ( x,, ψ d ( x} and dthe length of fthe code is Note that: dmin d0 { } 0 n= LCM n, n, n d parity-check digits md ( 0 (Proof is omitted and left as an exercise 0 is capable of correcting ( d0 / or fewer errors 0 9

20 General Definition of Binary BCH Codes If we let l0 =, d0 = t and β be a primitive element of GF( m, the code becomes a t-error-correcting primitive BCH code of length m β If we let l0 =, d0 = t and be not a primitive element of GF( m, the code is a nonprimitive t-error-correcting BCH code of length n, which is the order of β For a BCH code with designed distance d0, we require g(x has d0 - consecutive powers of a field element β as roots This guarantees that the code has dmin d0 This lower bound on the minimum distance is called the BCH bound In the rest of this chapter, we consider only the primitive BCH codes 0

21 Decoding of the BCH Codes Wireless Information Transmission System Lab Institute of Communications Engineering g National Sun Yat-sen University

22 Decoding of the BCH Codes Decoding of the BCH Codes Suppose that a code word v(x = is transmitted and the transmission errors result : 0 n v n x x v x v v is transmitted and the transmission errors result : r(x = Let e(x be the error pattern Then 0 n r n x x r x r r For decoding, remember e(x v(x r(x = ( ( n n = ( ( H ( ( n t t ( (

23 Decoding of the BCH Codes The syndrome is t-tuple, S = ( S, S, S t = r H i i i n Let s = r ( = r r r ( for i i 0 n s can be evaluated by b ( x = R [ r( x] i i φ ( x i φ ( x is the minimal poly of i r( x = a ( x φ ( x b ( x s = r = b i i i i i i ( i( i T t

24 Decoding of the BCH Codes EX64 Consider the double-error-correcting error (5, 7 BCH code given in 8 (from Ex6 If r = ( r( x = x s = b ( =, s = b ( = 4 4 φ ( x = φ ( x = φ4 ( x = x x φ ( x = x x x x 4 b ( x = R [ rx ( ] = x φ ( x φ ( x b ( x = R [ r( x] = x s 9 = b ( = 4 8 s = b( = 4 7 = = s = (,,, (Note that syndrome is not binary anymore 4

25 Decoding of the BCH Codes i i i v( = 0 for i t s = r( = e( j j j Suppose ex ( = x x x v 0 j < j < j < n = j j jv s j j j s = ( ( ( v i j t jv t s tt = ( ( j j j where,, v are unknown Any method for solving these equations is a decoding algorithm for the BCH codes v 5

26 Decoding of the BCH Codes j j j Once,, v have been found, the powers j, j, j tell us the error locations in e( x v If the number of errors in e(x is t or less, the solution that yields an error pattern with the smallest number of errors is the right solution j For convenience, let β =, v be the error location numbers s s = β β β = β β β Power-sum v st = β β β t t t v v Symmetric function 6

27 Decoding of the BCH Codes Define σ ( x = ( β x ( β x ( β x = 0 σ σ x σ x σ x : error-location poly The roots of σ ( x are β, β, βv, which are the inverses of the error location numbers σ 0 = σ = β β β σ = ββ ββ β β v σ = β β v β v v v v v v 7

28 Decoding of the BCH Codes These coefficients are known as elementary symmetric functions σ i ' s are related to s ' s by Newton's identities s j σ = 0 s σ s σ = 0 s σs σs σ = 0 sv σsv σv s vσv = 0 s σ s σ s σ s = 0 v v v v Note that, for binary case, = = 0, we have σ i for odd i iσ i = 0 for even i 8

29 Decoding of the BCH Codes The equations may have many solutions We want to find the solution that yields a σ(x ofminimal degree This σ(x would produce an error pattern with minimum number of errors Decoding Procedure step Compute s ( s, s, s from r ( x = t step Determine σ ( x from step Determine the error-location number β, β, βv by finding the roots of σ( x and correct the errors in rx ( s 9

30 Decoding of the BCH Codes Iterative Algorithm for finding σ ( x (Berlekamps iterative algorithm i = i e ρ = ( i σ = s x s Y i = t σ ( t ( x = σ ( x N END D o es the coeficients ( i of satisfy the σ ( i th N e w to n s id en tity? σ Y = σ ( i ( i correction term σ N = σ ( i ( i i = i a 0

31 Decoding of the BCH Codes How to add a correction term to σ ( i? ( μ ( μ ( μ ( μ = Let σ σ x σ x σ x μ be the minimum-degree poly determined at the μth step ( μ To determine σ ( x => compute μth discrepancy ( μ ( μ ( μ σ σ σ dμ = sμ sμ sμ sμ μ μ = σ = σ ( ( If d 0 μ μ ( x ( x If d μ 0, go back to the steps prior to the μth step and determine ( ρ σ ( x st ρth discrepancy d ρ 0, and ρ ρ has the largest value ( ρ ( = deg [ σ ( x] Then ρ σ ( x = σ ( x d d x σ ( x ( μ ( μ ( μ ρ ( ρ μ ρ μ μ

32 Decoding of the BCH Codes is the minimum-degree poly whose coefficients satisfy the first Newton s identities To carry out the iteration of finding σ(x, we begin with the following table: ( μ μ σ ( x d μ μ μ μ 0-0 S 0 0 t

33 Decoding of the BCH Codes l μ is the degree of σ (μ (X If d μ =0, then σ (μ μ (X= σ (μ (X andl l μ = l μ If d μ 0, find another row ρ prior to the μth row such that d ρ 0 and the number ρ-l ρ in the last column of the table has the largest value Then σ (μ (X is given by σ ( x = σ ( x d d x σ ( x ( μ ( μ ( μ ρ ( ρ μ ρ and l μ = max(l μ, l ρ μ-ρ ρ ( μ ( μ In either case, dμ = sμ σ sμ σ s (t μ μ μ The polynomial σ (X in the last row should be the required σ(x

34 Decoding of the BCH Codes Ex 65 Consider (55 5 triple-error-correcting error BCH codes given in ex 6 (t= px ( = x x e v = 0 r = x x x φ ( x = φ ( x = φ ( x = x x φ ( x = φ ( x = x x x x φ ( x = x x

35 Decoding of o f the t h e BCH Codeso d e s b ( x = R [ r ( x ] = φ ( x φ ( x b ( x = R [ r( x] = x x b ( x = R [ r( x] = x 5 φ5 ( x = = 4 = s s s s s 6 s5 = = = = 0 = s =(,,,,, ( μ ( μ ( μ ρ ( ρ μ ρ σ ( x = σ ( x d d x σ ( x 5

36 Decoding of the BCH Codes S = ( μ ( μ dμ = sμ σ sμ σ s μ μ μ μ=0; d 0 = 0 ( μ ( μ ( μ ρ ( ρ ρ=- σ ( x = σ ( x dμdρ x σ ( x σ ( (X= σ (0 (Xd 0 d - - X (0 σ (- (X= X =X X X l =max(l 0,l - μ-ρ=max(0,00= μ-ll μ =-l l =-=0 d =S σ ( S = =0 l μ = max(l μ, l ρ μ-ρ σ ( (X= σ ( (X=X l =l = μ-l μ =-l =-= d =S σ ( S = 0 =( = 5 6

37 Decoding of the BCH Codes d = 5 0 ρ=0 σ ( (X=σ ( (Xd d 0 - X (-0 σ (0 (X=X 5 X =X 5 X l =max(l,ll 0 μ-ρ=max(,0-0= 0 μ-l μ =-l =-= d S 5 =S 4 σ ( S σ ( S σ ( S = =( ( =0 7

38 Decoding of the BCH Codes ( μ μ σ ( x d μ μ μ μ x x 5 x x x x 5 5 x x x x σ( x = σ ( x = x x (6 5 = 0 ( x( x( x x =,, 0 8

39 Decoding of the BCH Codes error location numbers β = =, β = =, β = = ex ( = x x x rx ( = rx ( ex ( = 0 If the number of errors in the received polynomial r(x is less than the designed error-correcting capability t of the code, it is not necessary to carry out the t steps of iteration to find the errorlocation polynomial σ(x It has been shown that if d μ and the discrepancies at the next t-l μ - steps are all zeros (ie successive t-l μ zeros, σ (μ (X is the errorlocation polynomial If v(v t errors occur, only vt steps of iteration are needed The iterative algorithm described above not only applies to binary BCH codes but also nonbinary BCH codes 9

40 Decoding of the BCH Codes Simplified Algorithm for finding σ ( x For a binary BCH code, it is only required to fill out a table with t empty rows Such a table is presented below ( μ μ σ ( x d μ -/ 0-0 S 0 0 t μ μ μ 40

41 Decoding of the BCH Codes ( ( If d 0, then μ μ = ( x = ( x μ σ σ If dμ 0, find another row ρ proceding the μth row, st ρ is as large as possible and d 0 ρ ( ( ( ( Then μ ( X μ ( X d d X μ σ = σ ρ ρ μ ρ σ ( X ( μ ( μ note that dμ = sμ σ sμ σ sμ ( μ σ s μ = ( μ μ deg [ σ ( x] μ μ ρ 4

42 Decoding of the BCH Codes The polynomial σ (t (X in the last row should be the required σ(x If it has degree greater than t, there were more than t errors, and generally it is not possible to locate them The computation required in this simplified algorithm is one-half of the computation required in the general algorithm The simplified algorithm applies only to binary BCH codes If the number of errors in the received polynomial r(x is less than the designed error-correcting capability t of the code, it is not necessary to carry out the t steps of iteration to find the errorlocation polynomial σ(x for a t-error-correcting binary BCH code 4

43 Decoding of the BCH Codes Remarks: If v t errors occur, only ( t v / steps needed If, for some μ, d μ and the discrepancies at the next (t-l μ -/ steps are zero, then σ ( X is the error-location poly EX66 The simplified table for finding σ(x for the code in ex65 is given below Thus, σ ( x = σ ( ( x = x 5 x ( μ μ σ ( x d μ I μ μ I μ -/ 0-0 S= 0 0 Sx=x 5 SS S== (take ρ = -/ x 5 x 0 (take ρ = 0 x 5 x ---- (take ρ = 4

44 Decoding of the BCH Codes Finding the Error-Location Numbers and Error Correction Consider ex66 6 The error-location poly has been found to be 5 σ ( x = x x By substituting 4 0,,,,, into it, we find that,, are the roots of σ(x Therefore, the error location numbers are 5 5,, => e( x = x x x Chien s procedure: The received vector n r( x = r0 r x r x r n x is decoded on a bit-by-bit basis The high-order bits are decoded first n To decode r n-, the decoder test whether is an error-location number; this is equivalent to test whether its inverse is a root of σ(x If is a root, then v σ σ σ v = 0 44

45 Decoding of the BCH Codes l l vl To decode rn l, the decoder forms σ, σ,, σ v and tests the sum l l σ σ If the sum is zero, then n-l is an error-location number and r n-l is an erroneous digit; otherwise, r n-l is a correct digit Cyclic error location search unit σ v vl σ σ σ t x x x i= t σ i A i t 45

46 Decoding of the BCH Codes The tσ -registers are initial stored with σ, σ,, σ t calculated in step of the decoding ( σv = σv = = σt = 0 for v < t Immediately before rn- is read out of the buffer, the t multiplier are pulsed once v The multiplications are performed and σ, σ,, σ v are stored in the σ -registers The output of the logic circuit A is if v and only if the sum σ otherwise, the σ σ v = 0; output tof fa is 0 The digit itrn- is read out of fthe buffer and corrected by the output of A Having decoded rn-,the t multipliers are pulsed 4 v again Now σ, σ,, σ v arestoredinthe the σ -registers The sum 4 v σ σ σ v is tested for 0 The digit rn- is read out of the buffer and corrected in the same manner as rn- is corrected 46

47 Implementation of Galois Field Arithmetic Wireless Information Transmission System Lab Institute of Communications Engineering g National Sun Yat-sen University

48 Implementation of Galois Field Arithmetic Galois field adder (GF( 4 given by Table 8 ADD a0 a a a Register A (accumulator a 0 b 0 a b b b 0 a b b a b b b Register B By adding their vector representations with modulo- addition 48

49 Implementation of Galois Field Arithmetic For multiplication, we first consider multiplying a field element by a fixed element from the same field Suppose that we want to multiply a field element β in the GF( 4 by the primitive element 4 whose minimal polynomial isφ ( x = x x β = b b b b 0 β = b ( b b b b 0 任一 β 要乘上定值 4 = b b b0 b b b Ex: let β = 7 = The vector representation of β is ( 0 Load it into the register After the register is pulsed, the new content in it will be (

50 Implementation of Galois Field Arithmetic the above circuit can be used to generate all the nonzero elements of 4 by load (000 first into the register GF( Ex: as another example, multiply β by : β = b b b b = b0 b b b = b0 b( b( b ( = b ( b b ( b b ( b0 b β b0 b b b 50

51 Implementation of Galois Field Arithmetic Ex: multiplying two arbitrary elements Steps: β = b b b b 0 r = c c c c 0 β r = c β c β c β c β 0 = ((( c β c β c β c β 0 multiply c β by and add the product to c β multiply ( c β c β by and add the product to c β multiply (( c β c β c β by and add the product to c β 0 5

52 Implementation of Galois Field Arithmetic The circuit in ex can be modified to carry out the computation given by ex b b b 0 b c0 c c c 5

53 Implementation of Galois Field Arithmetic Step : Register A are empty B ( b0 b b b C ( c0 c c c Step : Registers A C are shifted four times At the end of first shift, A (( cb 0, cb, cb, cb, the vector representation of cβ At the end of second shift, A (( cβ cβ At the end of third shift, A ((( cβ cβ cβ At the end of fourth shift, A βγ 5

54 Implementation of Galois Field Arithmetic If we express βγ = ((( c c β 0 β cβ cβ then we obtain a different multiplication circuit b0 b b b c c c c0 54

55 Implementation of Galois Field Arithmetic How to compute syndrome It can be done with a circuit for multiplying a field element by i Suppose that we want to compute si i r(? where is a primitive element in GF( 4 = r( = r r r r =(((( r r r r

56 Implementation of Galois Field Arithmetic The computation of r( can be accomplished by adding an input to the circuit r (x input At the end of first shift ( r,0,0, At the end of nd shift r 4 r At the end of rd shift ( r4 r r 56

57 Implementation of Galois Field Arithmetic We can compute r( by adding an input to the circuit for multiplying by of figure in Ex rx ( input i There is another way of computing r( Let φ i (x be the minimal i poly of Let b(x be the remainder resulting from divding r(x by φ i (x Then i i r( = b( 57

58 Implementation of Galois Field Arithmetic Implementation of Galois Field Arithmetic Thus, computing r( is equivalent to computing b( Again we consider computation over GF( Suppose that we want to i i 4 consider computation over GF( Suppose that we want to compute r( The minimal poly of is 4 ( x x x x x = φ The remainder ( b x b x b b x b x = ( x x x x x φ Then 0 ( b x b x b b x b x = b( b( b b b b = 0 0 ( ( ( b b b b b b b b b b = = 58

59 Implementation of Galois Field Arithmetic Such a circuit is shown below 59

60 Implementation of Galois Field Arithmetic Implementation of Galois Field Arithmetic Since is a conjugate of, it has the same minimum poly as 6 6 b( b( b b b b = 0 0 ( ( ( ( ( b b b b b b b b b b b b = = Its circuit is shown in the next page 0 ( ( ( 60

61 Implementation of Galois Field Arithmetic 6

62 Implementation of Error Correction Wireless Information Transmission System Lab Institute of Communications Engineering g National Sun Yat-sen University

63 Implementation of Error Correction Syndrome computation circuit for the double-error-correcting (5,7 BCH code 6

64 Implementation of Error Correction Chien s searching circuit for the double-error correcting (5,7 BCH code 64

65 Nonbinary BCH Codes and Reed-Solomon Codes Wireless Information Transmission System Lab Institute of Communications Engineering g National Sun Yat-sen University

66 Nonbinary BCH Codes and Reed-Solomon Codes In addition to the binary codes, there are nonbinary codes If p is a prime number and q is any power of p (q=p p m thereare, codes with symbols from the Galois field GF(q These codes are called q-ary codes An (n, k linear code with symbols from GF(q is a k-dimensional subspace of the vector space of all n-tuples over GF(q A q-ary (n, k cyclic code is generated by a polynomial of degree (nk with coefficients from GF(q, which is a factor of X n - Encoding and decoding of q-ary y codes are similar to that of binary codes For any choice of positive integers s and t, there exists a q-ary BCH code of length n=q s -, which can correct any combinational of t or fewer errors and requires no more than st parity-check digits 66

67 Nonbinary BCH Codes and Reed-Solomon Codes Let be a primitive element in the Galois field GF(q s The generator polynomial g(x ofat t-error-correcting q-ary BCH is the polynomial of lowest degree with coefficients from GF(q for which,,,,, t are roots Let φ i (X be the minimal polynomial of i Then g(x=lcm{φ (X,φ (X,,φ t (X } The degree of each minimal polynomial is s or less Therefore, the degree of g(xisatmostst st, and hence the number of parity-check digits of the code generated by g(x is no more than st For q=,, we obtain the binary BCH codes 67

68 Nonbinary BCH Codes and Reed-Solomon Codes t-error-correcting Reed-Solomon code with symbols from GF(q: s =, Block length: n=q-, # parity-check digits: n-k =t, Minimum distance: d min =t Reed-Solomon codes with code symbols from GF( m (ie (ie, q= m Let be a primitive element in GF( m The generator polynomial of code length m -is g( x = ( x ( x ( x = g0 gx gt x x (n,n-t n cyclic code and coefficients of g(xisfromgf( m k Let Message: a( X = a0 ax ax ak X In systematic form, the t parity-check digits are coefficients of t ( ( ( t t t b t X = Rg X X a X = b0 bx bt X (Sec 5 68

69 Nonbinary BCH Codes and ReedReed-Solomon Codes Hardware implementation Encoding circuit of a q-ary RS code 69

70 Nonbinary BCH Codes and Reed-Solomon Codes Where m multiplier in GF( m adder in GF( bi storage device Decoding of RS code: v(x = v0 vx r(x = r 0 r x r n x v n x n n n ex ( = rx ( vx ( = e ex e x m e = r v, GF( i i i 0 n ex ( v( x rx ( 70

71 Nonbinary BCH Codes and Reed-Solomon Codes Suppose the error pattern e(x contains v errors (nonzero components, then j j j e( x = e x e x e x ν j j j j To determine e(x, we need error-locations x l s and the error values e s jl (ie vpairs( x, e ' s j l j l ν In decoding a RS code, the same three steps used for decoding a binary BCH code are required ; in addition, a fourth step involving calculation of error values is required 7

72 Nonbinary BCH Codes and Reed-Solomon Codes j Let β = = v s = r( = e β e β e β j j jv v s = r ( = e β e β j jv v s = r( = e β e β t t t t j jv v note: S = R [ r( x] = b i i ( x i ( ie r ( x = a ( x ( x b i i i 7

73 Nonbinary BCH Codes and ReedReed-Solomon Codes Syndrome computation circuit for R-S codes Division circuit (a over GF ( m (b in binary form 7

74 Nonbinary BCH Codes and Reed-Solomon Codes To find σ ( x : the error-location poly by Berlekamp s iterative algorithm σ ( x = ( β x ( β x ( β x v = σx σvx Once σ ( x is found, we can determine the error values Let ( = ( σ ( σ σ ( σ σ z x s x s s x s s x ν ν ν j It can be shown that the error value at location β = l is given by: e j l = ν Z ( β l ( ββ i l i= i l v l v 74

75 Nonbinary BCH Codes and Reed-Solomon Codes Ex: Consider a triple-error-correcting Reed-Solomon code with symbols from GF( 4 The generator polynomial of this code is: g( x = ( x ( x ( x 6 = x x x x x x (5, 9, RS code, n =5 n k = 6, t = e x (000 r = ( rx ( = x x x

76 Nonbinary BCH Codes and ReedReed-Solomon Codes Step Using table 8 below to compute syndrome components: 76

77 Nonbinary BCH Codes and Reed-Solomon Codes S = r( = = S S S S S = r = = ( = r ( = = = r( = = = r = = ( 0 = r( = = Step Findσ( x = x x x by filling out table in next slide 77

78 Nonbinary BCH Codes and Reed-Solomon Codes 78

79 Nonbinary BCH Codes and Reed-Solomon Codes Step By substituting 9 σ 4,,, into σ( x,, are roots of ( x 9 6 =, =, = are the error-location 6 numbers of ex ( ex ( = ex ex e x 6 Step 4 From 64, find z( x = x x x z( 6 7 e = = 6 ( ( e 6 z ( 6 = = 6 6 ( ( 79

80 Nonbinary BCH Codes and Reed-Solomon Codes e z( 6 = 4 ( ( = ex ( = x x x vx ( = rx ( ex ( = 0 If β is not a primitive iti element of GF( m, then the m -ary code generated by t g ( x = ( x β ( x β ( x β is a nonprimitive t-error-correcting RS code The length n of this code is simply pythe order of β Decoding of a nonprimitive Reed-Solomon code is identical to the decoding of a primitive Reed-Solomon code 80

81 Nonbinary Nonbinary BCH Codes and Reed BCH Codes and Reed-Solomon Codes Solomon Codes Reed-Solomon codes are very effective for correcting multiple bursts of errors bursts of errors Two information symbols can be added to a RS code of length n without reducing its minimum distance g The extended RS code has length n and the same number of parity-check symbols as the original code For a t-error-correcting RS code, the parity-check matrix may take the form n ( ( H n n = H n t t t 8 ( ( n t t t

82 Nonbinary Nonbinary BCH Codes and Reed BCH Codes and Reed-Solomon Codes Solomon Codes The parity-check matrix of the extended RS code is H 0 0 H = H 0 0 H

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

Binary Primitive BCH Codes. Decoding of the BCH Codes. Implementation of Galois Field Arithmetic. Implementation of Error Correction

Binary Primitive BCH Codes. Decoding of the BCH Codes. Implementation of Galois Field Arithmetic. Implementation of Error Correction BCH Codes Outline Binary Primitive BCH Codes Decoding of the BCH Codes Implementation of Galois Field Arithmetic Implementation of Error Correction Nonbinary BCH Codes and Reed-Solomon Codes Preface The

More information

Implementation of Galois Field Arithmetic. Nonbinary BCH Codes and Reed-Solomon Codes

Implementation of Galois Field Arithmetic. Nonbinary BCH Codes and Reed-Solomon Codes BCH Codes Wireless Information Transmission System La. Institute of Communications Engineering g National Sun Yat-sen University Outline Binary Primitive BCH Codes Decoding of the BCH Codes Implementation

More information

The BCH Bound. Background. Parity Check Matrix for BCH Code. Minimum Distance of Cyclic Codes

The BCH Bound. Background. Parity Check Matrix for BCH Code. Minimum Distance of Cyclic Codes S-723410 BCH and Reed-Solomon Codes 1 S-723410 BCH and Reed-Solomon Codes 3 Background The algebraic structure of linear codes and, in particular, cyclic linear codes, enables efficient encoding and decoding

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

5.0 BCH and Reed-Solomon Codes 5.1 Introduction

5.0 BCH and Reed-Solomon Codes 5.1 Introduction 5.0 BCH and Reed-Solomon Codes 5.1 Introduction A. Hocquenghem (1959), Codes correcteur d erreurs; Bose and Ray-Chaudhuri (1960), Error Correcting Binary Group Codes; First general family of algebraic

More information

x n k m(x) ) Codewords can be characterized by (and errors detected by): c(x) mod g(x) = 0 c(x)h(x) = 0 mod (x n 1)

x n k m(x) ) Codewords can be characterized by (and errors detected by): c(x) mod g(x) = 0 c(x)h(x) = 0 mod (x n 1) Cyclic codes: review EE 387, Notes 15, Handout #26 A cyclic code is a LBC such that every cyclic shift of a codeword is a codeword. A cyclic code has generator polynomial g(x) that is a divisor of every

More information

Chapter 6 Reed-Solomon Codes. 6.1 Finite Field Algebra 6.2 Reed-Solomon Codes 6.3 Syndrome Based Decoding 6.4 Curve-Fitting Based Decoding

Chapter 6 Reed-Solomon Codes. 6.1 Finite Field Algebra 6.2 Reed-Solomon Codes 6.3 Syndrome Based Decoding 6.4 Curve-Fitting Based Decoding Chapter 6 Reed-Solomon Codes 6. Finite Field Algebra 6. Reed-Solomon Codes 6.3 Syndrome Based Decoding 6.4 Curve-Fitting Based Decoding 6. Finite Field Algebra Nonbinary codes: message and codeword symbols

More information

Chapter 6. BCH Codes

Chapter 6. BCH Codes Wreless Informaton Transmsson System Lab Chapter 6 BCH Codes Insttute of Communcatons Engneerng Natonal Sun Yat-sen Unversty Outlne Bnary Prmtve BCH Codes Decodng of the BCH Codes Implementaton of Galos

More information

Error Correction Review

Error Correction Review Error Correction Review A single overall parity-check equation detects single errors. Hamming codes used m equations to correct one error in 2 m 1 bits. We can use nonbinary equations if we create symbols

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

B. Cyclic Codes. Primitive polynomials are the generator polynomials of cyclic codes.

B. Cyclic Codes. Primitive polynomials are the generator polynomials of cyclic codes. B. Cyclic Codes A cyclic code is a linear block code with the further property that a shift of a codeword results in another codeword. These are based on polynomials whose elements are coefficients from

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

Coding Theory and Applications. Solved Exercises and Problems of Cyclic Codes. Enes Pasalic University of Primorska Koper, 2013

Coding Theory and Applications. Solved Exercises and Problems of Cyclic Codes. Enes Pasalic University of Primorska Koper, 2013 Coding Theory and Applications Solved Exercises and Problems of Cyclic Codes Enes Pasalic University of Primorska Koper, 2013 Contents 1 Preface 3 2 Problems 4 2 1 Preface This is a collection of solved

More information

An Enhanced (31,11,5) Binary BCH Encoder and Decoder for Data Transmission

An Enhanced (31,11,5) Binary BCH Encoder and Decoder for Data Transmission An Enhanced (31,11,5) Binary BCH Encoder and Decoder for Data Transmission P.Mozhiarasi, C.Gayathri, V.Deepan Master of Engineering, VLSI design, Sri Eshwar College of Engineering, Coimbatore- 641 202,

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

Error Correction Methods

Error Correction Methods Technologies and Services on igital Broadcasting (7) Error Correction Methods "Technologies and Services of igital Broadcasting" (in Japanese, ISBN4-339-06-) is published by CORONA publishing co., Ltd.

More information

Solutions of Exam Coding Theory (2MMC30), 23 June (1.a) Consider the 4 4 matrices as words in F 16

Solutions of Exam Coding Theory (2MMC30), 23 June (1.a) Consider the 4 4 matrices as words in F 16 Solutions of Exam Coding Theory (2MMC30), 23 June 2016 (1.a) Consider the 4 4 matrices as words in F 16 2, the binary vector space of dimension 16. C is the code of all binary 4 4 matrices such that the

More information

Berlekamp-Massey decoding of RS code

Berlekamp-Massey decoding of RS code IERG60 Coding for Distributed Storage Systems Lecture - 05//06 Berlekamp-Massey decoding of RS code Lecturer: Kenneth Shum Scribe: Bowen Zhang Berlekamp-Massey algorithm We recall some notations from lecture

More information

Dr. Cathy Liu Dr. Michael Steinberger. A Brief Tour of FEC for Serial Link Systems

Dr. Cathy Liu Dr. Michael Steinberger. A Brief Tour of FEC for Serial Link Systems Prof. Shu Lin Dr. Cathy Liu Dr. Michael Steinberger U.C.Davis Avago SiSoft A Brief Tour of FEC for Serial Link Systems Outline Introduction Finite Fields and Vector Spaces Linear Block Codes Cyclic Codes

More information

PAPER A Low-Complexity Step-by-Step Decoding Algorithm for Binary BCH Codes

PAPER A Low-Complexity Step-by-Step Decoding Algorithm for Binary BCH Codes 359 PAPER A Low-Complexity Step-by-Step Decoding Algorithm for Binary BCH Codes Ching-Lung CHR a),szu-linsu, Members, and Shao-Wei WU, Nonmember SUMMARY A low-complexity step-by-step decoding algorithm

More information

Linear Cyclic Codes. Polynomial Word 1 + x + x x 4 + x 5 + x x + x

Linear Cyclic Codes. Polynomial Word 1 + x + x x 4 + x 5 + x x + x Coding Theory Massoud Malek Linear Cyclic Codes Polynomial and Words A polynomial of degree n over IK is a polynomial p(x) = a 0 + a 1 x + + a n 1 x n 1 + a n x n, where the coefficients a 0, a 1, a 2,,

More information

Error Detection & Correction

Error Detection & Correction Error Detection & Correction Error detection & correction noisy channels techniques in networking error detection error detection capability retransmition error correction reconstruction checksums redundancy

More information

VHDL Implementation of Reed Solomon Improved Encoding Algorithm

VHDL Implementation of Reed Solomon Improved Encoding Algorithm VHDL Implementation of Reed Solomon Improved Encoding Algorithm P.Ravi Tej 1, Smt.K.Jhansi Rani 2 1 Project Associate, Department of ECE, UCEK, JNTUK, Kakinada A.P. 2 Assistant Professor, Department of

More information

Contents Introduction Primitive BCH Codes Generator Polynomial Properties Decoding of BCH Codes Syndrome Computation Syndrome and Error Pattern

Contents Introduction Primitive BCH Codes Generator Polynomial Properties Decoding of BCH Codes Syndrome Computation Syndrome and Error Pattern BCH CODE Contents. Introduction. Primitive BCH Codes. Generator Polynomial 4. Properties 5. Decoding of BCH Codes 6. yndrome Computation 7. yndrome and Error Pattern 8. Error-location Polynomial 9. Decoding

More information

Cyclic Codes. Saravanan Vijayakumaran August 26, Department of Electrical Engineering Indian Institute of Technology Bombay

Cyclic Codes. Saravanan Vijayakumaran August 26, Department of Electrical Engineering Indian Institute of Technology Bombay 1 / 25 Cyclic Codes Saravanan Vijayakumaran sarva@ee.iitb.ac.in Department of Electrical Engineering Indian Institute of Technology Bombay August 26, 2014 2 / 25 Cyclic Codes Definition A cyclic shift

More information

GF(2 m ) arithmetic: summary

GF(2 m ) arithmetic: summary GF(2 m ) arithmetic: summary EE 387, Notes 18, Handout #32 Addition/subtraction: bitwise XOR (m gates/ops) Multiplication: bit serial (shift and add) bit parallel (combinational) subfield representation

More information

A Brief Encounter with Linear Codes

A Brief Encounter with Linear Codes Boise State University ScholarWorks Mathematics Undergraduate Theses Department of Mathematics 8-2014 A Brief Encounter with Linear Codes Brent El-Bakri Boise State University, brentelbakri@boisestate.edu

More information

Minimized Logic Gates Number Of Components In The Chien Search Block For Reed-Solomon (RS)

Minimized Logic Gates Number Of Components In The Chien Search Block For Reed-Solomon (RS) Research Paper American Journal of Engineering Research (AJER) e-issn: 2320-0847 p-issn : 2320-0936 Volume-7, Issue-2, pp-110-116 www.ajer.org Open Access Minimized Logic Gates Number Of Components In

More information

Simplification of Procedure for Decoding Reed- Solomon Codes Using Various Algorithms: An Introductory Survey

Simplification of Procedure for Decoding Reed- Solomon Codes Using Various Algorithms: An Introductory Survey 2014 IJEDR Volume 2, Issue 1 ISSN: 2321-9939 Simplification of Procedure for Decoding Reed- Solomon Codes Using Various Algorithms: An Introductory Survey 1 Vivek Tilavat, 2 Dr.Yagnesh Shukla 1 PG Student,

More information

Cyclic codes. I give an example of a shift register with four storage elements and two binary adders.

Cyclic codes. I give an example of a shift register with four storage elements and two binary adders. Good afternoon, gentleman! Today I give you a lecture about cyclic codes. This lecture consists of three parts: I Origin and definition of cyclic codes ;? how to find cyclic codes: The Generator Polynomial

More information

Coding Theory: Linear-Error Correcting Codes Anna Dovzhik Math 420: Advanced Linear Algebra Spring 2014

Coding Theory: Linear-Error Correcting Codes Anna Dovzhik Math 420: Advanced Linear Algebra Spring 2014 Anna Dovzhik 1 Coding Theory: Linear-Error Correcting Codes Anna Dovzhik Math 420: Advanced Linear Algebra Spring 2014 Sharing data across channels, such as satellite, television, or compact disc, often

More information

Optical Storage Technology. Error Correction

Optical Storage Technology. Error Correction Optical Storage Technology Error Correction Introduction With analog audio, there is no opportunity for error correction. With digital audio, the nature of binary data lends itself to recovery in the event

More information

Fault Tolerant Computing CS 530 Information redundancy: Coding theory. Yashwant K. Malaiya Colorado State University

Fault Tolerant Computing CS 530 Information redundancy: Coding theory. Yashwant K. Malaiya Colorado State University CS 530 Information redundancy: Coding theory Yashwant K. Malaiya Colorado State University March 30, 2017 1 Information redundancy: Outline Using a parity bit Codes & code words Hamming distance Error

More information

Linear Cyclic Codes. Polynomial Word 1 + x + x x 4 + x 5 + x x + x f(x) = q(x)h(x) + r(x),

Linear Cyclic Codes. Polynomial Word 1 + x + x x 4 + x 5 + x x + x f(x) = q(x)h(x) + r(x), Coding Theory Massoud Malek Linear Cyclic Codes Polynomial and Words A polynomial of degree n over IK is a polynomial p(x) = a 0 + a 1 + + a n 1 x n 1 + a n x n, where the coefficients a 1, a 2,, a n are

More information

1 Vandermonde matrices

1 Vandermonde matrices ECE 771 Lecture 6 BCH and RS codes: Designer cyclic codes Objective: We will begin with a result from linear algebra regarding Vandermonde matrices This result is used to prove the BCH distance properties,

More information

ELEC3227/4247 Mid term Quiz2 Solution with explanation

ELEC3227/4247 Mid term Quiz2 Solution with explanation ELEC7/447 Mid term Quiz Solution with explanation Ang Man Shun Department of Electrical and Electronic Engineering, University of Hong Kong Document creation date : 015 1 05 This document explain the solution

More information

Constructions of Nonbinary Quasi-Cyclic LDPC Codes: A Finite Field Approach

Constructions of Nonbinary Quasi-Cyclic LDPC Codes: A Finite Field Approach Constructions of Nonbinary Quasi-Cyclic LDPC Codes: A Finite Field Approach Shu Lin, Shumei Song, Lan Lan, Lingqi Zeng and Ying Y Tai Department of Electrical & Computer Engineering University of California,

More information

Reed-Solomon codes. Chapter Linear codes over finite fields

Reed-Solomon codes. Chapter Linear codes over finite fields Chapter 8 Reed-Solomon codes In the previous chapter we discussed the properties of finite fields, and showed that there exists an essentially unique finite field F q with q = p m elements for any prime

More information

The Pennsylvania State University. The Graduate School. Department of Computer Science and Engineering

The Pennsylvania State University. The Graduate School. Department of Computer Science and Engineering The Pennsylvania State University The Graduate School Department of Computer Science and Engineering A SIMPLE AND FAST VECTOR SYMBOL REED-SOLOMON BURST ERROR DECODING METHOD A Thesis in Computer Science

More information

ERROR CORRECTING CODES

ERROR CORRECTING CODES ERROR CORRECTING CODES To send a message of 0 s and 1 s from my computer on Earth to Mr. Spock s computer on the planet Vulcan we use codes which include redundancy to correct errors. n q Definition. A

More information

MATH 291T CODING THEORY

MATH 291T CODING THEORY California State University, Fresno MATH 291T CODING THEORY Fall 2011 Instructor : Stefaan Delcroix Contents 1 Introduction to Error-Correcting Codes 3 2 Basic Concepts and Properties 6 2.1 Definitions....................................

More information

MATH 433 Applied Algebra Lecture 21: Linear codes (continued). Classification of groups.

MATH 433 Applied Algebra Lecture 21: Linear codes (continued). Classification of groups. MATH 433 Applied Algebra Lecture 21: Linear codes (continued). Classification of groups. Binary codes Let us assume that a message to be transmitted is in binary form. That is, it is a word in the alphabet

More information

EE 229B ERROR CONTROL CODING Spring 2005

EE 229B ERROR CONTROL CODING Spring 2005 EE 9B ERROR CONTROL CODING Spring 005 Solutions for Homework 1. (Weights of codewords in a cyclic code) Let g(x) be the generator polynomial of a binary cyclic code of length n. (a) Show that if g(x) has

More information

Error Detection, Correction and Erasure Codes for Implementation in a Cluster File-system

Error Detection, Correction and Erasure Codes for Implementation in a Cluster File-system Error Detection, Correction and Erasure Codes for Implementation in a Cluster File-system Steve Baker December 6, 2011 Abstract. The evaluation of various error detection and correction algorithms and

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

Outline. MSRI-UP 2009 Coding Theory Seminar, Week 2. The definition. Link to polynomials

Outline. MSRI-UP 2009 Coding Theory Seminar, Week 2. The definition. Link to polynomials Outline MSRI-UP 2009 Coding Theory Seminar, Week 2 John B. Little Department of Mathematics and Computer Science College of the Holy Cross Cyclic Codes Polynomial Algebra More on cyclic codes Finite fields

More information

Computer Algebra for Computer Engineers

Computer Algebra for Computer Engineers p.1/23 Computer Algebra for Computer Engineers Galois Fields: GF(2 m ) Priyank Kalla Department of Electrical and Computer Engineering University of Utah, Salt Lake City p.2/23 Galois Fields A Galois Field

More information

ECEN 604: Channel Coding for Communications

ECEN 604: Channel Coding for Communications ECEN 604: Channel Coding for Communications Lecture: Introduction to Cyclic Codes Henry D. Pfister Department of Electrical and Computer Engineering Texas A&M University ECEN 604: Channel Coding for Communications

More information

ECE8771 Information Theory & Coding for Digital Communications Villanova University ECE Department Prof. Kevin M. Buckley Lecture Set 2 Block Codes

ECE8771 Information Theory & Coding for Digital Communications Villanova University ECE Department Prof. Kevin M. Buckley Lecture Set 2 Block Codes Kevin Buckley - 2010 109 ECE8771 Information Theory & Coding for Digital Communications Villanova University ECE Department Prof. Kevin M. Buckley Lecture Set 2 Block Codes m GF(2 ) adder m GF(2 ) multiplier

More information

1 Reed Solomon Decoder Final Project. Group 3 Abhinav Agarwal S Branavan Grant Elliott. 14 th May 2007

1 Reed Solomon Decoder Final Project. Group 3 Abhinav Agarwal S Branavan Grant Elliott. 14 th May 2007 1 Reed Solomon Decoder 6.375 Final Project Group 3 Abhinav Agarwal S Branavan Grant Elliott 14 th May 2007 2 Outline Error Correcting Codes Mathematical Foundation of Reed Solomon Codes Decoder Architecture

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

A 2-error Correcting Code

A 2-error Correcting Code A 2-error Correcting Code Basic Idea We will now try to generalize the idea used in Hamming decoding to obtain a linear code that is 2-error correcting. In the Hamming decoding scheme, the parity check

More information

Cyclic codes. Vahid Meghdadi Reference: Error Correction Coding by Todd K. Moon. February 2008

Cyclic codes. Vahid Meghdadi Reference: Error Correction Coding by Todd K. Moon. February 2008 Cyclic codes Vahid Meghdadi Reference: Error Correction Coding by Todd K. Moon February 2008 1 Definitions Definition 1. A ring < R, +,. > is a set R with two binary operation + (addition) and. (multiplication)

More information

Information Theory. Lecture 7

Information Theory. Lecture 7 Information Theory Lecture 7 Finite fields continued: R3 and R7 the field GF(p m ),... Cyclic Codes Intro. to cyclic codes: R8.1 3 Mikael Skoglund, Information Theory 1/17 The Field GF(p m ) π(x) irreducible

More information

Know the meaning of the basic concepts: ring, field, characteristic of a ring, the ring of polynomials R[x].

Know the meaning of the basic concepts: ring, field, characteristic of a ring, the ring of polynomials R[x]. The second exam will be on Friday, October 28, 2. It will cover Sections.7,.8, 3., 3.2, 3.4 (except 3.4.), 4. and 4.2 plus the handout on calculation of high powers of an integer modulo n via successive

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

Decoding Procedure for BCH, Alternant and Goppa Codes defined over Semigroup Ring

Decoding Procedure for BCH, Alternant and Goppa Codes defined over Semigroup Ring Decoding Procedure for BCH, Alternant and Goppa Codes defined over Semigroup Ring Antonio Aparecido de Andrade Department of Mathematics, IBILCE, UNESP, 15054-000, São José do Rio Preto, SP, Brazil E-mail:

More information

New Algebraic Decoding of (17,9,5) Quadratic Residue Code by using Inverse Free Berlekamp-Massey Algorithm (IFBM)

New Algebraic Decoding of (17,9,5) Quadratic Residue Code by using Inverse Free Berlekamp-Massey Algorithm (IFBM) International Journal of Computational Intelligence Research (IJCIR). ISSN: 097-87 Volume, Number 8 (207), pp. 205 2027 Research India Publications http://www.ripublication.com/ijcir.htm New Algebraic

More information

Objective: To become acquainted with the basic concepts of cyclic codes and some aspects of encoder implementations for them.

Objective: To become acquainted with the basic concepts of cyclic codes and some aspects of encoder implementations for them. ECE 7670 Lecture 5 Cyclic codes Objective: To become acquainted with the basic concepts of cyclic codes and some aspects of encoder implementations for them. Reading: Chapter 5. 1 Cyclic codes Definition

More information

CS6304 / Analog and Digital Communication UNIT IV - SOURCE AND ERROR CONTROL CODING PART A 1. What is the use of error control coding? The main use of error control coding is to reduce the overall probability

More information

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: Byte multiplication 1 Field arithmetic A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: F is an abelian group under addition, meaning - F is closed under

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

EE512: Error Control Coding

EE512: Error Control Coding EE51: Error Control Coding Solution for Assignment on BCH and RS Codes March, 007 1. To determine the dimension and generator polynomial of all narrow sense binary BCH codes of length n = 31, we have to

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

Information Redundancy: Coding

Information Redundancy: Coding Info Redundancy April 2, 23 Information Redundancy: Coding Often applied to Info transfer: often serial communication thru a channel Info storage Hamming distance: error detection & correction capability

More information

ECE 4450:427/527 - Computer Networks Spring 2017

ECE 4450:427/527 - Computer Networks Spring 2017 ECE 4450:427/527 - Computer Networks Spring 2017 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 5.2: Error Detection & Correction Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

More information

EECS Components and Design Techniques for Digital Systems. Lec 26 CRCs, LFSRs (and a little power)

EECS Components and Design Techniques for Digital Systems. Lec 26 CRCs, LFSRs (and a little power) EECS 150 - Components and esign Techniques for igital Systems Lec 26 CRCs, LFSRs (and a little power) avid Culler Electrical Engineering and Computer Sciences University of California, Berkeley http://www.eecs.berkeley.edu/~culler

More information

Decoding Algorithm and Architecture for BCH Codes under the Lee Metric

Decoding Algorithm and Architecture for BCH Codes under the Lee Metric Decoding Algorithm and Architecture for BCH Codes under the Lee Metric Yingquan Wu and Christoforos N. Hadjicostis Coordinated Science Laboratory and Department of Electrical and Computer Engineering University

More information

Generator Matrix. Theorem 6: If the generator polynomial g(x) of C has degree n-k then C is an [n,k]-cyclic code. If g(x) = a 0. a 1 a n k 1.

Generator Matrix. Theorem 6: If the generator polynomial g(x) of C has degree n-k then C is an [n,k]-cyclic code. If g(x) = a 0. a 1 a n k 1. Cyclic Codes II Generator Matrix We would now like to consider how the ideas we have previously discussed for linear codes are interpreted in this polynomial version of cyclic codes. Theorem 6: If the

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

Design and Implementation of Reed-Solomon Decoder using Decomposed Inversion less Berlekamp-Massey Algorithm by

Design and Implementation of Reed-Solomon Decoder using Decomposed Inversion less Berlekamp-Massey Algorithm by Design and Implementation of Reed-Solomon Decoder using Decomposed Inversion less Berlekamp-Massey Algorithm by Hazem Abd Elall Ahmed Elsaid A Thesis Submitted to the Faculty of Engineering at Cairo University

More information

: Coding Theory. Notes by Assoc. Prof. Dr. Patanee Udomkavanich October 30, upattane

: Coding Theory. Notes by Assoc. Prof. Dr. Patanee Udomkavanich October 30, upattane 2301532 : Coding Theory Notes by Assoc. Prof. Dr. Patanee Udomkavanich October 30, 2006 http://pioneer.chula.ac.th/ upattane Chapter 1 Error detection, correction and decoding 1.1 Basic definitions and

More information

17 Galois Fields Introduction Primitive Elements Roots of Polynomials... 8

17 Galois Fields Introduction Primitive Elements Roots of Polynomials... 8 Contents 17 Galois Fields 2 17.1 Introduction............................... 2 17.2 Irreducible Polynomials, Construction of GF(q m )... 3 17.3 Primitive Elements... 6 17.4 Roots of Polynomials..........................

More information

MATH 291T CODING THEORY

MATH 291T CODING THEORY California State University, Fresno MATH 291T CODING THEORY Spring 2009 Instructor : Stefaan Delcroix Chapter 1 Introduction to Error-Correcting Codes It happens quite often that a message becomes corrupt

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

Lecture 12: November 6, 2017

Lecture 12: November 6, 2017 Information and Coding Theory Autumn 017 Lecturer: Madhur Tulsiani Lecture 1: November 6, 017 Recall: We were looking at codes of the form C : F k p F n p, where p is prime, k is the message length, and

More information

Optimum Soft Decision Decoding of Linear Block Codes

Optimum Soft Decision Decoding of Linear Block Codes Optimum Soft Decision Decoding of Linear Block Codes {m i } Channel encoder C=(C n-1,,c 0 ) BPSK S(t) (n,k,d) linear modulator block code Optimal receiver AWGN Assume that [n,k,d] linear block code C is

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

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

RON M. ROTH * GADIEL SEROUSSI **

RON M. ROTH * GADIEL SEROUSSI ** ENCODING AND DECODING OF BCH CODES USING LIGHT AND SHORT CODEWORDS RON M. ROTH * AND GADIEL SEROUSSI ** ABSTRACT It is shown that every q-ary primitive BCH code of designed distance δ and sufficiently

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

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

Outline. EECS Components and Design Techniques for Digital Systems. Lec 18 Error Coding. In the real world. Our beautiful digital world.

Outline. EECS Components and Design Techniques for Digital Systems. Lec 18 Error Coding. In the real world. Our beautiful digital world. Outline EECS 150 - Components and esign Techniques for igital Systems Lec 18 Error Coding Errors and error models Parity and Hamming Codes (SECE) Errors in Communications LFSRs Cyclic Redundancy Check

More information

Chapter 9: BCH, Reed-Solomon, and Related Codes

Chapter 9: BCH, Reed-Solomon, and Related Codes Chapter 9: BCH, Reed-Solomon, and Related Codes Draft of February 23, 2001 9.1 Introduction. In Chapter 7 we gave one useful generalization of the (7, 4) Hamming code of the Introduction: the family of

More information

New algebraic decoding method for the (41, 21,9) quadratic residue code

New algebraic decoding method for the (41, 21,9) quadratic residue code New algebraic decoding method for the (41, 21,9) quadratic residue code Mohammed M. Al-Ashker a, Ramez Al.Shorbassi b a Department of Mathematics Islamic University of Gaza, Palestine b Ministry of education,

More information

2013/Fall-Winter Term Monday 12:50 Room# or 5F Meeting Room Instructor: Fire Tom Wada, Professor

2013/Fall-Winter Term Monday 12:50 Room# or 5F Meeting Room Instructor: Fire Tom Wada, Professor SYSTEM ARCHITECTURE ADVANCED SYSTEM ARCHITECTURE Error Correction Code 1 01/Fall-Winter Term Monday 1:50 Room# 1- or 5F Meeting Room Instructor: Fire Tom Wada, Professor 014/1/0 System Arch 1 Introduction

More information

ELEC-E7240 Coding Methods L (5 cr)

ELEC-E7240 Coding Methods L (5 cr) Introduction ELEC-E7240 Coding Methods L (5 cr) Patric Östergård Department of Communications and Networking Aalto University School of Electrical Engineering Spring 2017 Patric Östergård (Aalto) ELEC-E7240

More information

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs April 16, 2009 John Wawrzynek Spring 2009 EECS150 - Lec24-blocks Page 1 Cross-coupled NOR gates remember, If both R=0 & S=0, then

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

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Discussion 6A Solution

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Discussion 6A Solution CS 70 Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Discussion 6A Solution 1. Polynomial intersections Find (and prove) an upper-bound on the number of times two distinct degree

More information

Finite Fields and Error-Correcting Codes

Finite Fields and Error-Correcting Codes Lecture Notes in Mathematics Finite Fields and Error-Correcting Codes Karl-Gustav Andersson (Lund University) (version 1.013-16 September 2015) Translated from Swedish by Sigmundur Gudmundsson Contents

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

Math 512 Syllabus Spring 2017, LIU Post

Math 512 Syllabus Spring 2017, LIU Post Week Class Date Material Math 512 Syllabus Spring 2017, LIU Post 1 1/23 ISBN, error-detecting codes HW: Exercises 1.1, 1.3, 1.5, 1.8, 1.14, 1.15 If x, y satisfy ISBN-10 check, then so does x + y. 2 1/30

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

7.1 Definitions and Generator Polynomials

7.1 Definitions and Generator Polynomials Chapter 7 Cyclic Codes Lecture 21, March 29, 2011 7.1 Definitions and Generator Polynomials Cyclic codes are an important class of linear codes for which the encoding and decoding can be efficiently implemented

More information

3.4. ZEROS OF POLYNOMIAL FUNCTIONS

3.4. ZEROS OF POLYNOMIAL FUNCTIONS 3.4. ZEROS OF POLYNOMIAL FUNCTIONS What You Should Learn Use the Fundamental Theorem of Algebra to determine the number of zeros of polynomial functions. Find rational zeros of polynomial functions. Find

More information

Some Results in Decoding of Certain Maximal-distance

Some Results in Decoding of Certain Maximal-distance INFORMATION AND CONTROL 20, 232--243 (1972) Some Results in Decoding of Certain Maximal-distance and BCH Codes DAVID MANDELBAUM P. O. Box 645, Eatontown, New Jersey 07724 It is shown how binary polynomial

More information

SPA decoding on the Tanner graph

SPA decoding on the Tanner graph SPA decoding on the Tanner graph x,(i) q j,l = P(v l = x check sums A l \ {h j } at the ith iteration} x,(i) σ j,l = Σ P(s = 0 v = x,{v : t B(h )\{l}}) q {vt : t B(h j )\{l}} j l t j t B(h j )\{l} j,t

More information

Reverse Berlekamp-Massey Decoding

Reverse Berlekamp-Massey Decoding Reverse Berlekamp-Massey Decoding Jiun-Hung Yu and Hans-Andrea Loeliger Department of Information Technology and Electrical Engineering ETH Zurich, Switzerland Email: {yu, loeliger}@isi.ee.ethz.ch arxiv:1301.736v

More information