A kind of coding/decoding method and device
Technical field
The present invention relates to optical communication field more particularly to a kind of coding/decoding methods and device.
Background technique
By factors such as the expansion of fixed broadband business, the rise of 3G/LTE mobile Internet, cloud computing/data center's extensive uses
It influences, network bandwidth requirements ramp in recent years, and by continual multiplication, this proposes optical transfer network rate and transmission reliability
Higher and higher requirement.Generally use forward error correction (forword error correction) technology in optical communications to reduce
Signal is reduced with reaching raising signal transmission quality to light device power requirement by the bit error rate caused by transmission
Purpose.RS code be in forward error correction through frequently with one of coding mode, correcting random mark mistake and random burst is wrong
Miss etc. is highly effective, has been widely applied to the fields such as optic communication, DTV, data storage.
Prior art application RS code generallys use serial decoded method when decoding, then a code word is serial for a code word
Processing, a code word 8bit a, it may be assumed that clock cycle can only handle 8bit, and this method low efficiency, data throughput is low, no
High-speed transfer can be competent to data handling requirements, be unfavorable for the raising of whole system transmission rate.
In order to improve decoding efficiency, the prior art coding/decoding method parallel using code word, each clock cycle is parallel
2 code words are handled, decoding efficiency and system data throughput increase, but this method is that two code words are simply parallel, is not
2 code words are handled simultaneously from algorithm support, and its its processing capacity for the OTN business of high-speed transfer is clearly inadequate
, it is larger to will lead to circuit scale, consumes a large amount of resource.
Summary of the invention
The main technical problem to be solved in the present invention is to provide a kind of coding/decoding method and device can be improved decoding efficiency,
Reduce the consumption of resource.
In order to solve the above technical problems, the present invention provides a kind of coding/decoding method, comprising the following steps:
The multi-channel service data inputted parallel are converted into serial traffic data;
Processing is decoded to the serial traffic data;
Decoded business datum is output to subsequent conditioning circuit according to timeslot multiplex mode.
Further, before the multi-channel service that will be inputted parallel is converted to serial traffic further include:
Bit wide processing is carried out to the multi-channel service inputted parallel, each road business bit wide is switched into unified bit wide.
Further, the process being decoded to the serial traffic data includes:
Operation is carried out to the serial traffic data and generates parallel associated polynomial;
According to the parallel associated polynomial generation error position multinomial and wrong amplitude multinomial;
Correction process is carried out to the serial traffic data according to the error location polynomial and wrong amplitude multinomial,
Restore original service data.
Further, the process for generating parallel adjoint polynomial to the progress operation of serial traffic data includes:
The associated polynomial that operation generates two bytes is carried out to the serial traffic data;
It is described according to the parallel associated polynomial generation error position multinomial and the wrong polynomial process packet of amplitude
It includes:
The error location polynomial and wrong width of two bytes are generated according to the associated polynomial operation of described two bytes
It is worth multinomial;
It is described that error correction is carried out to the serial traffic data according to the error location polynomial and wrong amplitude multinomial
Processing, the process for restoring original service data include:
Error polynomial and wrong amplitude multinomial to described two bytes carry out operation, obtain the mistake of two bytes
Position and error correction corrected value;
Correction process is carried out to the serial traffic data according to the errors present of two bytes and error correction corrected value, is restored
Original service data.
Further, the associated polynomial that the serial traffic data are carried out with operation two bytes of generation is specific
Process includes:
If the code word of the business datum received is multinomial are as follows: R (x)=rn-1xn-1+rn-2xn-2+…+r1x+r0;
General associated polynomial coefficient is calculated according to the codeword polynome
The associated polynomial coefficient of two bytes, described two words are calculated according to the general associated polynomial coefficient
The coefficient of the associated polynomial of section are as follows:
sj=((((rn·αj+rn-1)α2j+rn-2αj+rn-3)α2j+…+(r5αj+r4))α2j+r3αj+r2)α2j+r1αj+r0j=0,
1,2,…,15;
The associated polynomial of two bytes is generated according to the coefficient of the associated polynomial of described two bytes;
The error location polynomial and mistake that two bytes are generated according to the associated polynomial operation of described two bytes
Accidentally the polynomial detailed process of amplitude includes:
The associated polynomial of described two bytes is solved equation, error location polynomial and two byte mistakes are calculated
Accidentally amplitude multinomial;
If error location polynomial are as follows: Λ (x)=Λ0+Λ1x+Λ2x2+…+Λtxt, according to the error bit solved equation
It sets multinomial operation is carried out to the error location polynomial Λ (x) and obtain the error location polynomial of two bytes, described two
The error location polynomial of a byte are as follows:
Λ(α2i)=Λ0+Λ1α2i+Λ2α4i+…+Λ8α16i,i=0,1,2,…,127
Λ(α2i+1)=Λ0+Λ1α2i+1+Λ2α4i+2+…+Λ8α16i+8,i=0,1,2,…,127;
The error polynomial to described two bytes and wrong amplitude multinomial carry out operation, obtain two bytes
The process of errors present and error correction corrected value includes:
The error polynomial to described two bytes and wrong amplitude multinomial carry out operation, obtain two bytes
The process of errors present and error correction corrected value includes:
The errors present that money search obtains two bytes is carried out to the error polynomial of two bytes, while to described two
The wrong amplitude multinomial of byte carries out the error correction corrected value that two bytes are calculated in good fortune Buddhist nun.
Further, the business datum inputted parallel is OTUk business datum, wherein k=2e, 3e, 4.
For the purposes of solving above-mentioned technical problem, the present invention also provides a kind of decoding apparatus, comprising: conversion module,
Decoder module and output module;
The conversion module is converted for receiving the multi-channel service data inputted parallel, and by the business datum inputted parallel
For serial traffic data;
The decoder module is for being decoded processing to the serial traffic data;
The output module is used to decoded business datum being output to subsequent conditioning circuit according to timeslot multiplex mode.
Further, the decoding apparatus further include: bit width conversion module;
The bit width conversion module is for being converted to the multi-channel service data inputted parallel serially in the conversion module
Before business datum, bit wide processing is carried out to the multi-channel service data inputted parallel, the bit wide of each road business datum is switched to unite
One bit wide.
Further, the decoder module include: associated polynomial generation module, error location polynomial generation module,
Mistake amplitude multinomial and correction module;
The syndrome generation module is used to carry out operation to the serial traffic data to generate parallel associated polynomial;
The error location polynomial generation module is used for multinomial according to the parallel associated polynomial generation error position
Formula;
The mistake amplitude multinomial generation module is used for according to the raw wrong amplitude multinomial of the parallel associated polynomial;
The correction module is used for according to the error location polynomial and wrong amplitude multinomial to the serial traffic
Data carry out correction process, restore original service data.
Further, the syndrome generation module is used to carry out operation to the serial traffic data to generate two bytes
Associated polynomial;
The error location polynomial generation module is used to generate two according to the associated polynomial operation of described two bytes
The error location polynomial of a byte;
The mistake amplitude multinomial generation module is used to generate two according to the associated polynomial operation of described two bytes
The wrong amplitude multinomial of a byte;
The correction module is used to carry out operation to the error polynomial of described two bytes and wrong amplitude multinomial,
The errors present and error correction corrected value for obtaining two bytes, according to the errors present of two bytes and error correction corrected value to the string
Row business datum carries out correction process, restores original service data.
Further, the syndrome generation module is used to carry out operation to the serial traffic data to generate two bytes
The detailed process of associated polynomial include:
If the code word of the business datum received is multinomial are as follows: R (x)=rn-1xn-1+rn-2xn-2+…+r1x+r0;
General associated polynomial coefficient is calculated according to the codeword polynome
The associated polynomial coefficient of two bytes, described two words are calculated according to the general associated polynomial coefficient
The coefficient of the associated polynomial of section are as follows:
sj=((((rn·αj+rn-1)α2j+rn-2αj+rn-3)α2j+…+(r5αj+r4))α2j+r3αj+r2)α2j+r1αj+r0j=0,
1,2,…,15;
The associated polynomial of two bytes is generated according to the coefficient of the associated polynomial of described two bytes;
The error location polynomial generation module is used to generate two according to the associated polynomial operation of described two bytes
The detailed process of the error location polynomial of a byte includes:
The associated polynomial of described two bytes is solved equation, error location polynomial and two byte mistakes are calculated
Accidentally amplitude multinomial;
If error location polynomial are as follows: Λ (x)=Λ0+Λ1x+Λ2x2+…+Λtxt, according to the error bit solved equation
It sets multinomial operation is carried out to the error location polynomial Λ (x) and obtain the error location polynomial of two bytes, described two
The error location polynomial of a byte are as follows:
Λ(α2i)=Λ0+Λ1α2i+Λ2α4i+…+Λ8α16i,i=0,1,2,…,127
Λ(α2i+1)=Λ0+Λ1α2i+1+Λ2α4i+2+…+Λ8α16i+8,i=0,1,2,…,127;
The correction module is used to carry out the error bit that money search obtains two bytes to the error polynomial of two bytes
It sets, while the error correction corrected value that two bytes are calculated in good fortune Buddhist nun is carried out to the wrong amplitude multinomial of described two bytes.
Further, the business datum inputted parallel is OTUk business datum, wherein k=2e, 3e, 4.
The beneficial effects of the present invention are:
The present invention provides a kind of coding/decoding methods and device can be improved decoding efficiency, reduces resource consumption.Wherein this hair
Bright coding/decoding method includes: that the multi-channel service data that will be inputted parallel are converted to serial traffic data;To the serial traffic number
It is handled according to being decoded;Decoded business datum is output to subsequent conditioning circuit according to timeslot multiplex mode;This method will be parallel
The multiplex coding data of input are converted to serial data, make the shared decoding electricity all the way of multichannel incoming traffic using time-division multiplex technology
Road improves solution bit rate compared with prior art, saves resource.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for coding/decoding method that the embodiment of the present invention one provides;
Fig. 2 is a kind of parallel-to-serial converter that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow diagram for decoding process that the embodiment of the present invention one provides;
Fig. 4 is the flow diagram for another decoding process that the embodiment of the present invention one provides;
Fig. 5 is a kind of structural schematic diagram of associated polynomial computing circuit provided by Embodiment 2 of the present invention;
Fig. 6 is a kind of operational flowchart of solving key equation provided by Embodiment 2 of the present invention;
Fig. 7 is a kind of structural schematic diagram of the computing circuit of solving key equation provided by Embodiment 2 of the present invention;
Fig. 8 is a kind of structural schematic diagram of money search module provided by Embodiment 2 of the present invention;
Fig. 9 is the structural schematic diagram that a kind of money provided by Embodiment 2 of the present invention searches for subelement Cm;
Figure 10 is the schematic diagram that a kind of good fortune Buddhist nun provided by Embodiment 2 of the present invention calculates;
Figure 11 is the structural schematic diagram for the first decoding apparatus that the embodiment of the present invention three provides;
Figure 12 is the structural schematic diagram for second of decoding apparatus that the embodiment of the present invention three provides;
Figure 13 is the structural schematic diagram for the third decoding apparatus that the embodiment of the present invention three provides;
Figure 14 is a kind of structural schematic diagram for decoding apparatus that the embodiment of the present invention four provides;
Figure 15 is a kind of schematic diagram for zero padding interleaving treatment that the embodiment of the present invention four provides.
Specific embodiment
Below by specific embodiment combination attached drawing, invention is further described in detail.
Embodiment one:
Such as Fig. 1, a kind of coding/decoding method is present embodiments provided, comprising the following steps:
Step 101: the multi-channel service data inputted parallel are converted into serial traffic data;
Step 102: processing is decoded to the serial traffic data;
Step 103: decoded business datum is output to subsequent conditioning circuit according to timeslot multiplex mode.
The multiplex coding business inputted parallel can be converted to serial traffic by the coding/decoding method of the present embodiment, and to serial
Business is decoded processing, and exports decoded data using timeslot multiplex mode, and the coding/decoding method of the present embodiment uses
Time-division multiplex technology can make multi-channel service data sharing decoding circuit all the way, meet processing high speed business requirement, improve
Decoding efficiency and data throughput avoid passing through the mode for increasing decoding circuit to improve decoding efficiency, reduce resource
Consumption.A variety of coding business of the coding/decoding method of the present embodiment suitable for optic communication, such as more specification Reed Solomon codes
(RS) business.
Serial industry is converted to by the multi-channel service data of coded treatment by what is inputted parallel in the step 101 of the present embodiment
Business data can be completed by circuit as shown in Figure 2, for solving RS code, when the three tunnel business inputted parallel, and business difference
For OTU1, OTU2, OTU3;The road Tu2Zhong Duige business stores respectively, is such as stored in RAM, when a line has been expired in business datum storage
When generate full status signal, be sent into punching circuit, which arbitration circuit determines according to type of service, corresponding memory module RAM state
Business is first sent into rear class decoding circuit and is decoded processing all the way, i.e., the process realizes different business parallel-serial conversion.
The coding/decoding method of the present embodiment, before step 101 further include: the multi-channel service inputted parallel is carried out at bit wide
Reason, switchs to unified bit wide for each road business bit wide.Such as the OTU1 business bit wide inputted parallel is 32bit, OTU2 service digit
Width is 128bit, and OTU3 business is 256bit.OTU1/2 business bit wide is converted to unified 256bit by bit width conversion circuit, so
The OTU1/2/3 that bit wide is 256bit is inputted into parallel-to-serial converter parallel afterwards.
The step of being decoded in above-mentioned steps 102 to the serial traffic data include:
Operation is carried out to the serial traffic data and generates parallel associated polynomial;
According to the parallel associated polynomial generation error position multinomial and wrong amplitude multinomial;
Correction process is carried out to the serial traffic data according to the error location polynomial and wrong amplitude multinomial,
Restore original service data.
By taking RS is decoded as an example, decoding process is generally divided into following several steps, as shown in Figure 3:
Step 301: being docked to the code word R(x of business datum it) carries out operation and obtains associated polynomial;
Such as it assume that codeword polynome are as follows: R (x)=rn-1xn-1+rn-2xn-2+…+r1x+r0;Codeword polynome is carried out
Operation obtains sj, i.e. associated polynomial;
Step 302: to associated polynomial sjIt carries out operation and obtains error location polynomial Λ (x) and wrong amplitude multinomial
Ω(x);
Calculate error polynomial be exactly solve RS code key equation generally use BM iterative algorithm, PGZ algorithm or
Euclidean algorithm obtains error location polynomial Λ (x) and mistake amplitude multinomial Ω (x) by solving equation;
Step 303: operation being carried out to error location polynomial Λ (x) and mistake amplitude multinomial Ω (x) and obtains E(x);
Step 304: correction process being carried out to serial traffic data according to error pattern E (x), restores original service data.
RS decoding is to pass through C(x)=R(x)-E (x) corrects data, C(x) it is correct code word after correcting.
As shown in figure 4, decoding algorithm in the present embodiment coding/decoding method can parallel data processing to two bytes into
Row decoding, the process being decoded to the data of two bytes include:
Step 401: the associated polynomial that operation generates two bytes is carried out to the serial traffic data;
Step 402: the error location polynomial of two bytes is generated according to the associated polynomial operation of described two bytes
With wrong amplitude multinomial;
Step 403: error polynomial and wrong amplitude multinomial to described two bytes carry out operation, obtain two words
The errors present and error correction corrected value of section;
Step 404: error correction is carried out to the serial traffic data according to the errors present of two bytes and error correction corrected value
Processing restores original service data.
The detailed process that the present embodiment coding/decoding method is decoded two bytes is described below:
In above-mentioned steps 401 the serial traffic data are carried out with the specific of the associated polynomial of operation two bytes of generation
Process includes:
If the code word of the business datum received is multinomial are as follows: R (x)=rn-1xn-1+rn-2xn-2+…+r1x+r0;
General associated polynomial coefficient is calculated according to the codeword polynome
The associated polynomial coefficient of two bytes, described two words are calculated according to the general associated polynomial coefficient
The coefficient of the associated polynomial of section are as follows:
sj=((((rn·αj+rn-1)α2j+rn-2αj+rn-3)α2j+…+(r5αj+r4))α2j+r3αj+r2)α2j+r1αj+r0j=0,
1,2,…,15;
The associated polynomial of two bytes is generated according to the coefficient of the associated polynomial of described two bytes;
The errors present for generating two bytes according to the associated polynomial operation of described two bytes in above-mentioned steps 402 is more
Item formula and the wrong polynomial detailed process of amplitude include:
The associated polynomial of described two bytes is solved equation, error location polynomial and two bytes are calculated
Mistake amplitude multinomial;
If error location polynomial are as follows: Λ (x)=Λ0+Λ1x+Λ2x2+…+Λtxt, according to the error bit solved equation
It sets multinomial operation is carried out to the error location polynomial Λ (x) and obtain the error location polynomial of two bytes, described two
The error location polynomial of a byte are as follows:
Λ(α2i)=Λ0+Λ1α2i+Λ2α4i+…+Λ8α16i,i=0,1,2,…,127
Λ(α2i+1)=Λ0+Λ1α2i+1+Λ2α4i+2+…+Λ8α16i+8,i=0,1,2,…,127;
Operation is carried out to the error polynomial of described two bytes and wrong amplitude multinomial in above-mentioned steps 403, is obtained
The errors present of two bytes and the process of error correction corrected value include:
The errors present that money search obtains two bytes is carried out to the error polynomial of two bytes, while to described two
The wrong amplitude multinomial of byte carries out the error correction corrected value that two bytes are calculated in good fortune Buddhist nun.
The coding/decoding method of the present embodiment is suitable for the decoding to OTUk business datum, wherein k=2e, 3e, 4.
The coding/decoding method of the present embodiment can be decoded processing to the data of two bytes simultaneously, compared with prior art
Substantially increase decoding efficiency.
Carrying out RS decoding using the coding/decoding method of the present embodiment has effect below:
(1) larger using circuit scale when single channel decoding circuit parallel mode processing multi-channel service.When the business road of processing
When number is more, such as there is decoding circuit all the way per business all the way, then entire circuit scale is very big, and the resource of consumption is quite a few.?
It is that can save resource using coding/decoding method of the invention the problem of must be taken into consideration that resource consumption is reduced on implementation.
(2) for OTN business, 100G processing is development trend, and chip must also have such processing capacity, and
RS decoding circuit does not have such processing capacity still at present.It is parallel to improve OTN business by exploitation new algorithm for the method for the present invention
Processing capacity has reached the requirement of 100G business processing.
(3) the OTU(Optical Channel Transport Unit specified in the G.709 agreement) for frame format,
Using parallel decoding method of the invention, each clock can handle at least two code word, and decoding efficiency improves at least 1 times;
(4) by taking OTU frame format as an example, data throughput of the serial coding/decoding method of the RS of the prior art under 456MHz clock
For 58.368Gbps, and use two code word parallel decoding mode throughputs for 116.736Gbps.Data throughput further mentions
Height, it is very helpful for the promotion of transmission network rate, meet 100G rate business processing requirement.
Embodiment two:
The present embodiment is discussed in detail to two decoded algorithms of byte parallel, and the bit wide of the business datum inputted parallel is
256bit:
Step 1: parallel syndrome calculates;
If the codeword polynome of the business datum received are as follows: R (x)=rn-1xn-1+rn-2xn-2+…+r1x+r0, by business number
According to codeword polynome calculate general syndrome multinomial coefficient sjCalculation method, the calculating of the syndrome coefficient can be by
Computing circuit shown in fig. 5 is completed:
Wherein, j=0,1,2, Xi, 15,
To general syndrome multinomial coefficient sjAlgorithm development is carried out, the associated polynomial coefficient of two bytes is obtained,
The associated polynomial coefficient are as follows:
sj=((((rn·αj+rn-1)α2j+rn-2αj+rn-3)α2j+…+(r5αj+r4))α2j+r3αj+r2)α2j+r1αj+r0j=0,
1,2,…,15;
The associated polynomial coefficient of last two bytes calculated constructs corresponding associated polynomial.
Step 2: solving key equation;
The purpose of solving key equation is by the syndrome polynomial computation error location polynomial of two bytes of the first step
With wrong amplitude multinomial;Wherein wrong amplitude multinomial is the wrong amplitude multinomial Ω (x) of two bytes;
Solving key equation can use RIBM algorithm, and specific calculating process can refer to Fig. 6;
The computing circuit of the concrete operation circuit of solving key equation as shown in Figure 7 is realized, in Fig. 7 under control unit control
The interative computation for carrying out for 16 periods completes solving key equation process.Calculate error location polynomial and wrong amplitude system of polynomials
Number.Error location polynomial and wrong amplitude multinomial can be obtained in the present embodiment using the algorithm of any maturation.
Step 3: being transported after calculating error location polynomial to the calculated error location polynomial of second step
It calculates and derives, the process of algorithm development is as follows:
If error location polynomial are as follows: Λ (x)=Λ0+Λ1x+Λ2x2+…+Λtxt, solved equation according to second step
Error location polynomial carries out algorithm development to the error location polynomial Λ (x), is derived from the error bit of two bytes
Set multinomial Λ (x):
Λ(α2i)=Λ0+Λ1α2i+Λ2α4i+…+Λ8α16i,i=0,1,2,…,127
Λ(α2i+1)=Λ0+Λ1α2i+1+Λ2α4i+2+…+Λ8α16i+8,i=0,1,2,…,127
Step 4: calculated according to error location polynomial Λ (x) and mistake amplitude multinomial Ω (x) obtain errors present with
Error correction corrected value;
The errors present of two bytes, specific money search process are obtained using money search to above-mentioned error location polynomial
Module is completed as shown in Figure 8, is as depicted in figure 8 the parallel money search module structural schematic diagram of two-way;Money search wherein in Fig. 8 is single
The structural schematic diagram of first Cm is as shown in Figure 9;
The error correction corrected value that two bytes are calculated in good fortune Buddhist nun, error correction correction are carried out to above-mentioned wrong amplitude multinomial simultaneously
It is worth the formula calculated are as follows: ex=(x16Ω (x))/(x Λ ' (x)), Λ ' (x) is the derived function of Λ (x), the even power of Λ (x)
The derivative for the odd times power that derivative is zero, Λ (x) is Λodd(x)/x;The process that specific good fortune Buddhist nun calculates refers to Figure 10.
Step 4: generating the error pattern E (x) of two bytes according to calculated errors present and error correction corrected value;
Step 5: carrying out two byte error correction according to serial traffic data of the error pattern E (x) of two bytes to output
Processing restores the business datum of original two bytes;
Particular by C(x)=R(x)-E (x) this formula corrects data, C(x) it is correct code after correcting
Word.
Embodiment three:
As shown in figure 11, a kind of decoding apparatus is present embodiments provided, comprising: conversion module, decoder module and output mould
Block;
The conversion module is converted for receiving the multi-channel service data inputted parallel, and by the business datum inputted parallel
For serial traffic data;
The decoder module is for being decoded processing to the serial traffic data;
The output module is used to decoded business datum being output to subsequent conditioning circuit according to timeslot multiplex mode.
As shown in figure 12, the decoding apparatus of the present embodiment can also include: bit width conversion module;
The bit width conversion module is for being converted to the multi-channel service data inputted parallel serially in the conversion module
Before business datum, bit wide processing is carried out to the multi-channel service data inputted parallel, the bit wide of each road business datum is switched to unite
One bit wide.
As shown in figure 13, decoder module provided in this embodiment may include: associated polynomial generation module, errors present
Multinomial generation module, mistake amplitude multinomial and correction module;
The syndrome generation module is used to carry out operation to the serial traffic data to generate parallel associated polynomial;
The error location polynomial generation module is used for multinomial according to the parallel associated polynomial generation error position
Formula;
The mistake amplitude multinomial generation module is used for according to the raw wrong amplitude multinomial of the parallel associated polynomial;
The correction module is used for according to the error location polynomial and wrong amplitude multinomial to the serial traffic
Data carry out correction process, restore original service data.
In another application scenarios, the decoding apparatus of the present embodiment can the business datum to two bytes located parallel
Reason, the function of each module in the present embodiment in decoder module is as follows at this time:
Syndrome generation module is used to carry out the associated polynomial that operation generates two bytes to the serial traffic data;
Error location polynomial generation module is used to generate two words according to the associated polynomial operation of described two bytes
The error location polynomial of section;
Mistake amplitude multinomial generation module is used to generate two words according to the associated polynomial operation of described two bytes
The wrong amplitude multinomial of section;
Correction module is used to carry out operation to the error polynomial of described two bytes and wrong amplitude multinomial, obtains two
The errors present and error correction corrected value of a byte, according to the errors present of two bytes and error correction corrected value to the serial traffic
Data carry out correction process, restore original service data.
The present embodiment decoding apparatus is described below specifically to locate each module of the business datum parallel decoding of two bytes
Reason process:
The syndrome generation module is used to carry out the serial traffic data operation and generates the adjoint more of two bytes
The detailed process of formula includes:
If the code word of the business datum received is multinomial are as follows: R (x)=rn-1xn-1+rn-2xn-2+…+r1x+r0;
General associated polynomial coefficient is calculated according to the codeword polynome
The associated polynomial coefficient of two bytes, described two words are calculated according to the general associated polynomial coefficient
The coefficient of the associated polynomial of section are as follows:
sj=((((rn·αj+rn-1)α2j+rn-2αj+rn-3)α2j+…+(r5αj+r4))α2j+r3αj+r2)α2j+r1αj+r0 j=
0,1,2,…,15;
The associated polynomial of two bytes is generated according to the coefficient of the associated polynomial of described two bytes;
The error location polynomial generation module is used to generate two according to the associated polynomial operation of described two bytes
The detailed process of the error location polynomial of a byte includes:
The associated polynomial of described two bytes is solved equation, error location polynomial and two byte mistakes are calculated
Accidentally amplitude multinomial;
If error location polynomial are as follows: Λ (x)=Λ0+Λ1x+Λ2x2+…+Λtxt, according to the error bit solved equation
It sets multinomial operation is carried out to the error location polynomial Λ (x) and obtain the error location polynomial of two bytes, described two
The error location polynomial of a byte are as follows:
Λ(α2i)=Λ0+Λ1α2i+Λ2α4i+…+Λ8α16i,i=0,1,2,…,127
Λ(α2i+1)=Λ0+Λ1α2i+1+Λ2α4i+2+…+Λ8α16i+8,i=0,1,2,…,127;
The correction module is used to carry out the error bit that money search obtains two bytes to the error polynomial of two bytes
It sets, while the error correction corrected value that two bytes are calculated in good fortune Buddhist nun is carried out to the wrong amplitude multinomial of described two bytes.
The specific operation process for the decoding apparatus that the present embodiment mentions can refer to the above-mentioned description to coding/decoding method, such as
With reference to the description of Fig. 2,4,5,6,7,8,9,10.
Through the above description, it can be seen that the multiplex coding business that the decoding apparatus of the present embodiment will can input parallel
Serial traffic is converted to, and processing is decoded to serial traffic, and decoded data are exported using timeslot multiplex mode, this
The decoding apparatus of embodiment uses time-division multiplex technology, can make multi-channel service data sharing decoding circuit all the way, meets
The requirement of processing high speed business, improves decoding efficiency and data throughput, avoids passing through and increases decoding circuit to improve decoding
The mode of efficiency reduces the consumption of resource.A variety of coding business of the decoding apparatus of the present embodiment suitable for optic communication, example
Such as more specification Reed Solomon code (RS) business.The decoding apparatus of the present embodiment applies also for solving OTUk business datum
Code, wherein k=2e, 3e, 4.
Example IV:
As shown in figure 14, another decoding apparatus is present embodiments provided, increases caching mould on the basis of implementing three
Block, zero padding interleaving block, zero-suppress de-interleaving block;
The zero padding interleaving block is used to carry out zero padding interleaving treatment to serial traffic data before being decoded, after obtaining
Grade operation is all the integer clock cycle;When to bit wide is that 256bitOTU business carries out RS decoding, the process of zero padding processing
With reference to Figure 15;
Cache module is used to cache the serial traffic data Jing Guo zero padding interleaving treatment;It can be FIFO first in first out
Buffer;
The de-interleaving block that zero-suppresses keeps its extensive for carrying out deinterleaving processing of zero-suppressing to the business datum after correction process
It is again the business datum of unprocessed form.Such as original OTN frame format can be reverted to.
It is described in detail below and the decoded process of RS is carried out to three road OUT business using the present embodiment decoding apparatus:
Step 1: the OTU2 business bit wide inputted parallel is 32bit, and OTU3 business bit wide is 128bit, and OTU4 business is
256bit.OTU2/3 business bit wide is converted to unified 256bit by bit width conversion circuit.
Step 2: each road business of 256bit bit wide is stored in RAM, and the full status signal of row is generated when having expired a line,
It is sent into arbitration circuit;Arbitration circuit determines which business is first sent into rear class algorithm circuit according to type of service, corresponding RAM state
Processing, is shown in Fig. 2.This step completes different business parallel-serial conversion.
Step 3: into the carry out business decoding process of algorithm circuit.Zero padding interleaving treatment is carried out first.At zero padding
Reason is shown in Figure 15, so that rear class operation is all the integer clock cycle, the data after intertexture send to cache module caching for example all the way
Fifo buffer sends to algorithm operation all the way.
Step 4: business datum is sent into syndrome generation module, structural reference Fig. 5 of the module after zero padding interweaves.
The syndrome operation is the 2 byte parallel mathematical algorithms based on innovation, in OTN frame structure 16 code blocks simultaneously into
Row operation, each code block calculate 2 bytes simultaneously.
Step 5: error polynomial generation module and wrong amplitude multinomial generation module use RiBM algorithm solution key side
Journey;
The interative computation for carrying out for 16 periods under control unit control as shown in Figure 7 completes solving key equation process.It calculates
Make mistake position multinomial and error value multinomial coefficient.
Step 6: the search of errors present is completed in money search according to error location polynomial, and circuit is aforementioned according to this use-case
The design of money searching algorithm formula is innovated, two byte search operations can be completed at the same time, see Fig. 8.
Step 7: it is that good fortune Buddhist nun calculating is carried out according to wrong amplitude multinomial simultaneously with step 6, calculates two words
Good fortune Buddhist nun's error correction corrected value of section.Detailed process is shown in Figure 10.
Step 8: correction module calculates the data bit that mistake occurs in the data of cache module output using money search
It sets, again according to the calculated corrected value of good fortune Buddhist nun
Step 9: according to errors present and corrected value generation error pattern, number is exported to caching fifo according to error pattern
Two byte corrections are carried out according to the bit of corresponding position.
Step 10: the business datum by correction process is sent into the de-interleaving block that zero-suppresses and reverts to OTN frame format.
Step 11: each business datum is output to late-class circuit according to timeslot multiplex mode.
Carrying out RS decoding using the decoding apparatus of the present embodiment has effect below:
(1) larger using circuit scale when single channel decoding circuit parallel mode processing multi-channel service.When the business road of processing
When number is more, such as there is decoding circuit all the way per business all the way, then entire circuit scale is very big, and the resource of consumption is quite a few.?
It is that can save resource using coding/decoding method of the invention the problem of must be taken into consideration that resource consumption is reduced on implementation.
(2) for OTN business, 100G processing is development trend, and chip must also have such processing capacity,
And RS decoding circuit does not have such processing capacity still at present.The method of the present invention improves OTN business simultaneously by exploitation new algorithm
Row processing capacity has reached the requirement of 100G business processing.
(3) the OTU(Optical Channel Transport Unit specified in the G.709 agreement) for frame format,
Using parallel decoding method of the invention, each clock can handle at least two code word, and decoding efficiency improves at least 1 times;
(4) by taking OTU frame format as an example, data throughput of the serial coding/decoding method of the RS of the prior art under 456MHz clock
For 58.368Gbps, and use two code word parallel decoding mode throughputs for 116.736Gbps.Data throughput further mentions
Height, it is very helpful for the promotion of transmission network rate, meet 100G rate business processing requirement.
The above content is specific embodiment is combined, further detailed description of the invention, and it cannot be said that this hair
Bright specific implementation is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, it is not taking off
Under the premise of from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to protection of the invention
Range.