Cyclic Code-LIM
Cyclic Code-LIM
KOMUNIKASI II
CYCLIC CODE
CYCLIC CODE
By extension
𝐔 (𝑖) (𝑋) = 𝑋 𝑖 𝐔(𝑋) modulo (𝑋 𝑛 + 1)
CYCLIC CODE
𝑔0 𝑔1 ⋯ 𝑔𝑟 𝟎
𝐠(𝑋)
𝑔0 𝑔1 ⋯ 𝑔𝑟
𝑋𝐠(𝑋)
𝐆= = ⋱ ⋱ ⋱ ⋱
⋮
𝑔0 𝑔1 ⋯ 𝑔𝑟
𝑋 𝑘−1 𝐠(𝑋)
𝟎 𝑔0 𝑔1 ⋯ 𝑔𝑟
CONTOH:
g0 g1 g2 . . . . . gn-k 0 0 0 . . 0
0 g0 g1 g2 . . . . . gn-k 0 0 . . 0
0 0 g0 g1 g2 . . . . . gn-k 0 . . 0
G=
.
.
0 0 . . . 0 0 g0 g1 g2 . . . . gn-k
n−k
3. Add p( X ) to X m ( X ) to form the codeword
U(X )
CYCLIC CODE
1 1 0 1 0 0 0
0 1 0 0 1 0 1 1
1 1 0 1 0 0
G= H = 0 1 0 1 1 1 0
1 1 1 0 0 1 0
0 0 1 0 1 1 1
1 0 1 0 0 0 1
I 33 PT
P I 44
RANGKAIAN ENCODER KODE CYCLIC
g1 g2 gn-k-1
R0 + R1 + R2 .. + Rn-k-1 +
R0 + R1 R2 +
0 0 0 (Initial State)
1 1 1 0 (First Shift)
Codeword:
1 1 0 1 (Second Shift)
(1 0 0 1 0 1 1)
0 1 0 0 (Third Shift)
1 1 0 0 (Fourth Shift)
CONTOH: VERIFIKASI RANGKAIAN
ENKODER
r ( X ) = q ( X )g ( X ) + S ( X )
Syndrome
• With syndrome and Standard array, error is estimated.
r(X)
+ s0 + s1 + s2 .. + sn-k-1
Received
Vector
CONTOH : RANGKAIAN
SYNDROME
Syndrome Circuit of (7,4) Cyclic Code with g(X)=1+X+X3
Gat
e
+ s0 + s1 s2
Assume r=(0 0 1 0 1 1 0)
Input Register Contents
0 0 0 (Initial State)
0 000
1 100
1 110 Syndrome:
0 011 (1 0 1)
1 011
0 111
0 101
CYCLIC CODE DECODER
Gate
Received Corrected
Vector ri Vector
Gate Buffer Register +
r(X)
Feedback Connection
Gate Gate
+ Syndrome Register
Error Pattern ei
Gate
Detection Circuit
Syndrome Modification
EXAMPLE DECODING OF (7,4) CYCLIC CODE
G(X)=1+X+X3: DECODER STEPS, E(X)=X2
Initial 0 0 1 1 0 1 1 0 1 1 +
0
1st Shift 1 1 0 1 1 0 1 1 0 1 +
0
2nd Shift 0 1 1 1 1 1 0 1 1 0 +
0
3rd Shift 1 1 1 0 1 1 1 0 1 1 +
0
4th Shift 1 0 1 1 0 1 1 1 0 1 +
1
5th Shift 0 0 0 0 1 0 1 1 1 0 +
0
6th Shift 0 0 0 0 0 1 0 1 1 1 +
0
7th Shift 0 0 0 1 0 0 1 0 1 1 +
0
LATIHAN SOAL
• Problem 5.21 (Bernard Sklar 1st edition) or Problem 6.21 (Bernard
Sklar 2nd edition)
TUGAS
• Cyclic code (7,4) Memiliki generator polinomial g(x)= 1+X+X3
a. Tentukan generator matrix G dan parity-check matrix H untuk code tersebut.,
kemudian buktikan bahwa HGT=0
b. Tentukan rangkaian encoder dan sindrome, menggunakan kode yang
sistematik
• Sinyal transmisi diterima oleh demodulator di receiver, r = [0 1 0 1 0 0 1 ],
tentukan syndrome polynomial S(X) yang kemudian diproses oleh error
decoder. Berikan sequence yang merupakan output dari error decoder (estimasi
dari codeword yang sebenarnya dikirim).