Documente Academic
Documente Profesional
Documente Cultură
Linear Code
?
Cyclic Codes ?
ja
Nikesh Bajaj
nikesh.14730@lpu.co.in
Asst. Prof., ECE Dept.
Lovely Professional University 2 By Nikesh Bajaj
Cyclic Code
Cyclic Code
Linear and
cyclic shift
Ba Cyclic Code
Division Algorithm
P(x) = q(x)d(x) +r(x), d(x) =\ 0 deg(r) < deg(d)
Ex p(x) =x3 +x + 1 and d(x) = x2 +x+1
Ring Remainder Theorem
sh
1
10/29/2013
Theorems Theorems
f(x) has linear factor (x-a) iff f(a) =0 Cyclic Code
xn -1 = (x-1)(xn-1 + x + 1) (1) a(x) +b(x) C % Closure
j
Ring F[x]/f(x) is Field iff f(x) is prime poly. (2) a(x) C r(x) Rn a(x)r(x) C % Cyclicshift
ja
Example
Find factors of x3 -1 if GF(2) and GF(3)
Is f(x) = x3 + x +1 prime poly? GF(2) GF(3)
Cyclic shift of any poly.
c(x) Code (n,k) c(x) = i(x)g(x)
deg(g) = deg(i) = deg(c) =
Ba Matrix Representation
g(x) = g0 + g1x +g2x2 + grxr
g(x) is factor of xn -1
sh
Example: binary code for length 3
G=
Factor : x -1 = (x+1) (x + x +1)
3 2
g(x) = 1
= (x+1)
= (x+1) (x2+ x +1)
9 = x3 -1 By Nikesh Bajaj 10 By Nikesh Bajaj
ke
Encoding Example
exp: 4.13/4.14
Ni
RB
2
10/29/2013
Decoding Example
Parity check Poly h(x) s.t
ja j
c(x)h(x) =0
(c(x) +e(x))h(x) = e(x)h(x) =syndrome
Syndrome Decoding Ba
sh
15 By Nikesh Bajaj 16 By Nikesh Bajaj
ke
cyclic code, if a codeword is cyclically shifted (rotated), the result is
another codeword T n bit frame to be transmitted
F n-k bit FCS
P Predetermined divisor (n-k+1) bits
T = 2n-k D + F
3
10/29/2013
Example
CRC- Encoding
D = 1010001101
P = 110101
j
T=? Or F=?
ja
19 By Nikesh Bajaj 20 By Nikesh Bajaj
CRC-polynomial Ba CRC-System
sh
21 By Nikesh Bajaj 22 By Nikesh Bajaj
ke
CRC-Standards CRC-Standards
Ni
4
10/29/2013
Circuit Implementation
Circuit Implementation (FIR/IIR) Ref: TODD K MOON
Multiplying
Multiplying circuit
Ex: x8+ x6+ x5+ x3+ 1
j
Dividing circuit
Ex: x8+ x6+ x5+ x3+ 1
ja
Dividing
Circuit Implementation
(Other approach) Ref: Ranjan Boss
with (x2+x) in Field by Prime polynomial p(x)=x3+ x+1
g(x)=x8+ x6+ x5+ x3+ 1
5
10/29/2013
j
Perfect Code
Golay Code
ja
31 By Nikesh Bajaj 32 By Nikesh Bajaj
Fire Code
g(x) = (x2t-1 -1)p(x)
over GF(q)
Ba Golay Code
Perfect Code
Ref: Ranjan Bose
sh
p(x) does not divide (x2t-1 -1)
Block length = n such that g(x)| (xn -1) for smallest n
Correct all burst of length t or less
Exp: t = 3= m over GF(2) p(x) = x3 +x+1
g(x) = (x5 -1) p(x) =(x5 -1)(x3 +x+1) = x8 + x6 + x5 + x3 + x+1
deg (g) = n k = 8, Search n =35
Code(35,27)
33 By Nikesh Bajaj 34 By Nikesh Bajaj
ke
6
10/29/2013
j
MV = qn Ternary code
ja
37 By Nikesh Bajaj 38 By Nikesh Bajaj
Coding Gain Ba
sh
39 By Nikesh Bajaj
ke
Ni