Forums

Reed Solomon Encoder

Started by florence8106 August 24, 2006
Hello

I am modelling a magnetic recording channel and implementing the reed
solomon encoder and decoder for better error correcting codes. My system
input is the random binary interger. then I AM using RS (256,239), is that
any ways that i can input the binary string for RS Encoder and Display in
binary after the encoder ? The binary output of the RS encoder is that go
to the magnetic recording channel and then go throught the RS decoder at
the end.Is that any method that i can convert the binary output from the
recording channel into the GF elemets that can input to the RS Decoder and
finally display the RS Decoder output in binary again?

Florence
 
 %%%%%%%%%%%Binary Input%%%%%%%
 Input=round(rand(1,BLOCK_LENGTH));

%%%%%%%%%%%%RS Encoding
??????
 
%%%%%%%%%%%%%%%%%%%%Magnetic channel
 A=[1 -1];
 NRZI_Delay=conv(Input,A); 
 NRZI_Input=NRZI_Delay(1:end-Delay); 

 %%%%Lorentzian Pulse%%%%%%%%%%%%%%
       PW50=Dc*Tc;t=-20:Tc:20;                     
       Lorentzian_Pulse=Lorentzian(PW50,t);
       ReadWave_Delay=conv(NRZI_Input,Lorentzian_Pulse);              
       ReadWave=ReadWave_Delay(Ch_Delay+1:end-Ch_Delay+1);  
       ReadNoise=awgn(ReadWave,SNR);

%%%Detection*******************************
       PR4=[1 1];
       PR4_Out=conv(ReadNoise,PR4);
       Peak_PR4=deconv(PR4_Out,[1 0 -1]);
       Peak_PR4_Out=round(Peak_PR4); %%%%In binary

%%%%%RS Decoder************************

??????

%%%%%%%%%Binary Output*************
??????