Professional Documents
Culture Documents
G=
1 0 00
0 1 00
.
.
0 0 0.0
Ik (k x k)
.3.4
G is kxm matrix and is known as the generator matrix, which can be partitioned
into a k x k identity matrix I k and a k x m matrix p. All the elements of P are either
0 or 1. Then, the code word can be expressed as
C=dg
= d [ Ik,p]
= [d, dp]
= [d,cp].. (3.5)
where
Cp=dp (3.6)
Example e1: For a (6,3) code the generator matrix G is
G=
1 0 0
0 1 0
0 0 1
1 0 1
0 1 1
1 1 0
Ik
P
For all eight possible data words, find the corresponding code words, and verify
that the code is a single error correcting code.
Solution
Applying,
C=dp
The table 3.1 below shows the eight data words and the corresponding code
words.
Data word d
Code word C
111
111000
110
110110
101
101011
100
100101
011
011101
010
010011
001
001110
000
000000
Table 3.1
The distance between any two code words is at least 3. Hence, the code can
correct at least one error . The fig 3.1 below shows a possible encoder for this
1
code, using a three digit shift register and threeCmodoulo
-2 adders
C2
C3
Commutator
Data input d d2
3
d1
C4
C5
C6
=Ci+ei
where = the received word
if ei=000000, which implies no error, then HT=0
But, as a result of possible channel errors, HT is in general a non zero row
vector s which is cared the syndrome.
S= HT--------- (3.9)
= (Ci eiHT
=eiHT-----------(3.9b)
can also be expressed in terms of code words other than l i. Hence,
= Cj ej j#i
This implies that ;
S= (Cj ej) HT+ejHT
Since , there are 2k possible code words,
S= eHT
is satisfied by 2k error vectors.
Example 3: If a data word d=100 is transmitted by a code word 100101 in
example e1 above, and if a detection error is caused in the third digit, then the
received word is 101101.
In this case, we have;
C=100101
e=001000
But , the same word could have been received if
C=101011 and e=000110, or if C= 010011 and e= 111110, etc.
From equ 3.9b, since we have eight possible error vectors (2 k error vectors),
hence the problem will be which one to choope. Hence, the reasonable criterion
is the maximum-likelihood rule where, if we receiver , then we decide in favour
of that C for which is most likely to be received. Thus, we decide C i
transmitted if
p(\Ci)>p(/Ck) add k#i
For a BSC, suppose the Hamming distance b/w and Ci is d, i, the channel noise
causes errors in d digits, Then if Pe is the digit error probability of a BSc,
n-d
.Pe
P(\Ci)=Pe (1-pe) =(1-pe)
1 Pe
d
=HT
100011
1
0
1
1
0
0
0
1
1
0
1
0
1
1
0
0
0
1
= [ 110 ]
For modulo-2 operation, subtraction is the same as addition the correct
transmitted code word C is given by
C= e
Pout
S= [ 110] = eHT
1 0 1
0 1 1
1 1 0
= e1 e2 e3 e4 e5 e6
1 0 0
0 1 0
0 0 1
e=001000 satisfies this equation; Also does e=000110,00010101, or 011011, or
110000, or 101101, or 1000011. Hence, the suitable choice the minimum-weight
e, is 001000
Thus
C=100011 001000=101011
that we have two r and am, or independent errors and one burst of length 4 in all the 45
digits transmitted. Generally, if the original(n,k) code is t- error correcting the interlaced
code can correct any combination of t bursts of length or less.
k-bit frame
Input data
Logic
n-bit frame
Shifts
register
(n-bits)
G=
1 0 00
0 1 00
.
.
0 0 0.0
Ik (k x k)
.3.4
G is kxm matrix and is known as the generator matrix, which can be partitioned
into a k x k identity matrix I k and a k x m matrix p. All the elements of P are either
0 or 1. Then, the code word can be expressed as
C=dg
= d [ Ik,p]
= [d, dp]
= [d,cp].. (3.5)
where
Cp=dp (3.6)
Example e1: For a (6,3) code the generator matrix G is
G=
1 0 0
0 1 0
0 0 1
1 0 1
0 1 1
1 1 0
Ik
P
For all eight possible data words, find the corresponding code words, and verify
that the code is a single error correcting code.
Solution
Applying,
C=dp
The table 3.1 below shows the eight data words and the corresponding code
words.
Data word d
Code word C
111
111000
110
110110
101
101011
100
100101
011
011101
010
010011
001
001110
000
000000
Table 3.1
The distance between any two code words is at least 3. Hence, the code can
correct at least one error . The fig 3.1 below shows a possible encoder for this
code, using a three digit shift register and three modoulo -2 adders
C1
C2
C3
Commutator
Data input d d2
3
d1
C4
C5
C6
.Pe
1 Pe
100011
1
0
1
1
0
0
0
1
1
0
1
0
1
1
0
0
0
1
= [ 110 ]
For modulo-2 operation, subtraction is the same as addition the correct
transmitted code word C is given by
C= e
Pout
S= [ 110] = eHT
1 0 1
0 1 1
e
e
e
e
e
e
1 1 0
1 2 3 4 5 6
=
1 0 0
0 1 0
0 0 1
e=001000 satisfies this equation; Also does e=000110,00010101, or 011011, or
110000, or 101101, or 1000011. Hence, the suitable choice the minimum-weight
e, is 001000
Thus
C=100011 001000=101011
In error correction withis case, we observe that the decoder will first remove the
interlacing and regroup the received digits as x 1.x2x5; y1,y2y5 and z1,z2 z15.
If the doffed digits in fig. 3.5 were in error, since this is two error correcting code,
two or less errors in each row will surely be corrected. Thus, all the errors are
correctable. Notice that we have two r and am, or independent errors and one
burst of length 4 in all the 45 digits transmitted. Generally, if the original(n,k) code
is t- error correcting the interlaced code can correct any combination of t bursts
of length or less.
X1
y1
z1
X2
y2
z2
X3
y3
z3
X14
y14
z14
X15
y15
z15
k-bit frame
Input data
Logic
n-bit frame
Shifts
register
(n-bits)
S1
S2
Modulo 2
adders
commentator
S3
Let is illustrate this with an input digits of 11010. Firstly, all the stages of the
registor is clear; ie they are in 0 state. When the first data digit 1 enters the
register, the stage S1 shows 1 and all the other stages (S 2 and S3) are
unchanged; ie at 0 state. The two modulo -2 adders V 1=1 and v2=1 . The
commutator samples this output, given the coder output to 11. However , when
the 2nd message bit1 enters the register, it enters the stage s 1, and the previous
1 is S1 is shifted to S2=1 . Hence, the decoder output is 01. Also, when the 3 rd
message digits 0enters the register,
then S 1=0 , S2=1 and S3=1 and the
decoder output is 01 . The process continues until the last data digits enters the
stage S1.
In general, the convolution coder operates on a continuous basis .
4.0 Noise in Amplitude modulation systems
Introduction: Now we have to look at the be haviour of analog communication systems
in the presence of noise. When a signal power ST is transmitted over a channel as showed
in fig. 4.0 . The transmitted signal is corrupted by channel noise during transmission. The
Channel will altercate the signal. Hence, at the receiver input, a signal will nixed with
noise, and the signal and noise powers at this point are Si and Ni respectively. The
receiver processes the signal to yield the desire dsignal plys noise. The signal and noise
power at the receiver out put are So and No respectively. Thus, in analog communication
systems, the quality of the received signal is determined by raion . So/No which is th
output SNR. This rationcan be increased by increasing the transmitted power ST. other
factors which can affect the maximum value of ST are transmitter cost, channels etc.
Although, it is more convenient to deal with the received power rather than the
transmitted power ST.
4.1 Base band systems
This is where a signal is transmitted directly with out any modulation. This mode of
ommunication is suitable over a pair of wires, optical fiber, or coaxial cables. S0, it is
mainly used in short have links. Generally, base band systems serves as a basis against
which other systems may be compared. Hence the transmitter and the receiver are ideal
baseband filters as shown in fig 4.1. We have two low-pass filters. The first one is Hp(w)
which is at the transmitter limits the input signal spectrum to a given bandwidth, while
the other ,Hd(w) which is at the receiver eliminate the out-of-band noise and channel
interference. These filter can also serve as an optimize the signal-to-noise ratio (SNR) at
the receiver.
Sn(w)df
--------------------------(4.1)