Generate the message:
*********************
n = no of bits in the message
r = random message normally distributed between 0 & 1
m = the i/p message


Building the block:
*******************
g1 , g2 = generation polynomials in binary
g = matrix used to contain generation formulas
k=no of flip-flops _ order of the PN code
r = rate of the Encoder
R = no of outputs


Encoding:
*********
z = dummy parameter used to save the needed generation formula
s = vector contain the output of the flip-flops
o = contains the bits connected to the XOR
d = counter of o, also used as indicator of the no of inputs of the XOR
p = the output of the XOR
E = the encoded output in serial format
Counters:
---------
t = the input counter – scan the message bits
i = used to scan the no of outputs per input
j = used to scan the output of the flip-flops to get the inputs of the XOR
h = used to make the XOR operation – scan the XOR inputs
f = used to shift the flip-flops outputs  


Interface with serial port:
***************************
prt = the serial port object
Er = The encoded output from the kit - the i/p of the serial port


Comparing the results:
**********************
test = user to save the error pattern 
NOE = Total no of errors 
LOE = Location of Wrong bits 
L = counter for LOE
	
	


