Bahman
Posts:
9
Registered:
4/12/11
|
|
Re: commBCHEncoder/commBCHDecoder
Posted:
Jul 3, 2012 2:24 AM
|
|
"Fulus " <case28@gmail.com> wrote in message <jstf33$fjh$1@newscl01ah.mathworks.com>... > "Spiros" wrote in message <ieo99b$lep$1@fred.mathworks.com>... > > Hi Ethem > > A found a solution, but the one you propose is more elegant. > > Thanks a lot. > > Regards Spiros > > Hello, > > I really need immediate assistance on BCH encoding and decoding for dvbs2. I have encountered similar problems as you did. could you kindly assist me here. thanks > > Fulus %Dear fulus this is an example for QPSK 8/9 try it
genBCH_t8 =[1 0 0 0 1 1 1 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 1 ... 0 1 0 1 0 1 1 1 1 1 0 1 1 1 0 0 0 1 0 0 1 0 0 ... 1 1 1 1 0 0 1 0 1 1 1 1 0 1 1 1 1 0 1 0 0 0 1 ... 1 0 0 1 1 1 1 1 1 1 0 0 0 1 1 0 1 1 0 1 0 1 1 ... 1 0 1 0 1 0 0 0 0 0 1 0 0 1 1 1 1 1 0 0 1 0 1 ... 1 0 0 1 1 0 0 0 1 0 1 0 1 1]; H = dvbs2ldpc(8/9); K_BCH=57472; N_BCH=57600; genBCH=genBCH_t8; EncoderBCH = comm.BCHEncoder; EncoderBCH.CodewordLength=N_BCH; EncoderBCH.MessageLength=K_BCH; EncoderBCH.PrimitivePolynomialSource='Property'; EncoderBCH.PrimitivePolynomial=de2bi(65581,'left-msb'); EncoderBCH.GeneratorPolynomialSource='Property'; EncoderBCH.GeneratorPolynomial=genBCH; EncoderBCH.CheckGeneratorPolynomial= false; henc = fec.ldpcenc(H); hdec = fec.ldpcdec(H); hdec.DecisionType = 'Hard decision'; hdec.OutputFormat = 'Information part'; hdec.NumIterations = 50;
hdec.DoParityChecks = 'Yes';
DecoderBCH = comm.BCHDecoder; DecoderBCH.CodewordLength=N_BCH; DecoderBCH.MessageLength=K_BCH; DecoderBCH.PrimitivePolynomialSource='Property'; DecoderBCH.PrimitivePolynomial=de2bi(65581,'left-msb'); DecoderBCH.GeneratorPolynomialSource='Property'; DecoderBCH.GeneratorPolynomial=genBCH; DecoderBCH.CheckGeneratorPolynomial= false; bahman
|
|