WO2014187138A1 - Decoding method and apparatus - Google Patents

Decoding method and apparatus Download PDF

Info

Publication number
WO2014187138A1
WO2014187138A1 PCT/CN2013/090736 CN2013090736W WO2014187138A1 WO 2014187138 A1 WO2014187138 A1 WO 2014187138A1 CN 2013090736 W CN2013090736 W CN 2013090736W WO 2014187138 A1 WO2014187138 A1 WO 2014187138A1
Authority
WO
WIPO (PCT)
Prior art keywords
polynomial
error
service data
byte
adjoint
Prior art date
Application number
PCT/CN2013/090736
Other languages
French (fr)
Chinese (zh)
Inventor
曾纪瑞
王通
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014187138A1 publication Critical patent/WO2014187138A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • H04L1/0052Realisations of complexity reduction techniques, e.g. pipelining or use of look-up tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J2203/00Aspects of optical multiplex systems other than those covered by H04J14/05 and H04J14/07
    • H04J2203/0001Provisions for broadband connections in integrated services digital network using frames of the Optical Transport Network [OTN] or using synchronous transfer mode [STM], e.g. SONET, SDH
    • H04J2203/0089Multiplexing, e.g. coding, scrambling, SONET
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1652Optical Transport Network [OTN]

Definitions

  • the present invention relates to the field of optical communications, and in particular, to a decoding method and apparatus.
  • RS code is one of the frequently used coding methods in forward error correction. It is very effective in correcting random symbol errors and random burst errors. It has been widely used in optical communication, digital TV, data storage and other fields.
  • Correlation technology usually uses serial decoding when RS code decoding is used.
  • One codeword is processed serially by one codeword.
  • One codeword is 8 bits, ie: only 8 bits can be processed in one clock cycle. This method is inefficient and data throughput The low rate is not suitable for high-speed transmission data processing requirements, which is not conducive to the overall system transmission rate.
  • the related art scheme uses a codeword parallel decoding method, and processes two codewords in parallel in each clock cycle, and the decoding efficiency and the system data throughput rate are improved, but the method is that the two codewords are simple and parallel. It is not the simultaneous processing of 2 code words from the algorithm support, and its processing capability for the high-speed transmission OTN service is obviously insufficient, which leads to a large circuit scale and consumes a large amount of resources.
  • Embodiments of the present invention provide a decoding method and apparatus, which can improve decoding efficiency and reduce resource consumption.
  • An embodiment of the present invention provides a decoding method, including:
  • the method further includes: performing bit width processing on the parallel input multi-path service, and converting each service bit width into a unified bit width.
  • Decoding the serial service data including:
  • the computing the serial service data to generate a parallel adjoint polynomial including:
  • the serial service data is error-corrected according to the error position of two bytes and the error correction correction value, and the original service data is restored.
  • the operation of the serial service data to generate a two-byte adjoint polynomial comprises: setting a codeword polynomial of the received service data to:
  • the position polynomial is:
  • the pair of the two bytes The error location polynomial and the error amplitude polynomial operate, and the process of obtaining the error location and error correction correction value of two bytes includes:
  • a two-byte error location polynomial is searched for a two-byte error location, and a two-byte error correction correction value is obtained by performing a Fourier calculation on the two-byte error magnitude polynomial.
  • An embodiment of the present invention further provides a decoding apparatus, including: a conversion module, a decoding module, and an output module;
  • the conversion module is configured to receive the multi-path service data input in parallel, and convert the parallel input multi-path service data into serial service data;
  • the decoding module is configured to decode the serial service data
  • the output module is configured to output the decoded service data to a subsequent circuit in a time slot multiplexing manner.
  • the decoding device further includes: a bit width conversion module
  • the bit width conversion module is configured to perform bit width processing on the parallel input multi-path service data before the conversion module converts the parallel input multi-path service data into serial service data, and set the bit width of each service data. Convert to a uniform bit width.
  • the decoding module includes: a companion polynomial generating module, an error location polynomial generating module, an error amplitude polynomial generating module, and an error correcting module;
  • the adjoint polynomial generation module is configured to perform operation on the serial service data to generate a parallel adjoint polynomial
  • the error location polynomial generation module is configured to generate an error location polynomial according to the parallel adjoint polynomial;
  • the error amplitude polynomial generation module is configured to generate an error amplitude polynomial according to the parallel adjoint polynomial;
  • the error correction module is configured to perform error correction processing on the serial service data according to the error location polynomial and an error amplitude polynomial to recover original service data.
  • the adjoint polynomial generation module is configured to operate on the serial service data to generate a two-byte adjoint polynomial
  • the error location polynomial generation module is configured to generate a two-byte error location polynomial based on the two-byte adjoint polynomial operation;
  • the error amplitude polynomial generation module is configured to generate a two-byte error magnitude polynomial according to the two-byte adjoint polynomial operation;
  • the error correction module is configured to operate on the error location polynomial and the error amplitude polynomial of the two bytes to obtain an error position of two bytes and an error correction correction value, according to the error position and correction of two bytes
  • the error correction value performs error correction processing on the serial service data to restore the original service data.
  • the companion polynomial generating module operates the serial service data to generate a two-byte adjoint polynomial by:
  • the error location polynomial generation module generates a two-byte error location polynomial according to the two-byte concomitant polynomial operation as follows:
  • the error position polynomial calculated according to the solution equation operates the error position polynomial ⁇ ( ⁇ ) to obtain a two-byte error position polynomial, the two The byte error location polynomial is:
  • the error correction module is set to two bytes Error location polynomial for money search to get two The error position of the byte, and the Fourier error correction polynomial is calculated at the same time to obtain two bytes of error correction correction value.
  • the embodiment of the invention provides a decoding method and device, which can improve decoding efficiency and reduce resource consumption.
  • the decoding method of the embodiment of the present invention includes: converting parallel input multi-path service data into serial service data; performing decoding processing on the serial service data; and outputting the decoded service data according to slot multiplexing mode Subsequent circuit; the method converts the parallel input multi-channel encoded data into serial data, and uses the time division multiplexing technology to make the multiple input services share one decoding circuit, which improves the decoding rate and saves resources compared with the related technology.
  • FIG. 1 is a schematic flowchart of a decoding method according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic flowchart of a decoding process according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic structural diagram of a companion polynomial operation circuit according to Embodiment 2 of the present invention
  • FIG. 6 is a flowchart of an operation of solving a key equation according to Embodiment 2 of the present invention
  • FIG. 7 is a schematic structural diagram of an operation circuit for solving a key equation according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of a money search module according to Embodiment 2 of the present invention.
  • FIG. 9 is a schematic structural diagram of a money search subunit Cm according to Embodiment 2 of the present invention
  • FIG. 10 is a schematic diagram of a Foley calculation according to Embodiment 2 of the present invention
  • FIG. 11 is a schematic structural diagram of a first decoding apparatus according to Embodiment 3 of the present invention.
  • FIG. 12 is a schematic structural diagram of a second decoding apparatus according to Embodiment 3 of the present invention.
  • FIG. 13 is a schematic structural diagram of a third decoding apparatus according to Embodiment 3 of the present invention
  • FIG. 14 is a schematic structural diagram of a decoding apparatus according to Embodiment 4 of the present invention
  • FIG. 15 is a schematic diagram of a zero-padding interleaving process according to Embodiment 4 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • this embodiment provides a decoding method, including the following steps: Step 101: Convert parallel input data of multiple services into serial service data.
  • Step 102 Perform decoding processing on the serial service data.
  • Step 103 Output the decoded service data to a subsequent circuit according to a time slot multiplexing manner.
  • the decoding method of this embodiment can convert the parallel input multi-channel encoding service into a serial service, decode the serial service, and output the decoded data by using the slot multiplexing mode.
  • the decoding method in this embodiment ⁇ The time division multiplexing technology is used, which can make the multi-channel service data share one decoding circuit, meet the requirements of processing high-speed service, improve the decoding efficiency and data throughput rate, avoid the method of increasing the decoding efficiency by increasing the decoding circuit, and reduce the resources. Consumption.
  • the decoding method of this embodiment is applicable to a plurality of encoding services in optical communication, for example, a multi-standard Reed-Solomon code (RS) service.
  • RS Reed-Solomon code
  • step 101 of the embodiment converting the encoded multi-path service data input in parallel into serial service data can be completed by the circuit shown in FIG. 2, taking the RS code as an example, when the three-way service is input in parallel.
  • the services are respectively optical channel transmission units (OTU1, OTU2, OTU3); in Figure 2, each service is stored separately, for example, stored in RAM, and a full status signal is generated when the service data is full of one line, and is sent to arbitration.
  • the circuit and the arbitration circuit determine which service is first sent to the subsequent decoding circuit for decoding according to the service type, corresponding to the RAM state of the storage module, that is, the process realizes parallel conversion of different services.
  • the decoding method of this embodiment further includes: performing bit width processing on the parallel input multi-path services, and converting each service bit width into a unified bit width.
  • the OTU1 service bit width of the parallel input is 32 bits
  • the OTU2 service bit width is 128 bits
  • the OTU3 service is 256 bits.
  • Bit width conversion The circuit converts the OTUl/2 service bit width to a uniform 256-bit, and then the OTU1/2/3 parallel input parallel-serial conversion circuit with a bit width of 256 bits.
  • the step of decoding the serial service data in the above step 102 includes:
  • the codeword polynomial is operated to obtain J , that is, the adjoint polynomial;
  • Step 302 The adjoint polynomial Sj is operated to obtain an error position polynomial ⁇ ( ) and an error amplitude polynomial ⁇ ( );
  • the decoding algorithm in the decoding method of this embodiment can decode two bytes of data parallel processing, and the process of decoding two bytes of data includes: Step 401: Perform operation on the serial service data to generate a two-byte adjoint polynomial; Step 402: Generate a two-byte error location polynomial and an error amplitude polynomial according to the two-byte adjoint polynomial operation;
  • Step 403 Perform operation on the error location polynomial and the error amplitude polynomial of the two bytes to obtain an error position of two bytes and an error correction correction value;
  • Step 404 Perform error correction processing on the serial service data according to the error position of two bytes and the error correction correction value to restore the original service data.
  • the process of performing the operation of the serial service data in the above step 401 to generate a two-byte adjoint polynomial includes:
  • the codewords of the received business data are:
  • a two-byte adjoint polynomial coefficient is calculated based on the universal adjoint polynomial coefficient, and the coefficients of the two-byte adjoint polynomial are:
  • the process of generating a two-byte error location polynomial and an error amplitude polynomial according to the two-byte adjoint polynomial operation in the above step 402 includes:
  • the error location polynomial and the error amplitude polynomial of the two bytes are operated, and the process of obtaining the error position and the error correction correction value of the two bytes includes:
  • a two-byte error location polynomial is searched for a two-byte error location, and a two-byte error correction correction value is obtained by performing a Fourier calculation on the two-byte error magnitude polynomial.
  • the decoding method of this embodiment can decode two bytes of data at the same time, and the decoding efficiency is greatly improved compared with the related art.
  • the circuit scale is large when the single-channel decoding circuit is used to process multiple services in parallel.
  • each channel has one decoding circuit, the whole circuit is large in scale and consumes a lot of resources. Reducing resource consumption in implementation is a problem that must be considered, and the decoding method of the embodiment of the present invention can save resources.
  • each clock can process at least 2 code words.
  • the decoding efficiency has been improved by at least 1 time;
  • the related art RS serial decoding method is at 456 MHz.
  • the data throughput rate under the clock is 58.368 Gbps, and the throughput of the two-word parallel decoding method is
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • This embodiment describes in detail the algorithm for parallel decoding of two bytes, and the parallel input of service data.
  • the bit width is 256bit:
  • the first step parallel companion calculation
  • the generalized concomitant polynomial coefficient Sj is deduced and derived to obtain two bytes of concomitant multiples.
  • Equation coefficient the adjoint polynomial coefficient is:
  • the second step solving the key equations
  • the purpose of solving the key equation is to calculate the error location by the two-byte companion polynomial of the first step.
  • the RIBM algorithm can be used to solve the key equations.
  • the operation process can refer to Figure 6.
  • the operation circuit for solving the key equations is realized by the operation circuit shown in Figure 7.
  • Figure 7 the 16-cycle iterative operation is completed under the control of the control unit. Equation process.
  • the error position polynomial and the error amplitude polynomial coefficient are calculated.
  • any mature algorithm can be used to obtain an error location polynomial and an error amplitude polynomial.
  • Step 3 After calculating the error position polynomial, the operation of the error position polynomial calculated in the second step is calculated.
  • the process of the operation derivation is as follows:
  • Step 4 According to the error position polynomial ⁇ ( ) and The error amplitude polynomial ⁇ ( ) is calculated to obtain the error position and the error correction correction value;
  • FIG. 8 is a schematic diagram of the structure of the two-way parallel money search module; 4 Schematic diagram of the search sub-unit Cm is shown in Figure 9;
  • Step 4 Generate a two-byte error pattern based on the calculated error position and error correction correction value
  • Step 5 Perform two operations on the serial serial service data according to the two-byte error pattern E(x) Byte error correction processing, restoring the original two bytes of service data;
  • Embodiment 3 As shown in FIG. 11, this embodiment provides a decoding apparatus, including: a conversion module 1101, a decoding module 1102, and an output module 1103;
  • the conversion module 1101 is configured to receive parallel input of multiple service data, and convert the parallel input service data into serial service data;
  • the decoding module 1102 is configured to perform decoding processing on the serial service data.
  • the output module 1103 is configured to output the decoded service data to a subsequent circuit according to a time slot multiplexing manner.
  • the decoding apparatus of this embodiment may further include: a bit width conversion module 1104; the bit width conversion module 1104 is configured to convert the parallel input multi-path service data into serial service data in the conversion module. Previously, bit-width processing was performed on parallel input multi-path service data, and the bit width of each service data was converted into a unified bit width.
  • the decoding module 1102 may include: a companion polynomial generating module 11021, an error location polynomial generating module 11022, an error amplitude polynomial generating module 11023, and an error correcting module 11024;
  • the syndrome generation module 11021 is configured to perform operation on the serial service data to generate a parallel adjoint polynomial
  • the error location polynomial generation module 11022 is configured to generate an error location polynomial according to the parallel adjoint polynomial;
  • the error amplitude polynomial generation module 11023 is configured to generate a polynomial error polynomial according to the parallel adjoint polynomial;
  • the error correction module 11024 is configured to perform error correction processing on the serial service data according to the error location polynomial and an error amplitude polynomial to recover original service data.
  • the decoding apparatus of this embodiment can perform parallel processing on two bytes of service data.
  • the functions of each module in the decoding module in this embodiment are as follows:
  • the companion generation module 11021 is configured to perform operation on the serial service data to generate a two-byte adjoint polynomial
  • the error location polynomial generation module 11022 is configured to generate a two-byte error location polynomial according to the two-byte adjoint polynomial operation;
  • the error amplitude polynomial generation module 11023 is configured to generate a two-byte error magnitude polynomial according to the two-byte adjoint polynomial operation;
  • the error correction module 11024 is configured to operate on the error polynomial and the error amplitude polynomial of the two bytes, obtain an error position of two bytes and an error correction correction value, and correct the error position and error correction according to two bytes.
  • the value is subjected to error correction processing on the serial service data to restore the original service data.
  • the process of the syndrome generation module for computing the serial service data to generate a two-byte adjoint polynomial includes:
  • the two-byte adjoint polynomial coefficients are calculated from the general adjoint polynomial coefficients, and the coefficients of the two-byte adjoint polynomial are:
  • the error position polynomial generating module is configured to generate a two-byte error position polynomial according to the two-byte adjoint polynomial operation The process includes:
  • the error correction module 11024 is used for The two-byte error polynomial performs a money search to obtain the error position of two bytes, and performs a Fourier error correction correction value on the two-byte error amplitude polynomial.
  • the decoding apparatus of the present embodiment can convert the parallel input multi-path encoding service into a serial service, decode the serial service, and output the decoded data by using the slot multiplexing method.
  • the decoding device of the embodiment uses the time division multiplexing technology, so that the multi-channel service data can share one decoding circuit, which satisfies the requirements for processing high-speed services, improves decoding efficiency and data throughput rate, and avoids increasing decoding by adding decoding circuits. The way of efficiency reduces the consumption of resources.
  • the decoding apparatus of this embodiment is applicable to a plurality of encoding services in optical communication, such as a multi-standard Reed-Solomon code (RS) service.
  • RS Reed-Solomon code
  • Embodiment 4 As shown in FIG. 14, this embodiment provides another decoding apparatus, which is added on the basis of implementation 3.
  • the zero-padding interleave module 1106 is configured to perform zero-padding interleaving processing on the serial service data before performing decoding, and the subsequent-stage operations are all integer clock cycles; when the bit width is 256-bit OTU service for RS decoding, the zero-padding is performed.
  • the process of processing refers to Figure 15;
  • the cache module 1105 is configured to buffer the serial service data processed by zero padding
  • the de-zero de-interleaving module 1107 is configured to perform de-zero de-interleaving processing on the error-corrected service data to restore the service data in the original format. For example, it can be restored to the original OTN frame format.
  • Step 1 The OTU2 service bit width of the parallel input is 32 bits, the OTU3 service bit width is 128 bits, and the OTU4 service is 256 bits.
  • the bit width conversion circuit converts the OTU2/3 service bit width to a uniform 256 bit.
  • Step 2 Each service of 256 bit width is stored in the RAM, and when a line is full, a line full state signal is generated and sent to the arbitration circuit; the arbitration circuit determines which service is first sent to the latter stage according to the service type and the RAM state. Circuit processing, see Figure 2. This step completes different services and converts them.
  • Step 3 Enter the algorithm circuit to perform the service decoding process.
  • the zero-padding process is performed.
  • the zero-padding process is shown in Figure 16.
  • the post-stage operations are all integer clock cycles.
  • the interleaved data is sent to the cache module buffer, such as the FIFO buffer, all the way to the algorithm.
  • Step 4 After zero-padding, the service data is sent to the companion generation module.
  • the structure of the module is shown in Figure 5.
  • the companion operation is based on an innovative 2-byte parallel operation algorithm.
  • 16 code blocks are simultaneously operated, and each code block simultaneously calculates 2 bytes.
  • Step 5 The error polynomial generation module and the error amplitude polynomial generation module use the RiBM algorithm to solve the key equations;
  • a 16-cycle iterative operation is performed under the control of the control unit to complete the solution of the key equation.
  • the error location polynomial and the error value polynomial coefficients are calculated.
  • Step 6 The money search completes the search of the error location according to the error location polynomial, and the circuit is designed according to the aforementioned innovative money search algorithm formula of the use case, and can complete the two-byte search operation at the same time, as shown in FIG.
  • Step 7 Simultaneously with step 6, the Fourey calculation is performed according to the error amplitude polynomial, and the two-dimensional Fourier correction correction value is calculated. The process is shown in Figure 10.
  • Step 8 The error correction module uses the money to search and calculate the data position where the error occurs in the data output by the cache module, and then the correction value calculated according to Forni.
  • Step 9 Generate an error pattern based on the error position and the correction value, and perform two-byte correction on the bit corresponding to the position of the cache fifo output data according to the error pattern.
  • Step 10 The error-corrected service data is sent to the de-interleaving module to be restored to the OTN frame format.
  • Step 11 Each service data is output to the subsequent stage circuit according to the time slot multiplexing mode.
  • each clock can process at least 2 codewords, and the decoding efficiency is improved by at least 1 times;
  • the RS serial decoding method of the related art has a data throughput rate of 58.368 Gbps at 456 MHz, and a throughput rate of 116.736 Gbps using a parallel decoding method of two codewords.
  • the data throughput rate is further improved, which is helpful for the transmission network rate increase and meets the 100G rate service processing requirements.
  • the embodiment of the invention provides a decoding method and device, which can improve decoding efficiency and reduce resource consumption.
  • the decoding method of the embodiment of the present invention includes: converting parallel input multi-path service data into serial service data; performing decoding processing on the serial service data; and outputting the decoded service data according to slot multiplexing mode Subsequent circuit; the method converts the parallel input multi-channel encoded data into serial data, and uses the time division multiplexing technology to make the multiple input services share one decoding circuit, which improves the decoding rate and saves resources compared with the related technology.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Error Detection And Correction (AREA)

Abstract

Embodiments of the present invention provide a decoding method and apparatus. The decoding method of the embodiments of the present invention comprises: converting parallelly input multi-way service data into a serial service data; decoding the serial service data; and outputting the decoded service data to a following circuit by using a timeslot multiplexing mode. By using the method, the decoding efficiency can be improved, and the resource consumption can be reduced.

Description

一种解码方法及装置  Decoding method and device
技术领域 Technical field
本发明涉及光通信领域, 尤其涉及一种解码方法及装置。  The present invention relates to the field of optical communications, and in particular, to a decoding method and apparatus.
背景技术 Background technique
受固定宽带业务膨胀、 3G/LTE移动互联网兴起、 云计算 /数据中心广泛 应用等因素影响, 近年来网络带宽需求直线上升, 并将持续倍增, 这对光传 送网速率和传输可靠性提出了越来越高要求。 在光通信中通常釆用前向纠错 ( forword error correction )技术来降低信号经过信道传输所产生的误码率,以 达到提高信号传输质量, 降低对光设备功率要求的目的。 RS码在前向纠错中 是经常釆用的编码方式之一, 在纠正随机符号错误和随机突发错误等方面非 常有效, 已经广泛应用到光通信、 数字电视、 数据存储等领域。  Affected by factors such as the expansion of fixed broadband services, the rise of 3G/LTE mobile Internet, and the widespread use of cloud computing/data centers, network bandwidth demand has risen linearly in recent years and will continue to multiply. This is the higher the rate and transmission reliability of optical transport networks. The higher the request. In the optical communication, the forword error correction technique is usually used to reduce the bit error rate generated by the signal transmission through the channel, so as to improve the signal transmission quality and reduce the power requirement of the optical device. RS code is one of the frequently used coding methods in forward error correction. It is very effective in correcting random symbol errors and random burst errors. It has been widely used in optical communication, digital TV, data storage and other fields.
相关技术应用 RS码解码时通常釆用串行解码的方法, 一个码字接着一 个码字串行处理, 一个码字 8bit, 即: 一个时钟周期只能处理 8bit, 这种方法 效率低, 数据吞吐率低, 不能胜任高速传输对数据处理要求, 不利于整个系 统传输速率提高。  Correlation technology usually uses serial decoding when RS code decoding is used. One codeword is processed serially by one codeword. One codeword is 8 bits, ie: only 8 bits can be processed in one clock cycle. This method is inefficient and data throughput The low rate is not suitable for high-speed transmission data processing requirements, which is not conducive to the overall system transmission rate.
为了提高解码效率, 相关技术方案釆用码字并行的解码方法, 每个时钟 周期并行处理 2个码字, 解码效率和系统数据吞吐率有所提高, 但该方法是 两个码字简单并行, 不是从算法支持上对 2码字同时处理, 而且它对高速传 输的 OTN业务而言其处理能力显然是不够的,会导致电路规模较大, 消耗大 量的资源。  In order to improve the decoding efficiency, the related art scheme uses a codeword parallel decoding method, and processes two codewords in parallel in each clock cycle, and the decoding efficiency and the system data throughput rate are improved, but the method is that the two codewords are simple and parallel. It is not the simultaneous processing of 2 code words from the algorithm support, and its processing capability for the high-speed transmission OTN service is obviously insufficient, which leads to a large circuit scale and consumes a large amount of resources.
发明内容 Summary of the invention
本发明实施例提供一种解码方法及装置能够提高解码效率, 降低资源的 消耗。  Embodiments of the present invention provide a decoding method and apparatus, which can improve decoding efficiency and reduce resource consumption.
本发明实施例提供一种解码方法, 包括:  An embodiment of the present invention provides a decoding method, including:
将并行输入的多路业务数据转换为串行业务数据; 对所述串行业务数据进行解码处理; 以及 将解码后的业务数据按照时隙复用方式输出到后续电路。 Converting parallel input of multi-service data into serial service data; Decoding the serial service data; and outputting the decoded service data to a subsequent circuit according to a time slot multiplexing manner.
在所述将并行输入的多路业务转换为串行业务数据之前, 还包括: 对并行输入的多路业务进行位宽处理, 将各路业务位宽转换为统一的位 宽。  Before converting the parallel input multi-path service into serial service data, the method further includes: performing bit width processing on the parallel input multi-path service, and converting each service bit width into a unified bit width.
所述对所述串行业务数据进行解码处理, 包括:  Decoding the serial service data, including:
对所述串行业务数据进行运算生成并行伴随多项式; 根据所述并行伴随多项式生成错误位置多项式和错误幅值多项式; 以及 根据所述错误位置多项式和错误幅值多项式对所述串行业务数据进行纠 错处理, 恢复原始业务数据。  Performing operation on the serial service data to generate a parallel adjoint polynomial; generating an error location polynomial and an error amplitude polynomial according to the parallel adjoint polynomial; and performing the serial service data according to the error location polynomial and the error amplitude polynomial Error correction processing to restore original business data.
所述对串行业务数据进行运算生成并行伴随多项式, 包括:  The computing the serial service data to generate a parallel adjoint polynomial, including:
对所述串行业务数据进行运算生成两个字节的伴随多项式; 所述根据所述并行伴随多项式生成错误位置多项式和错误幅值多项式, 包括:  Performing operation on the serial service data to generate a two-byte adjoint polynomial; the generating the error location polynomial and the error amplitude polynomial according to the parallel adjoint polynomial, including:
根据所述两个字节的伴随多项式运算生成两个字节的错误位置多项式和 错误幅值多项式;  Generating a two-byte error location polynomial and an error amplitude polynomial according to the two-byte adjoint polynomial operation;
所述根据所述错误位置多项式和错误幅值多项式对所述串行业务数据进 行纠错处理, 恢复原始业务数据, 包括:  And performing error correction processing on the serial service data according to the error location polynomial and the error amplitude polynomial to restore the original service data, including:
对所述两个字节的错误位置多项式和错误幅值多项式进行运算, 获取两 个字节的错误位置和纠错校正值;  Performing an operation on the error location polynomial and the error amplitude polynomial of the two bytes to obtain an error position of two bytes and an error correction correction value;
根据两个字节的错误位置和纠错校正值对所述串行业务数据进行纠错处 理, 恢复原始业务数据。  The serial service data is error-corrected according to the error position of two bytes and the error correction correction value, and the original service data is restored.
所述对所述串行业务数据进行运算生成两个字节的伴随多项式, 包括: 设接收到的业务数据的码字多项式为:  The operation of the serial service data to generate a two-byte adjoint polynomial comprises: setting a codeword polynomial of the received service data to:
根据所述码字多项式计算出通用的伴随多项式系数: " Ο,ΙΑ ...,15; 根据所述通用的伴随多项式系数计算出两个字节的伴随多项式系数, 所 述两个字节的伴随多项式的系数为: Generating a common adjoint polynomial coefficient from the codeword polynomial: " Ο, ΙΑ ..., 15; compute a two-byte adjoint polynomial coefficient according to the general adjoint polynomial coefficient, the coefficients of the two-byte adjoint polynomial are:
Sj = ((((rM · ά + rn_^)c?j + rn_2c + rn_3)c?j + ···+ (r5aj + r))c?j + r-f + r2)c^. + γχά + r0 = 0,1,2,〜,15; 根据所述两个字节的伴随多项式的系数生成两个字节的伴随多项式; 所述根据所述两个字节的伴随多项式运算生成两个字节的错误位置多项 式和错误幅值多项式, 包括: Sj = ((((r M · ά + r n _^)c? j + r n _ 2 c + r n _ 3 )c? j + ···+ (r 5 a j + r))c? j + rf + r 2 )c^. + γ χ ά + r 0 = 0,1,2,~,15 ; generating a two-byte adjoint polynomial according to the coefficients of the two-byte adjoint polynomial; Generating a two-byte error location polynomial and an error magnitude polynomial according to the two-byte adjoint polynomial operation, including:
对所述两个字节的伴随多项式进行解方程, 计算出错误位置多项式和两 个字节的错误幅值多项式;  Solving the two-byte adjoint polynomial to calculate an error location polynomial and a two-byte error amplitude polynomial;
设错误位置多项式为: 人0)=人。+人^+2 +". + 根据所述解 方程计算出的错误位置多项式对所述错误位置多项式 Λ( )进行运算得到两 个字节的错误位置多项式, 所述两个字节的错误位置多项式为: Let the error location polynomial be: person 0) = person. +人^ +2 + ". + The error position polynomial calculated according to the solution equation operates on the error position polynomial Λ ( ) to obtain a two-byte error position polynomial, the error of the two bytes The position polynomial is:
Α(α) = Λ。+ λ + A2a4i +··· + Λ8"16'· , i = 0,1 …, 127 Α(α ) = Λ. + λ + A 2 a 4i +··· + Λ 8 " 16 '· , i = 0,1 ..., 127
A(a2i+l) = Λ。 + Κλα2ί+ι + A2 4i+2 + ··· + Λ8"16'.+8 , i = 0,1,2,· -·,127. 所述对所述两个字节的错误位置多项式和错误幅值多项式进行运算, 获 取两个字节的错误位置和纠错校正值的过程包括: A(a 2i+l ) = Λ. + Κ λ α 2ί+ι + A 2 4i+2 + ··· + Λ 8 " 16 '.+ 8 , i = 0,1,2,· -·,127. The pair of the two bytes The error location polynomial and the error amplitude polynomial operate, and the process of obtaining the error location and error correction correction value of two bytes includes:
所述对所述两个字节的错误多项式和错误幅值多项式进行运算, 获取两 个字节的错误位置和纠错校正值, 包括:  The operation of the two bytes of the error polynomial and the error amplitude polynomial to obtain the error position and the error correction correction value of the two bytes, including:
对两个字节的错误位置多项式进行钱搜索获取两个字节的错误位置, 同 时对所述两个字节的错误幅值多项式进行福尼计算得到两个字节的纠错校正 值。  A two-byte error location polynomial is searched for a two-byte error location, and a two-byte error correction correction value is obtained by performing a Fourier calculation on the two-byte error magnitude polynomial.
所述并行输入的业务数据为光通道传输单元 OTUk业务数据,其中 k=2e、 3e、 4。 本发明实施例还提供了一种解码装置, 包括: 转换模块、 解码模块和输 出模块; The parallel input service data is an optical channel transmission unit OTUk service data, where k=2e, 3e, 4. An embodiment of the present invention further provides a decoding apparatus, including: a conversion module, a decoding module, and an output module;
所述转换模块设置成接收并行输入的多路业务数据, 并将并行输入的多 路业务数据转换为串行业务数据;  The conversion module is configured to receive the multi-path service data input in parallel, and convert the parallel input multi-path service data into serial service data;
所述解码模块设置成对所述串行业务数据进行解码处理; 以及  The decoding module is configured to decode the serial service data; and
所述输出模块设置成将解码后的业务数据按照时隙复用方式输出到后续 电路。  The output module is configured to output the decoded service data to a subsequent circuit in a time slot multiplexing manner.
所述解码装置还包括: 位宽转换模块;  The decoding device further includes: a bit width conversion module;
所述位宽转换模块设置成在所述转换模块将并行输入的多路业务数据转 换为串行业务数据之前, 对并行输入的多路业务数据进行位宽处理, 将各路 业务数据的位宽转换为统一的位宽。  The bit width conversion module is configured to perform bit width processing on the parallel input multi-path service data before the conversion module converts the parallel input multi-path service data into serial service data, and set the bit width of each service data. Convert to a uniform bit width.
所述解码模块包括: 伴随多项式产生模块、 错误位置多项式产生模块、 错误幅值多项式产生模块和纠错模块;  The decoding module includes: a companion polynomial generating module, an error location polynomial generating module, an error amplitude polynomial generating module, and an error correcting module;
所述伴随多项式产生模块设置成对所述串行业务数据进行运算生成并行 伴随多项式;  The adjoint polynomial generation module is configured to perform operation on the serial service data to generate a parallel adjoint polynomial;
所述错误位置多项式产生模块设置成根据所述并行伴随多项式生成错误 位置多项式;  The error location polynomial generation module is configured to generate an error location polynomial according to the parallel adjoint polynomial;
所述错误幅值多项式产生模块设置成根据所述并行伴随多项式生成错误 幅值多项式;  The error amplitude polynomial generation module is configured to generate an error amplitude polynomial according to the parallel adjoint polynomial;
所述纠错模块设置成根据所述错误位置多项式和错误幅值多项式对所述 串行业务数据进行纠错处理, 恢复原始业务数据。  The error correction module is configured to perform error correction processing on the serial service data according to the error location polynomial and an error amplitude polynomial to recover original service data.
所述伴随多项式产生模块设置成对所述串行业务数据进行运算生成两个 字节的伴随多项式;  The adjoint polynomial generation module is configured to operate on the serial service data to generate a two-byte adjoint polynomial;
所述错误位置多项式产生模块设置成根据所述两个字节的伴随多项式运 算生成两个字节的错误位置多项式;  The error location polynomial generation module is configured to generate a two-byte error location polynomial based on the two-byte adjoint polynomial operation;
所述错误幅值多项式产生模块设置成根据所述两个字节的伴随多项式运 算生成两个字节的错误幅值多项式; 以及 所述纠错模块设置成对所述两个字节的错误位置多项式和错误幅值多项 式进行运算, 获取两个字节的错误位置和纠错校正值, 根据两个字节的错误 位置和纠错校正值对所述串行业务数据进行纠错处理, 恢复原始业务数据。 The error amplitude polynomial generation module is configured to generate a two-byte error magnitude polynomial according to the two-byte adjoint polynomial operation; The error correction module is configured to operate on the error location polynomial and the error amplitude polynomial of the two bytes to obtain an error position of two bytes and an error correction correction value, according to the error position and correction of two bytes The error correction value performs error correction processing on the serial service data to restore the original service data.
所述伴随多项式产生模块通过如下方式对所述串行业务数据进行运算生 成两个字节的伴随多项式:  The companion polynomial generating module operates the serial service data to generate a two-byte adjoint polynomial by:
设接收到的业务数据的码字多项式为:  Let the codeword polynomial of the received service data be:
R(x) = rn_xxn~l + rn_2x"-2 +… + + r0 · 根据所述码字多项式计算出通用的伴随多项式系数: R(x) = r n _ x x n ~ l + r n _ 2 x"- 2 +... + + r 0 · Calculate the general adjoint polynomial coefficients from the codeword polynomial:
^=^) =∑ ^ y = 0, -,15; 根据所述通用的伴随多项式系数计算出两个字节的伴随多项式系数, 所 述两个字节的伴随多项式的系数为: ^=^) = ∑ ^ y = 0, -, 15 ; The two-byte adjoint polynomial coefficients are calculated from the general adjoint polynomial coefficients, and the coefficients of the two-byte adjoint polynomial are:
Sj = ((((rra · j + rn_ )/J + rn_2 j + rn_3 )/J + ···+ {r^xj + r4 ))/J + r^ + r2 )/J + r j + r0 · = 0,1,2,··, 15 ; 根据所述两个字节的伴随多项式的系数生成两个字节的伴随多项式; Sj = ((((r ra · j + r n _ ) / J + r n _ 2 j + r n _ 3 ) / J + ···· {r^x j + r 4 )) / J + r ^ + r 2 ) / J + r j + r 0 · = 0,1,2,··, 15 ; generating a two-byte adjoint polynomial according to the coefficient of the two-byte adjoint polynomial;
所述错误位置多项式产生模块通过如下方式根据所述两个字节的伴随多 项式运算生成两个字节的错误位置多项式:  The error location polynomial generation module generates a two-byte error location polynomial according to the two-byte concomitant polynomial operation as follows:
对所述两个字节的伴随多项式进行解方程, 计算出错误位置多项式和两 个字节错误幅值多项式;  Solving the two-byte adjoint polynomial to calculate an error location polynomial and a two-byte error magnitude polynomial;
设错误位置多项式为: Λ0) = Λ+ Λ + Λ 2 +··. + ΛΓ^, 根据所述解 方程计算出的错误位置多项式对所述错误位置多项式 Λ(χ)进行运算得到两个 字节的错误位置多项式, 所述两个字节的错误位置多项式为: Let the error location polynomial be: Λ 0) = Λ . + Λ + Λ 2 + ··· + Λ Γ^, the error position polynomial calculated according to the solution equation operates the error position polynomial Λ ( χ ) to obtain a two-byte error position polynomial, the two The byte error location polynomial is:
Α(α) = Λ。 + Αλα + A2a4i + ··· + A8al6i , i = 0,1,2,···, 127 Α(α ) = Λ. + λ λ α + A 2 a 4i + ··· + A 8 a l6i , i = 0,1,2,···, 127
A( 2i+l) = Λ。 + x 2i+l + A2 4i+2 +··· + Λ8 16ί·+8 , i = 0,1,2,···, 127. 所述纠错模块设置成对两个字节的错误位置多项式进行钱搜索获取两个 字节的错误位置, 同时对所述两个字节的错误幅值多项式进行福尼计算得到 两个字节的纠错校正值。 A( 2i+l ) = Λ. + x 2i+l + A 2 4i+2 +··· + Λ 8 16ί ·+ 8 , i = 0,1,2,···, 127. The error correction module is set to two bytes Error location polynomial for money search to get two The error position of the byte, and the Fourier error correction polynomial is calculated at the same time to obtain two bytes of error correction correction value.
所述并行输入的业务数据为光通道传输单元 OTUk业务数据,其中 k=2e、 3e、 4。  The parallel input service data is optical channel transmission unit OTUk service data, where k=2e, 3e, 4.
本发明实施例的有益效果是:  The beneficial effects of the embodiments of the present invention are:
本发明实施例提供了一种解码方法及装置能够提高解码效率, 减少资源 消耗。 其中本发明实施例的解码方法包括: 将并行输入的多路业务数据转换 为串行业务数据; 对所述串行业务数据进行解码处理; 将解码后的业务数据 按照时隙复用方式输出到后续电路; 该方法将并行输入的多路编码数据转换 为串行数据, 釆用时分复用技术使多路输入业务共享一路解码电路, 与相关 技术相比提高了解码速率, 节省了资源。 附图概述  The embodiment of the invention provides a decoding method and device, which can improve decoding efficiency and reduce resource consumption. The decoding method of the embodiment of the present invention includes: converting parallel input multi-path service data into serial service data; performing decoding processing on the serial service data; and outputting the decoded service data according to slot multiplexing mode Subsequent circuit; the method converts the parallel input multi-channel encoded data into serial data, and uses the time division multiplexing technology to make the multiple input services share one decoding circuit, which improves the decoding rate and saves resources compared with the related technology. BRIEF abstract
图 1为本发明实施例一提供的一种解码方法的流程示意图;  1 is a schematic flowchart of a decoding method according to Embodiment 1 of the present invention;
图 2为本发明实施例一提供的一种并串转换电路;  2 is a parallel-to-serial conversion circuit according to Embodiment 1 of the present invention;
图 3为本发明实施例一提供的一种解码处理的流程示意图;  3 is a schematic flowchart of a decoding process according to Embodiment 1 of the present invention;
图 4为本发明实施例一提供的另一种解码处理的流程示意图;  4 is a schematic flowchart of another decoding process according to Embodiment 1 of the present invention;
图 5为本发明实施例二提供的一种伴随多项式运算电路的结构示意图; 图 6为本发明实施例二提供的一种解关键方程的运算流程图;  FIG. 5 is a schematic structural diagram of a companion polynomial operation circuit according to Embodiment 2 of the present invention; FIG. 6 is a flowchart of an operation of solving a key equation according to Embodiment 2 of the present invention;
图 7 为本发明实施例二提供的一种解关键方程的运算电路的结构示意 图;  FIG. 7 is a schematic structural diagram of an operation circuit for solving a key equation according to Embodiment 2 of the present invention; FIG.
图 8为本发明实施例二提供的一种钱搜索模块的结构示意图;  FIG. 8 is a schematic structural diagram of a money search module according to Embodiment 2 of the present invention; FIG.
图 9为本发明实施例二提供的一种钱搜索子单元 Cm的结构示意图; 图 10为本发明实施例二提供的一种福尼计算的示意图;  FIG. 9 is a schematic structural diagram of a money search subunit Cm according to Embodiment 2 of the present invention; FIG. 10 is a schematic diagram of a Foley calculation according to Embodiment 2 of the present invention;
图 11为本发明实施例三提供的第一种解码装置的结构示意图;  FIG. 11 is a schematic structural diagram of a first decoding apparatus according to Embodiment 3 of the present invention;
图 12为本发明实施例三提供的第二种解码装置的结构示意图;  FIG. 12 is a schematic structural diagram of a second decoding apparatus according to Embodiment 3 of the present invention;
图 13为本发明实施例三提供的第三种解码装置的结构示意图; 图 14为本发明实施例四提供的一种解码装置的结构示意图; 图 15为本发明实施例四提供的一种补零交织处理的示意图。 FIG. 13 is a schematic structural diagram of a third decoding apparatus according to Embodiment 3 of the present invention; FIG. 14 is a schematic structural diagram of a decoding apparatus according to Embodiment 4 of the present invention; FIG. 15 is a schematic diagram of a zero-padding interleaving process according to Embodiment 4 of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面通过具体实施方式结合附图对本发明作详细说明。 需要说明的是, 在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。  The present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
实施例一:  Embodiment 1:
如图 1 , 本实施例提供了一种解码方法, 包括以下步骤: 步骤 101 : 将并行输入的多路业务数据转换为串行业务数据;  As shown in FIG. 1 , this embodiment provides a decoding method, including the following steps: Step 101: Convert parallel input data of multiple services into serial service data.
步骤 102: 对所述串行业务数据进行解码处理;  Step 102: Perform decoding processing on the serial service data.
步骤 103: 将解码后的业务数据按照时隙复用方式输出到后续电路。 本实施例的解码方法能够将并行输入的多路编码业务转换为串行业务, 并对串行业务进行解码处理, 并釆用时隙复用方式输出解码后的数据, 本实 施例的解码方法釆用了时分复用技术, 可以使得多路业务数据共用一路解码 电路, 满足了处理高速业务要求, 提高了解码效率和数据吞吐率, 避免通过 增加解码电路来提高解码效率的方式, 减少了资源的消耗。 本实施例的解码 方法适用于光通信中的多种编码业务, 例如, 多规格里德-所罗门码(RS )业 务。  Step 103: Output the decoded service data to a subsequent circuit according to a time slot multiplexing manner. The decoding method of this embodiment can convert the parallel input multi-channel encoding service into a serial service, decode the serial service, and output the decoded data by using the slot multiplexing mode. The decoding method in this embodiment釆The time division multiplexing technology is used, which can make the multi-channel service data share one decoding circuit, meet the requirements of processing high-speed service, improve the decoding efficiency and data throughput rate, avoid the method of increasing the decoding efficiency by increasing the decoding circuit, and reduce the resources. Consumption. The decoding method of this embodiment is applicable to a plurality of encoding services in optical communication, for example, a multi-standard Reed-Solomon code (RS) service.
本实施例的步骤 101 中将并行输入的经过编码处理的多路业务数据转换 为串行业务数据可以由如图 2所示的电路完成,以解 RS码为例, 当并行输入 的三路业务时, 业务分别为光通道传输单元(OTUl、 OTU2、 OTU3 ); 图 2 中对各路业务分别存储, 如, 存储在 RAM 中, 当业务数据存储满了一行时 产生满状态信号,送入仲裁电路,仲裁电路根据业务类型,对应存储模块 RAM 状态判定哪一路业务先送入后级解码电路进行解码处理, 即该过程实现了不 同业务并串转换。  In step 101 of the embodiment, converting the encoded multi-path service data input in parallel into serial service data can be completed by the circuit shown in FIG. 2, taking the RS code as an example, when the three-way service is input in parallel. The services are respectively optical channel transmission units (OTU1, OTU2, OTU3); in Figure 2, each service is stored separately, for example, stored in RAM, and a full status signal is generated when the service data is full of one line, and is sent to arbitration. The circuit and the arbitration circuit determine which service is first sent to the subsequent decoding circuit for decoding according to the service type, corresponding to the RAM state of the storage module, that is, the process realizes parallel conversion of different services.
本实施例的解码方法, 在步骤 101之前还包括: 对并行输入的多路业务 进行位宽处理,将各路业务位宽转换为统一的位宽。例如, 并行输入的 OTU1 业务位宽为 32bit, OTU2业务位宽为 128bit, OTU3业务为 256bit。 位宽转换 电路将 OTUl/2 业务位宽转换为统一的 256bit, 然后将位宽均为 256bit 的 OTU1/2/3并行输入并串转换电路。 The decoding method of this embodiment further includes: performing bit width processing on the parallel input multi-path services, and converting each service bit width into a unified bit width. For example, the OTU1 service bit width of the parallel input is 32 bits, the OTU2 service bit width is 128 bits, and the OTU3 service is 256 bits. Bit width conversion The circuit converts the OTUl/2 service bit width to a uniform 256-bit, and then the OTU1/2/3 parallel input parallel-serial conversion circuit with a bit width of 256 bits.
上述步骤 102中对所述串行业务数据进行解码的步骤包括:  The step of decoding the serial service data in the above step 102 includes:
对所述串行业务数据进行运算生成并行伴随多项式;  Performing operations on the serial service data to generate a parallel adjoint polynomial;
根据所述并行伴随多项式生成错误位置多项式和错误幅值多项式; 根据所述错误位置多项式和错误幅值多项式对所述串行业务数据进行纠 错处理, 恢复原始业务数据。  Generating an error location polynomial and an error amplitude polynomial according to the parallel adjoint polynomial; correcting the serial service data according to the error location polynomial and the error amplitude polynomial to recover the original service data.
以 RS解码为例, 其解码过程一般分为下面几个步骤, 如图 3所示: 步骤 301: 对接到业务数据的码字 R (X)进行运算得到伴随多项式; 例如可以假设码字多项式为: ( ) = "-l W 1 + Γη-2Χ" 2 +'" + ri + r0 ; Taking RS decoding as an example, the decoding process is generally divided into the following steps, as shown in FIG. 3: Step 301: Perform operation on the codeword R (X) received by the service data to obtain an adjoint polynomial; for example, it can be assumed that the codeword polynomial is : ( ) = "-l W 1 + Γ η-2 Χ " 2 + '" + r i + r 0 ;
对码字多项式进行运算得到 J , 即伴随多项式; 步骤 302: 对伴随多项式 Sj进行运算得到错误位置多项式 Λ( )和错误 幅值多项式 Ω( ); The codeword polynomial is operated to obtain J , that is, the adjoint polynomial; Step 302: The adjoint polynomial Sj is operated to obtain an error position polynomial Λ ( ) and an error amplitude polynomial Ω ( );
计算错误多项式就是解 RS码的关键方程一般釆用 ΒΜ迭代算法、 PGZ 算法、 或者 Euclidean算法, 通过解方程得到错误位置多项式 Λ( )和错误幅 值多项式^^; 步骤 303: 对错误位置多项式 和错误幅值多项式 Ω(χ)进行运算得 到 Ε ( X ) ; 步骤 304: 根据错误图样 Ε(χ)对串行业务数据进行纠错处理, 恢复原始 业务数据。 RS解码是通过 C (X) =R (X) -E(x)对数据进行纠正, C (x)为 纠正后的正确码字。 Computational error polynomial is the key equation for solving RS code. It is generally used in iterative algorithm, PGZ algorithm, or Euclidean algorithm. By solving the equation, the error location polynomial Λ ( ) and the error amplitude polynomial ^^ are obtained. Step 303: For the error position polynomial and The error amplitude polynomial Ω ( χ ) is operated to obtain Ε ( X ); Step 304: Error correction processing is performed on the serial service data according to the error pattern χ (χ) to restore the original service data. RS decoding corrects the data by C (X) = R (X) - E (x), and C (x) is the correct correct code word.
如图 4所示, 本实施例解码方法中的解码算法可以对两个字节的数据并 行处理进行解码, 对两个字节的数据进行解码的过程包括: 步骤 401: 对所述串行业务数据进行运算生成两个字节的伴随多项式; 步骤 402: 根据所述两个字节的伴随多项式运算生成两个字节的错误位 置多项式和错误幅值多项式; As shown in FIG. 4, the decoding algorithm in the decoding method of this embodiment can decode two bytes of data parallel processing, and the process of decoding two bytes of data includes: Step 401: Perform operation on the serial service data to generate a two-byte adjoint polynomial; Step 402: Generate a two-byte error location polynomial and an error amplitude polynomial according to the two-byte adjoint polynomial operation;
步骤 403: 对所述两个字节的错误位置多项式和错误幅值多项式进行运 算, 获取两个字节的错误位置和纠错校正值;  Step 403: Perform operation on the error location polynomial and the error amplitude polynomial of the two bytes to obtain an error position of two bytes and an error correction correction value;
步骤 404: 根据两个字节的错误位置和纠错校正值对所述串行业务数据 进行纠错处理, 恢复原始业务数据。  Step 404: Perform error correction processing on the serial service data according to the error position of two bytes and the error correction correction value to restore the original service data.
下面介绍本实施例解码方法对两个字节进行解码的过程:  The following describes the process of decoding two bytes in the decoding method of this embodiment:
上述步骤 401中对所述串行业务数据进行运算生成两个字节的伴随多项 式的过程包括:  The process of performing the operation of the serial service data in the above step 401 to generate a two-byte adjoint polynomial includes:
设 接 收 到 的 业 务 数 据 的 码 字 多 项 为 :  The codewords of the received business data are:
R =
Figure imgf000010_0001
+ rn_2x"~2 +··· + Χ + Γ0. 根据所述码字多项式计算出通用的伴随多项式系数:
Figure imgf000010_0002
R =
Figure imgf000010_0001
+ r n _ 2 x"~ 2 +··· + Χ + Γ 0 . Calculate the general adjoint polynomial coefficients from the codeword polynomial:
Figure imgf000010_0002
根据所述通用的伴随多项式系数计算出两个字节的伴随多项式系数, 所 述两个字节的伴随多项式的系数为:  A two-byte adjoint polynomial coefficient is calculated based on the universal adjoint polynomial coefficient, and the coefficients of the two-byte adjoint polynomial are:
Sj = ((((rw · + rn_^o?J + rn_2 + rn_^)o?J +··· + {r^ + rA))c^ + r^ 1 + r^)dJ + rx + r0 · = 0,1,2,··, 15 ; 根据所述两个字节的伴随多项式的系数生成两个字节的伴随多项式; Sj = ((((r w · + r n _^o? J + r n _ 2 + r n _^)o? J +··· + {r^ + r A ))c^ + r^ 1 + r^)d J + r x + r 0 · = 0,1,2,··, 15 ; generating a two-byte adjoint polynomial according to the coefficients of the two-byte adjoint polynomial;
上述步骤 402中根据所述两个字节的伴随多项式运算生成两个字节的错 误位置多项式和错误幅值多项式的过程包括:  The process of generating a two-byte error location polynomial and an error amplitude polynomial according to the two-byte adjoint polynomial operation in the above step 402 includes:
对所述两个字节的伴随多项式进行解方程, 计算出错误位置多项式和两 个字节错误幅值多项式;  Solving the two-byte adjoint polynomial to calculate an error location polynomial and a two-byte error magnitude polynomial;
2 t  2 t
设错误位置多项式为: A( ) = 0 + lX + 2X +… + tX ,根据所 述解方程计算出的错误位置多项式对所述错误位置多项式 进行运算得 到两个字节的错误位置多项式, 所述两个字节的错误位置多项式为: Let the error location polynomial be: A ( ) = 0 + l X + 2 X +... + t X , according to The error position polynomial calculated by the equation solves the error position polynomial to obtain a two-byte error position polynomial, and the error location polynomial of the two bytes is:
Α( 2') = Λ。 + χ 11 + Α2 4' +··· + Λ8 16' , i = 0,1,2, ·'·,127 Α( 2 ') = Λ. + χ 11 + Α 2 4 ' +··· + Λ 8 16 ' , i = 0,1,2, ·'·,127
Α( 2ι+ι) = Λ。 + Κλα2ι+λ + Α2 ι+2 +··· + Λ8 16'+8 , i = 0,1,2, ·'·,127 Α ( 2ι+ι ) = Λ. + Κ λ α 2ι+λ + Α 2 ι+2 +··· + Λ 8 16 '+ 8 , i = 0,1,2, ·'·,127
上述步骤 403中对所述两个字节的错误位置多项式和错误幅值多项式进 行运算, 获取两个字节的错误位置和纠错校正值的过程包括: In the above step 403, the error location polynomial and the error amplitude polynomial of the two bytes are operated, and the process of obtaining the error position and the error correction correction value of the two bytes includes:
对两个字节的错误位置多项式进行钱搜索获取两个字节的错误位置, 同 时对所述两个字节的错误幅值多项式进行福尼计算得到两个字节的纠错校正 值。  A two-byte error location polynomial is searched for a two-byte error location, and a two-byte error correction correction value is obtained by performing a Fourier calculation on the two-byte error magnitude polynomial.
本实施例的解码方法适用于对 OTUk业务数据的解码, 其中 k=2e、 3e、 The decoding method of this embodiment is suitable for decoding OTUk service data, where k=2e, 3e,
4。 4.
本实施例的解码方法可以同时对两个个字节的数据进行解码处理, 相比 相关技术大大提高了解码效率。  The decoding method of this embodiment can decode two bytes of data at the same time, and the decoding efficiency is greatly improved compared with the related art.
利用本实施例的解码方法进行 RS解码有以下的效果:  The RS decoding using the decoding method of this embodiment has the following effects:
(1)釆用单路解码电路并行方式处理多路业务时电路规模较大。 当处理 的业务路数较多时, 如每一路业务都有一路解码电路, 则整个电路规模很大, 消耗的资源也不少。 在实现方式上减少资源消耗是必须考虑的问题, 釆用本 发明实施例的解码方法能节省资源。  (1) The circuit scale is large when the single-channel decoding circuit is used to process multiple services in parallel. When there are many service channels processed, for example, each channel has one decoding circuit, the whole circuit is large in scale and consumes a lot of resources. Reducing resource consumption in implementation is a problem that must be considered, and the decoding method of the embodiment of the present invention can save resources.
(2)对于 OTN业务而言, 100G处理是发展趋势, 芯片也必须具备这样 的处理能力, 而目前 RS解码电路尚不具备这样的处理能力。 本发明实施例 的方法通过开发新算法, 提高 OTN业务并行处理能力达到了 100G业务处理 要求。  (2) For OTN services, 100G processing is a development trend, and chips must have such processing power. Currently, RS decoding circuits do not have such processing capabilities. The method of the embodiment of the present invention improves the parallel processing capability of the OTN service to meet the 100G service processing requirements by developing a new algorithm.
(3) 以 G.709协议中规定的 OTU (光通道传输单元, Optical Channel Transport Unit) 帧格式为例, 釆用本发明实施例的并行解码方法, 每个时钟 能处理至少 2个码字, 解码效率提升了至少 1倍;  (3) Taking the OTU (Optical Channel Transport Unit) frame format specified in the G.709 protocol as an example, using the parallel decoding method of the embodiment of the present invention, each clock can process at least 2 code words. The decoding efficiency has been improved by at least 1 time;
(4) 以 OTU帧格式为例, 相关技术的 RS串行解码方法在 456MHz时 钟下的数据吞吐率为 58.368Gbps , 而釆用两码字并行解码方式吞吐率为 (4) Taking the OTU frame format as an example, the related art RS serial decoding method is at 456 MHz. The data throughput rate under the clock is 58.368 Gbps, and the throughput of the two-word parallel decoding method is
116.736Gbps。 数据吞吐率提高, 对于传输网速率提升大有帮助, 满足 100G 速率业务处理要求。 116.736Gbps. The increased data throughput rate is greatly helpful for the transmission network rate increase and meets the 100G rate service processing requirements.
实施例二: Embodiment 2:
本实施例详细介绍对两个字节并行解码的算法, 并行输入的业务数据的  This embodiment describes in detail the algorithm for parallel decoding of two bytes, and the parallel input of service data.
位宽为 256bit: The bit width is 256bit:
第一步: 并行伴随式计算;  The first step: parallel companion calculation;
设接收到的业务数据的码字多项式为: = + Γ«-2 " + " ' + Γ1 + Γ0 ,由业务数据的码字多项式计 算出通用的伴随式多项式系数 计算方法, 该伴随式系数的计算可以由图 5 所示的运算电路完成: Let the codeword polynomial of the received service data be: = + Γ «-2 " + "' + Γ 1 + Γ 0 , calculate the general companion polynomial coefficient calculation method from the codeword polynomial of the business data, the syndrome The calculation of the coefficients can be done by the arithmetic circuit shown in Figure 5:
η-\  Η-\
a  a
J' = 0,1,2, ...,15  J' = 0,1,2, ...,15
对通用的伴随式多项式系数 Sj进行运算推导 ,得到两个字节的伴随多项 The generalized concomitant polynomial coefficient Sj is deduced and derived to obtain two bytes of concomitant multiples.
式系数, 该伴随多项式系数为: Equation coefficient, the adjoint polynomial coefficient is:
Sj = ((((rra - 3
Figure imgf000012_0001
+rx +r0 = 0,1,2,· · ·,15 . 最后由计算出的两个字节的伴随多项式系数构建相应的伴随多项式。
Sj = ((((r ra - 3)
Figure imgf000012_0001
+r x +r 0 = 0,1,2,· · ·,15 . Finally, the corresponding adjoint polynomial is constructed from the calculated two-byte adjoint polynomial coefficients.
第二步: 解关键方程 ;  The second step: solving the key equations;
解关键方程的目的是由第一步的两个字节的伴随式多项式计算错误位置  The purpose of solving the key equation is to calculate the error location by the two-byte companion polynomial of the first step.
多项式和错误幅值多项式; 其中错误幅值多项式即为两个字节的错误幅值多 项式 Ω( ) ; 解关键方程可以釆用 RIBM算法, 其运算过程可以参考图 6; 解关键方程的运算电路由图 7所示的运算电路实现, 图 7中在控制单元 控制下进行 16周期的迭代运算完成解关键方程过程。计算出错误位置多项式 和错误幅值多项式系数。 本实施例中可以釆用任意成熟的算法得到错误位置 多项式和错误幅值多项式。 Polynomial and error amplitude polynomial; where the error amplitude polynomial is the two-byte error amplitude polynomial Ω ( ) ; The RIBM algorithm can be used to solve the key equations. The operation process can refer to Figure 6. The operation circuit for solving the key equations is realized by the operation circuit shown in Figure 7. In Figure 7, the 16-cycle iterative operation is completed under the control of the control unit. Equation process. The error position polynomial and the error amplitude polynomial coefficient are calculated. In this embodiment, any mature algorithm can be used to obtain an error location polynomial and an error amplitude polynomial.
第三步: 在计算出错误位置多项式后, 对第二步计算出的错误位置多项 式进行运算推导, 运算推导的过程如下:  Step 3: After calculating the error position polynomial, the operation of the error position polynomial calculated in the second step is calculated. The process of the operation derivation is as follows:
设错误位置多项式为: 八0)=八。+八 +八2 +—+ , 根据第二步 解方程得到的错误位置多项式对所述错误位置多项式 Λ( )进行运算推导, 推导得出两个字节的错误位置多项式 Λ( ): Let the error location polynomial be: 八) = eight. +8+8 2 +-+, the error position polynomial obtained according to the second step solution equation is used to derive the error position polynomial Λ ( ), and the error location polynomial Λ ( ) of two bytes is derived:
A(a2i) = Λ。 + Kx i + A2a4i + ··· + Asal6i , i = 0,1,2,···, 127 A(a 2i ) = Λ. + K x i + A 2 a 4i + ··· + A s a l6i , i = 0,1,2,···, 127
Α( ) = Λ。 + λ 2ί+ι + A2 4i+2 + ··· + Λ8"16ί.+8 , i = 0,1,2,···, 127. 第四步: 根据错误位置多项式 Λ( )和错误幅值多项式 Ω( )计算获取 错误位置和纠错校正值; Α( ) = Λ. + λ 2ί+ι + A 2 4i+2 + ··· + Λ 8 " 16ί .+ 8 , i = 0,1,2,···, 127. Step 4: According to the error position polynomial Λ ( ) and The error amplitude polynomial Ω ( ) is calculated to obtain the error position and the error correction correction value;
对上述错误位置多项式釆用钱搜索获取两个字节的错误位置, 相应的钱 搜索过程由图 8所示模块完成,如 8所示为两路并行钱搜索模块结构示意图; 其中图 8中的 4 搜索子单元 Cm的结构示意图如图 9所示;  For the above error location polynomial, the money search is used to obtain the error position of two bytes, and the corresponding money search process is completed by the module shown in FIG. 8, as shown in FIG. 8 is a schematic diagram of the structure of the two-way parallel money search module; 4 Schematic diagram of the search sub-unit Cm is shown in Figure 9;
同时对上述错误幅值多项式进行福尼计算得到两个字节的纠错校正值, 糾错校正值计算的公式为: = 16· )/ Λ' ), Λ'( )是 Λ( )的 导函数, Λ( )的偶次幂的导数为零, A( )的奇次幂的导数为 Λ (Χ); 福尼计算的过程参考图 10。 第四步: 根据计算出的错误位置和纠错校正值生成两个字节的错误图样At the same time, the above error amplitude polynomial is subjected to Fourier calculation to obtain two bytes of error correction correction value. The formula for calculating the error correction correction value is: = 16 · ) / Λ ' ), Λ '( ) is the guide of Λ ( ) The function, the derivative of the even power of Λ ( ) is zero, and the derivative of the odd power of A ( ) is Λ ( Χ ) ; The process of Fourey calculation is shown in Figure 10. Step 4: Generate a two-byte error pattern based on the calculated error position and error correction correction value
E(x); E(x);
第五步: 根据两个字节的错误图样 E(x)对输出的串行业务数据进行两个 字节纠错处理, 恢复原始两个字节的业务数据; Step 5: Perform two operations on the serial serial service data according to the two-byte error pattern E(x) Byte error correction processing, restoring the original two bytes of service data;
通过 C ( X ) = R ( X ) - E(x)这个公式对数据进行纠正, C ( X )为纠正后 的正确码字。 实施例三: 如图 11 所示, 本实施例提供了一种解码装置, 包括: 转换模块 1101、 解码模块 1102和输出模块 1103;  The data is corrected by the formula C ( X ) = R ( X ) - E(x), and C ( X ) is the correct correct code word. Embodiment 3: As shown in FIG. 11, this embodiment provides a decoding apparatus, including: a conversion module 1101, a decoding module 1102, and an output module 1103;
所述转换模块 1101用于接收并行输入的多路业务数据,并将并行输入的 业务数据转换为串行业务数据;  The conversion module 1101 is configured to receive parallel input of multiple service data, and convert the parallel input service data into serial service data;
所述解码模块 1102用于对所述串行业务数据进行解码处理;  The decoding module 1102 is configured to perform decoding processing on the serial service data.
所述输出模块 1103 用于将解码后的业务数据按照时隙复用方式输出到 后续电路。  The output module 1103 is configured to output the decoded service data to a subsequent circuit according to a time slot multiplexing manner.
如图 12所示, 本实施例的解码装置还可以包括: 位宽转换模块 1104; 所述位宽转换模块 1104 用于在所述转换模块将并行输入的多路业务数 据转换为串行业务数据之前, 对并行输入的多路业务数据进行位宽处理, 将 各路业务数据的位宽转为统一的位宽。  As shown in FIG. 12, the decoding apparatus of this embodiment may further include: a bit width conversion module 1104; the bit width conversion module 1104 is configured to convert the parallel input multi-path service data into serial service data in the conversion module. Previously, bit-width processing was performed on parallel input multi-path service data, and the bit width of each service data was converted into a unified bit width.
如图 13所示, 本实施例提供的解码模块 1102可以包括: 伴随多项式产 生模块 11021、 错误位置多项式产生模块 11022、 错误幅值多项式产生模块 11023和纠错模块 11024;  As shown in FIG. 13, the decoding module 1102 provided in this embodiment may include: a companion polynomial generating module 11021, an error location polynomial generating module 11022, an error amplitude polynomial generating module 11023, and an error correcting module 11024;
所述伴随式产生模块 11021用于对所述串行业务数据进行运算生成并行 伴随多项式;  The syndrome generation module 11021 is configured to perform operation on the serial service data to generate a parallel adjoint polynomial;
所述错误位置多项式产生模块 11022用于根据所述并行伴随多项式生成 错误位置多项式;  The error location polynomial generation module 11022 is configured to generate an error location polynomial according to the parallel adjoint polynomial;
所述错误幅值多项式产生模块 11023用于根据所述并行伴随多项式生错 误幅值多项式;  The error amplitude polynomial generation module 11023 is configured to generate a polynomial error polynomial according to the parallel adjoint polynomial;
所述纠错模块 11024用于根据所述错误位置多项式和错误幅值多项式对 所述串行业务数据进行纠错处理, 恢复原始业务数据。 在另一个应用场景, 本实施例的解码装置能够对两个字节的业务数据进 行并行处理, 此时本实施例中解码模块中的各模块的功能如下: The error correction module 11024 is configured to perform error correction processing on the serial service data according to the error location polynomial and an error amplitude polynomial to recover original service data. In another application scenario, the decoding apparatus of this embodiment can perform parallel processing on two bytes of service data. At this time, the functions of each module in the decoding module in this embodiment are as follows:
伴随式产生模块 11021用于对所述串行业务数据进行运算生成两个字节 的伴随多项式;  The companion generation module 11021 is configured to perform operation on the serial service data to generate a two-byte adjoint polynomial;
错误位置多项式产生模块 11022用于才艮据所述两个字节的伴随多项式运 算生成两个字节的错误位置多项式;  The error location polynomial generation module 11022 is configured to generate a two-byte error location polynomial according to the two-byte adjoint polynomial operation;
错误幅值多项式产生模块 11023用于才艮据所述两个字节的伴随多项式运 算生成两个字节的错误幅值多项式;  The error amplitude polynomial generation module 11023 is configured to generate a two-byte error magnitude polynomial according to the two-byte adjoint polynomial operation;
纠错模块 11024用于对所述两个字节的错误多项式和错误幅值多项式进 行运算, 获取两个字节的错误位置和纠错校正值, 根据两个字节的错误位置 和纠错校正值对所述串行业务数据进行纠错处理, 恢复原始业务数据。  The error correction module 11024 is configured to operate on the error polynomial and the error amplitude polynomial of the two bytes, obtain an error position of two bytes and an error correction correction value, and correct the error position and error correction according to two bytes. The value is subjected to error correction processing on the serial service data to restore the original service data.
下面介绍本实施例解码装置对两个字节的业务数据并行解码的各模块的 处理过程: The following describes the processing procedure of each module in which the decoding apparatus of the embodiment decodes two bytes of service data in parallel:
所述伴随式产生模块用于对所述串行业务数据进行运算生成两个字节的 伴随多项式的过程包括:  The process of the syndrome generation module for computing the serial service data to generate a two-byte adjoint polynomial includes:
设接收到的业务数据的码字多项式为:  Let the codeword polynomial of the received service data be:
R(x) = rn_xxn~l + rn_2x"-2 +… + + r0 · 根据所述码字多项式计算出通用的伴随多项式系数: R(x) = r n _ x x n ~ l + r n _ 2 x"- 2 +... + + r 0 · Calculate the general adjoint polynomial coefficients from the codeword polynomial:
n-l  N-l
s - R(aj ) = yr αϋ s - R ( a j ) = y r α ϋ
J = 0,1,2, . .. ,15 ; 根据所述通用的伴随多项式系数计算出两个字节的伴随多项式系数, 所 述两个字节的伴随多项式的系数为:  J = 0,1,2, . . . , 15 ; The two-byte adjoint polynomial coefficients are calculated from the general adjoint polynomial coefficients, and the coefficients of the two-byte adjoint polynomial are:
Sj = ((((rw · + rn_^)dJ + rn_2 + rn_^)dJ + . . · + (Γ5Ο^ + rA))(/ + r^ + r2)d + rx + r0 Sj = (((( w w · + r n _^)d J + r n _ 2 + r n _^)d J + . . · + (Γ 5 Ο^ + r A ))(/ + r^ + r 2 )d + r x + r 0
7 = 0,1,2, · · · ,15 . 根据所述两个字节的伴随多项式的系数生成两个字节的伴随多项式; 所述错误位置多项式产生模块用于根据所述两个字节的伴随多项式运算 生成两个字节的错误位置多项式的过程包括: 7 = 0,1,2, · · · , 15 . Generating a two-byte adjoint polynomial according to the coefficient of the two-byte adjoint polynomial; the error position polynomial generating module is configured to generate a two-byte error position polynomial according to the two-byte adjoint polynomial operation The process includes:
对所述两个字节的伴随多项式进行解方程, 计算出错误位置多项式和两 个字节错误幅值多项式; 设错误位置多项式为: AO ^Ao+A + AJ +'·· + Λ^, 根据 所述解方程计算出的错误位置多项式对所述错误位置多项式 Λ( )进行运算 得到两个字节的错误位置多项式, 所述两个字节的错误位置多项式为: Solving the two-byte adjoint polynomial to calculate the error location polynomial and the two-byte error magnitude polynomial; Let the error location polynomial be: AO ^Ao+A + AJ + '·· + Λ ^, The error position polynomial calculated according to the solution equation operates the error position polynomial Λ ( ) to obtain a two-byte error position polynomial, and the error location polynomial of the two bytes is:
Α(α) = Λ。+ λ + A2a4i +··· + Λ8"16'· , i = 0,1 …, 127 Α(α ) = Λ. + λ + A 2 a 4i +··· + Λ 8 " 16 '· , i = 0,1 ..., 127
Κ(α2ί+ι) = Λ。 + Κλα2ί+ι + A2 4i+2 + ··· + Λ8"16'.+8 , i = 0,1,2,· -·,127. 所述纠错模块 11024用于对两个字节的错误多项式进行钱搜索获取两个 字节的错误位置, 同时对所述两个字节的错误幅值多项式进行福尼计算得到 两个字节的纠错校正值。 Κ(α 2ί+ι ) = Λ. + λ λ α 2ί+ι + A 2 4i+2 + ··· + Λ 8 " 16 '.+ 8 , i = 0,1,2,· -·, 127. The error correction module 11024 is used for The two-byte error polynomial performs a money search to obtain the error position of two bytes, and performs a Fourier error correction correction value on the two-byte error amplitude polynomial.
本实施例提的解码装置的操作过程, 可以参考上述对解码方法的描述, 例如参考图 2、 4、 5、 6、 7、 8、 9、 10的描述。  For the operation procedure of the decoding apparatus in this embodiment, reference may be made to the above description of the decoding method, for example, referring to the descriptions of FIG. 2, 4, 5, 6, 7, 8, 9, and 10.
通过上述的描述, 可以看出本实施例的解码装置能够将并行输入的多路 编码业务转换为串行业务, 并对串行业务进行解码处理, 并釆用时隙复用方 式输出解码后的数据, 本实施例的解码装置釆用了时分复用技术, 可以使得 多路业务数据共用一路解码电路, 满足了处理高速业务要求, 提高了解码效 率和数据吞吐率, 避免通过增加解码电路来提高解码效率的方式, 减少了资 源的消耗。 本实施例的解码装置适用于光通信中的多种编码业务, 例如多规 格里德-所罗门码( RS )业务。 本实施例的解码装置还适用于对 OTUk业务数 据进行解码, 其中 k=2e、 3e、 4。 实施例四: 如图 14所示, 本实施例提供了另一解码装置, 其在实施三的基础上增加 了緩存模块 1105, 补零交织模块 1106、 去零解交织模块 1107; Through the above description, it can be seen that the decoding apparatus of the present embodiment can convert the parallel input multi-path encoding service into a serial service, decode the serial service, and output the decoded data by using the slot multiplexing method. The decoding device of the embodiment uses the time division multiplexing technology, so that the multi-channel service data can share one decoding circuit, which satisfies the requirements for processing high-speed services, improves decoding efficiency and data throughput rate, and avoids increasing decoding by adding decoding circuits. The way of efficiency reduces the consumption of resources. The decoding apparatus of this embodiment is applicable to a plurality of encoding services in optical communication, such as a multi-standard Reed-Solomon code (RS) service. The decoding apparatus of this embodiment is also adapted to decode OTUk traffic data, where k = 2e, 3e, 4. Embodiment 4: As shown in FIG. 14, this embodiment provides another decoding apparatus, which is added on the basis of implementation 3. Cache module 1105, zero-padding interleave module 1106, de-zero de-interleaving module 1107;
所述补零交织模块 1106 用于在进行解码之前对串行业务数据进行补零 交织处理, 得后级运算都是整数个时钟周期; 当对位宽为 256bitOTU业务进 行 RS解码时, 其补零处理的过程参考图 15;  The zero-padding interleave module 1106 is configured to perform zero-padding interleaving processing on the serial service data before performing decoding, and the subsequent-stage operations are all integer clock cycles; when the bit width is 256-bit OTU service for RS decoding, the zero-padding is performed. The process of processing refers to Figure 15;
緩存模块 1105用于緩存经过补零交织处理的所述串行业务数据;可以为 The cache module 1105 is configured to buffer the serial service data processed by zero padding;
FIFO先进先出緩冲器; FIFO FIFO buffer;
所述去零解交织模块 1107 用于对纠错处理后的业务数据进行去零解交 织处理,使其恢复为原始格式的业务数据。例如可以恢复为原先 OTN帧格式。  The de-zero de-interleaving module 1107 is configured to perform de-zero de-interleaving processing on the error-corrected service data to restore the service data in the original format. For example, it can be restored to the original OTN frame format.
下面详细介绍釆用本实施例解码装置对三路 OTU业务进行 RS解码的过 程:  The process of RS decoding the three-way OTU service by the decoding apparatus of this embodiment is described in detail below:
步骤一: 并行输入的 OTU2业务位宽为 32bit, OTU3业务位宽为 128bit, OTU4业务为 256bit。位宽转换电路将 OTU2/3业务位宽转换为统一的 256bit。  Step 1: The OTU2 service bit width of the parallel input is 32 bits, the OTU3 service bit width is 128 bits, and the OTU4 service is 256 bits. The bit width conversion circuit converts the OTU2/3 service bit width to a uniform 256 bit.
步骤二: 256bit位宽的各路业务存储在 RAM中, 当满了一行时产生行满 状态信号, 送入仲裁电路; 仲裁电路根据业务类型, 对应 RAM状态判定哪 一路业务先送入后级算法电路处理, 见图 2。 这一步完成不同业务并串转换。  Step 2: Each service of 256 bit width is stored in the RAM, and when a line is full, a line full state signal is generated and sent to the arbitration circuit; the arbitration circuit determines which service is first sent to the latter stage according to the service type and the RAM state. Circuit processing, see Figure 2. This step completes different services and converts them.
步骤三: 进入算法电路的进行业务解码处理过程。 首先进行补零交织处 理。 补零处理见图 16, 使得后级运算都是整数个时钟周期, 交织后的数据, 一路送去緩存模块緩存例如 FIFO緩存器, 一路送去算法运算。  Step 3: Enter the algorithm circuit to perform the service decoding process. First, the zero-padding process is performed. The zero-padding process is shown in Figure 16. The post-stage operations are all integer clock cycles. The interleaved data is sent to the cache module buffer, such as the FIFO buffer, all the way to the algorithm.
步骤四: 补零交织后业务数据送入伴随式产生模块, 该模块的结构参考 图 5。  Step 4: After zero-padding, the service data is sent to the companion generation module. The structure of the module is shown in Figure 5.
该伴随式运算是基于创新的 2字节并行运算算法, OTN帧结构中 16个 码块同时进行运算, 每个码块同时计算 2个字节。  The companion operation is based on an innovative 2-byte parallel operation algorithm. In the OTN frame structure, 16 code blocks are simultaneously operated, and each code block simultaneously calculates 2 bytes.
步骤五: 错误多项式产生模块和错误幅值多项式产生模块釆用 RiBM算 法解关键方程;  Step 5: The error polynomial generation module and the error amplitude polynomial generation module use the RiBM algorithm to solve the key equations;
如图 7所示在控制单元控制下进行 16周期的迭代运算完成解关键方程过 程。 计算出错误位置多项式和错误值多项式系数。  As shown in Fig. 7, a 16-cycle iterative operation is performed under the control of the control unit to complete the solution of the key equation. The error location polynomial and the error value polynomial coefficients are calculated.
步骤六: 钱搜索根据错误位置多项式完成错误位置的搜索, 电路根据本 用例前述创新钱搜索算法公式设计, 能同时完成两个字节搜索运算, 见图 8。 步骤七: 与步骤六同时进行是根据错误幅值多项式进行福尼计算, 计算 出两个字节的福尼纠错校正值。 过程见图 10。 Step 6: The money search completes the search of the error location according to the error location polynomial, and the circuit is designed according to the aforementioned innovative money search algorithm formula of the use case, and can complete the two-byte search operation at the same time, as shown in FIG. Step 7: Simultaneously with step 6, the Fourey calculation is performed according to the error amplitude polynomial, and the two-dimensional Fourier correction correction value is calculated. The process is shown in Figure 10.
步骤八: 纠错模块釆用钱搜索计算出在緩存模块输出的数据中发生错误 的数据位置、 再依据福尼计算出的校正值  Step 8: The error correction module uses the money to search and calculate the data position where the error occurs in the data output by the cache module, and then the correction value calculated according to Forni.
步骤九:根据错误位置和校正值生成错误图样,根据错误图样对緩存 fifo 输出数据对应位置的 bit进行两个字节校正。  Step 9: Generate an error pattern based on the error position and the correction value, and perform two-byte correction on the bit corresponding to the position of the cache fifo output data according to the error pattern.
步骤十:经过纠错处理的业务数据送入去零解交织模块恢复为 OTN帧格 式。  Step 10: The error-corrected service data is sent to the de-interleaving module to be restored to the OTN frame format.
步骤十一: 各个业务数据按照时隙复用方式输出到后级电路。  Step 11: Each service data is output to the subsequent stage circuit according to the time slot multiplexing mode.
釆用本实施例的解码装置进行 RS解码有以下的效果:  The RS decoding by the decoding apparatus of this embodiment has the following effects:
( 1 )釆用单路解码电路并行方式处理多路业务时电路规模较大。 当处理 的业务路数较多时, 如每一路业务都有一路解码电路, 则整个电路规模很大, 消耗的资源也不少。 在实现方式上减少资源消耗是必须考虑的问题, 釆用本 发明实施例的解码方法能节省资源。  (1) When a single-channel decoding circuit is used to process multiple services in parallel, the circuit scale is large. When there are many service channels processed, for example, each channel has one decoding circuit, the whole circuit is large in scale and consumes a lot of resources. Reducing resource consumption in implementation is a problem that must be considered, and the decoding method of the embodiment of the present invention can save resources.
( 2 )对于 OTN业务而言, 100G处理是发展趋势, 芯片也必须具备这样 的处理能力, 而目前 RS解码电路尚不具备这样的处理能力。 本发明实施例 的方法通过开发新算法, 提高 OTN业务并行处理能力达到了 100G业务处理 要求。  (2) For OTN services, 100G processing is a development trend, and chips must have such processing power. Currently, RS decoding circuits do not have such processing capabilities. The method of the embodiment of the present invention improves the parallel processing capability of the OTN service to meet the 100G service processing requirements by developing a new algorithm.
( 3 )以 G.709协议中规定的 OTU ( Optical Channel Transport Unit )帧格 式为例, 釆用本发明实施例的并行解码方法, 每个时钟能处理至少 2个码字, 解码效率提升了至少 1倍;  (3) Taking the OTU (Optical Channel Transport Unit) frame format specified in the G.709 protocol as an example, using the parallel decoding method of the embodiment of the present invention, each clock can process at least 2 codewords, and the decoding efficiency is improved by at least 1 times;
( 4 ) 以 OTU帧格式为例, 相关技术的 RS串行解码方法在 456MHz时 钟下的数据吞吐率为 58.368Gbps , 而釆用两码字并行解码方式吞吐率为 116.736Gbps。 数据吞吐率进一步提高, 对于传输网速率提升大有帮助, 满足 100G速率业务处理要求。  (4) Taking the OTU frame format as an example, the RS serial decoding method of the related art has a data throughput rate of 58.368 Gbps at 456 MHz, and a throughput rate of 116.736 Gbps using a parallel decoding method of two codewords. The data throughput rate is further improved, which is helpful for the transmission network rate increase and meets the 100G rate service processing requirements.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Optionally, all or part of the steps of the above embodiments may also be used. One or more integrated circuits are implemented. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范 围。 根据本发明的发明内容, 还可有其他多种实施例, 在不背离本发明精神 改变和变形, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above description is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. In view of the present invention, various other modifications, equivalents, improvements, etc., should be made without departing from the spirit and scope of the invention. It is included in the scope of protection of the present invention.
工业实用性 Industrial applicability
本发明实施例提供了一种解码方法及装置能够提高解码效率, 减少资源 消耗。 其中本发明实施例的解码方法包括: 将并行输入的多路业务数据转换 为串行业务数据; 对所述串行业务数据进行解码处理; 将解码后的业务数据 按照时隙复用方式输出到后续电路; 该方法将并行输入的多路编码数据转换 为串行数据, 釆用时分复用技术使多路输入业务共享一路解码电路, 与相关 技术相比提高了解码速率, 节省了资源。  The embodiment of the invention provides a decoding method and device, which can improve decoding efficiency and reduce resource consumption. The decoding method of the embodiment of the present invention includes: converting parallel input multi-path service data into serial service data; performing decoding processing on the serial service data; and outputting the decoded service data according to slot multiplexing mode Subsequent circuit; the method converts the parallel input multi-channel encoded data into serial data, and uses the time division multiplexing technology to make the multiple input services share one decoding circuit, which improves the decoding rate and saves resources compared with the related technology.

Claims

权 利 要 求 书 Claim
1、 一种解码方法, 包括:  1. A decoding method, comprising:
将并行输入的多路业务数据转换为串行业务数据;  Converting parallel input of multi-service data into serial service data;
对所述串行业务数据进行解码处理; 以及  Decoding the serial service data; and
将解码后的业务数据按照时隙复用方式输出到后续电路。  The decoded service data is output to the subsequent circuit according to the slot multiplexing mode.
2、 如权利要求 1所述的解码方法, 其中, 在所述将并行输入的多路业务 转换为串行业务数据之前, 还包括:  2. The decoding method according to claim 1, wherein before the converting the parallel input of the multi-path service into the serial service data, the method further includes:
对并行输入的多路业务进行位宽处理, 将各路业务位宽转换为统一的位 宽。  The bit width processing is performed on the parallel input multi-path service, and the service bit width of each channel is converted into a unified bit width.
3、 如权利要求 1或 2所述的解码方法, 其中, 所述对所述串行业务数据 进行解码处理, 包括:  The decoding method according to claim 1 or 2, wherein the decoding processing the serial service data comprises:
对所述串行业务数据进行运算生成并行伴随多项式;  Performing operations on the serial service data to generate a parallel adjoint polynomial;
根据所述并行伴随多项式生成错误位置多项式和错误幅值多项式; 以及 根据所述错误位置多项式和错误幅值多项式对所述串行业务数据进行纠 错处理, 恢复原始业务数据。  Generating an error location polynomial and an error amplitude polynomial according to the parallel adjoint polynomial; and correcting the serial service data according to the error location polynomial and the error amplitude polynomial to recover the original service data.
4、 如权利要求 3所述的解码方法, 其中, 所述对串行业务数据进行运算 生成并行伴随多项式, 包括:  The decoding method according to claim 3, wherein the calculating the serial service data to generate a parallel adjoint polynomial comprises:
对所述串行业务数据进行运算生成两个字节的伴随多项式;  Performing operation on the serial service data to generate a two-byte adjoint polynomial;
所述根据所述并行伴随多项式生成错误位置多项式和错误幅值多项式, 包括:  The generating the error location polynomial and the error magnitude polynomial according to the parallel adjoint polynomial, including:
根据所述两个字节的伴随多项式运算生成两个字节的错误位置多项式和 错误幅值多项式;  Generating a two-byte error location polynomial and an error amplitude polynomial according to the two-byte adjoint polynomial operation;
所述根据所述错误位置多项式和错误幅值多项式对所述串行业务数据进 行纠错处理, 恢复原始业务数据, 包括:  And performing error correction processing on the serial service data according to the error location polynomial and the error amplitude polynomial to restore the original service data, including:
对所述两个字节的错误位置多项式和错误幅值多项式进行运算, 获取两 个字节的错误位置和纠错校正值; 根据两个字节的错误位置和纠错校正值对所述串行业务数据进行纠错处 理, 恢复原始业务数据。 Performing an operation on the error location polynomial and the error amplitude polynomial of the two bytes to obtain an error position of two bytes and an error correction correction value; The serial service data is subjected to error correction processing according to the error position of two bytes and the error correction correction value, and the original service data is restored.
5、 如权利要求 4所述的解码方法, 其中, 所述对所述串行业务数据进行 运算生成两个字节的伴随多项式, 包括:  The decoding method according to claim 4, wherein the calculating the serial service data to generate a two-byte adjoint polynomial comprises:
设接收到的业务数据的码字多项式为:  Let the codeword polynomial of the received service data be:
R(x) = rn_Yxn-1 + rn2xn-2 + . · · + + r0 · 根据所述码字多项式计算出通用的伴随多项式系数:
Figure imgf000021_0001
'"y = 0, ...,15; 根据所述通用的伴随多项式系数计算出两个字节的伴随多项式系数, 所 述两个字节的伴随多项式系数为:
R(x) = r n _ Y x n - 1 + r n2 x n - 2 + . · · + + r 0 · Calculate the general adjoint polynomial coefficients from the codeword polynomial:
Figure imgf000021_0001
'" y = 0, ..., 15; a two-byte adjoint polynomial coefficient is calculated from the general adjoint polynomial coefficient, the adjoint polynomial coefficients of the two bytes being:
Sj = ((((rM - aJ + rn_x )alj + rn_2aJ + rn_3 )alj +… + ( o7 + r4 ))a2j + r3aJ + r2 )alj + rxaJ + r0 7 = 0,1,2,···,15. 根据所述两个字节的伴随多项式的系数生成两个字节的伴随多项式; Sj = ((((r M - a J + r n _ x ) a lj + r n _ 2 a J + r n _ 3 ) a lj +... + ( o 7 + r 4 )) a 2j + r 3 a J + r 2 )a lj + r x a J + r 0 7 = 0,1,2,···, 15. Generate a two-byte adjoint polynomial from the coefficients of the two-byte adjoint polynomial ;
所述根据所述两个字节的伴随多项式运算生成两个字节的错误位置多项 式和错误幅值多项式, 包括:  The generating a two-byte error location polynomial and an error magnitude polynomial according to the two-byte adjoint polynomial operation includes:
对所述两个字节的伴随多项式进行解方程, 计算出错误位置多项式和两 个字节的错误幅值多项式;  Solving the two-byte adjoint polynomial to calculate an error location polynomial and a two-byte error amplitude polynomial;
Ί A Λ( ) = Λη + + Λ9 2 + · · · + Atxf ,0 设错误位置多项式为: 、 0 1 2 , 才艮 据所述解方程计算出的错误位置多项式对所述错误位置多项式 Λ( )进行运 算得到两个字节的错误位置多项式, 所述两个字节的错误位置多项式为: Ί A Λ( ) = Λ η + + Λ 9 2 + · · · + A t x f , 0 Let the error position polynomial be: , 0 1 2 , the error position polynomial pair calculated according to the solution equation The error location polynomial Λ ( ) is computed to obtain a two-byte error location polynomial, and the error location polynomial of the two bytes is:
A(a2i ) = Λ。 + Αλα2α + ··· + Λ8 16'· , ζ· = 0,1,2,… ,127 A(a 2i ) = Λ. + Α λ α 2 α + ··· + Λ 8 16 '· , ζ· = 0,1,2,... ,127
A(a2i+l ) = Λ。 + Ax li+l + A2a4i+2 +··· + Λ8 16'+8 , ζ· = 0,1 …, 127. 所述对所述两个字节的错误位置多项式和错误幅值多项式进行运算, 获 取两个字节的错误位置和纠错校正值, 包括: A(a 2i+l ) = Λ. + A x li+l + A 2 a 4i+2 +··· + Λ 8 16 '+ 8 , ζ· = 0,1 ..., 127. The error location polynomial and error for the two bytes Amplitude polynomial Take two bytes of error location and error correction correction value, including:
对两个字节的错误位置多项式进行钱搜索获取两个字节的错误位置, 同 时对所述两个字节的错误幅值多项式进行福尼计算得到两个字节的纠错校正 值。  A two-byte error location polynomial is searched for a two-byte error location, and a two-byte error correction correction value is obtained by performing a Fourier calculation on the two-byte error magnitude polynomial.
6、 如权利要求 5所述的解码方法, 其中, 所述并行输入的业务数据为光 通道传输单元 OTUk业务数据, 其中 k=2e、 3e、 4。  The decoding method according to claim 5, wherein the parallel input service data is an optical channel transmission unit OTUk service data, where k=2e, 3e, 4.
7、 一种解码装置, 包括: 转换模块、 解码模块和输出模块;  7. A decoding device, comprising: a conversion module, a decoding module, and an output module;
所述转换模块设置成接收并行输入的多路业务数据, 并将并行输入的多 路业务数据转换为串行业务数据;  The conversion module is configured to receive the multi-path service data input in parallel, and convert the parallel input multi-path service data into serial service data;
所述解码模块设置成对所述串行业务数据进行解码处理; 以及  The decoding module is configured to decode the serial service data; and
所述输出模块设置成将解码后的业务数据按照时隙复用方式输出到后续 电路。  The output module is configured to output the decoded service data to a subsequent circuit in a time slot multiplexing manner.
8、 如权利要求 7所述的解码装置, 还包括: 位宽转换模块;  8. The decoding apparatus according to claim 7, further comprising: a bit width conversion module;
所述位宽转换模块设置成在所述转换模块将并行输入的多路业务数据转 换为串行业务数据之前, 对并行输入的多路业务数据进行位宽处理, 将各路 业务数据的位宽转换为统一的位宽。  The bit width conversion module is configured to perform bit width processing on the parallel input multi-path service data before the conversion module converts the parallel input multi-path service data into serial service data, and set the bit width of each service data. Convert to a uniform bit width.
9、 如权利要求 7或 8所述的解码装置, 其中, 所述解码模块包括: 伴随 多项式产生模块、 错误位置多项式产生模块、 错误幅值多项式产生模块和纠 错模块;  The decoding device according to claim 7 or 8, wherein the decoding module comprises: a companion polynomial generating module, an error location polynomial generating module, an error amplitude polynomial generating module, and an error correcting module;
所述伴随多项式产生模块设置成对所述串行业务数据进行运算生成并行 伴随多项式;  The adjoint polynomial generation module is configured to perform operation on the serial service data to generate a parallel adjoint polynomial;
所述错误位置多项式产生模块设置成根据所述并行伴随多项式生成错误 位置多项式;  The error location polynomial generation module is configured to generate an error location polynomial according to the parallel adjoint polynomial;
所述错误幅值多项式产生模块设置成根据所述并行伴随多项式生成错误 幅值多项式;  The error amplitude polynomial generation module is configured to generate an error amplitude polynomial according to the parallel adjoint polynomial;
所述纠错模块设置成根据所述错误位置多项式和错误幅值多项式对所述 串行业务数据进行纠错处理, 恢复原始业务数据。 The error correction module is configured to perform error correction processing on the serial service data according to the error location polynomial and an error amplitude polynomial to restore original service data.
10、 如权利要求 9所述的解码装置, 其中, 10. The decoding device according to claim 9, wherein
所述伴随多项式产生模块设置成对所述串行业务数据进行运算生成两个 字节的伴随多项式;  The adjoint polynomial generation module is configured to operate on the serial service data to generate a two-byte adjoint polynomial;
所述错误位置多项式产生模块设置成根据所述两个字节的伴随多项式运 算生成两个字节的错误位置多项式;  The error location polynomial generation module is configured to generate a two-byte error location polynomial based on the two-byte adjoint polynomial operation;
所述错误幅值多项式产生模块设置成根据所述两个字节的伴随多项式运 算生成两个字节的错误幅值多项式; 以及  The error amplitude polynomial generation module is configured to generate a two-byte error magnitude polynomial based on the two-byte adjoint polynomial operation;
所述纠错模块设置成对所述两个字节的错误位置多项式和错误幅值多项 式进行运算, 获取两个字节的错误位置和纠错校正值, 根据两个字节的错误 位置和纠错校正值对所述串行业务数据进行纠错处理, 恢复原始业务数据。  The error correction module is configured to operate on the error location polynomial and the error amplitude polynomial of the two bytes to obtain an error position of two bytes and an error correction correction value, according to the error position and correction of two bytes The error correction value performs error correction processing on the serial service data to restore the original service data.
11、 如权利要求 10所述的解码装置, 其中,  The decoding device according to claim 10, wherein
所述伴随多项式产生模块通过如下方式对所述串行业务数据进行运算生 成两个字节的伴随多项式:  The companion polynomial generating module operates the serial service data to generate a two-byte adjoint polynomial by:
设接收到的业务数据的码字多项式为: R(x) = rn_xxn~l + rn_2xn~2 +… + + r0 · 根据所述码字多项式计算出通用的伴随多项式系数:
Figure imgf000023_0001
Let the codeword polynomial of the received service data be: R(x) = r n _ x x n ~ l + r n _ 2 x n ~ 2 +... + + r 0 · Calculate the generality according to the codeword polynomial Adjoint polynomial coefficients:
Figure imgf000023_0001
根据所述通用的伴随多项式系数计算出两个字节的伴随多项式系数, 所 述两个字节的伴随多项式的系数为: Sj = ((((rn · 1 + rn_x ) 2J + rn_2 + rn_3 ) 2J + · · ·+ r^ + r4 ))«2j' + + r2 ) 2J + rx + r0 Calculating a two-byte adjoint polynomial coefficient according to the universal adjoint polynomial coefficient, the coefficient of the two-byte adjoint polynomial is: Sj = ((((r n · 1 + r n _ x ) 2J + r n _ 2 + r n _ 3 ) 2J + · · · + r^ + r 4 ))« 2j ' + + r 2 ) 2J + r x + r 0
7 = 0,1,2, · · ·,15 . 根据所述两个字节的伴随多项式的系数生成两个字节的伴随多项式; 7 = 0,1,2, · · ·, 15. A two-byte adjoint polynomial is generated from the coefficients of the two-byte adjoint polynomial;
所述错误位置多项式产生模块通过如下方式根据所述两个字节的伴随多 项式运算生成两个字节的错误位置多项式: 对所述两个字节的伴随多项式进行解方程, 计算出错误位置多项式和两 个字节错误幅值多项式; 设错误位置多项式为:
Figure imgf000024_0001
根据 所述解方程计算出的错误位置多项式对所述错误位置多项式 Λ( )进行运算 得到两个字节的错误位置多项式, 所述两个字节的错误位置多项式为:
The error location polynomial generation module generates a two-byte error location polynomial according to the two-byte adjoint polynomial operation as follows: Solving the two-byte adjoint polynomial, calculating the error location polynomial and the two-byte error amplitude polynomial; setting the error location polynomial to:
Figure imgf000024_0001
The error position polynomial calculated according to the solution equation operates the error position polynomial Λ ( ) to obtain a two-byte error position polynomial, and the error location polynomial of the two bytes is:
Α(α) = Λ。+ λ + A2a4i +··· + Λ8"16'· , i = 0,1 …, 127 Α(α ) = Λ. + λ + A 2 a 4i +··· + Λ 8 " 16 '· , i = 0,1 ..., 127
Κ(α2ί+ι) = Λ。 + Κλα2ί+ι + A2 4i+2 + ··· + Λ8"16'.+8 , i = 0,1,2,· -·,127. 所述纠错模块设置成对两个字节的错误位置多项式进行钱搜索获取两个 字节的错误位置, 同时对所述两个字节的错误幅值多项式进行福尼计算得到 两个字节的纠错校正值。 Κ(α 2ί+ι ) = Λ. + Κ λ α 2ί+ι + A 2 4i+2 + ··· + Λ 8 " 16 '.+ 8 , i = 0,1,2,· -·,127. The error correction module is set to two The byte error location polynomial performs a money search to obtain a two-byte error location, and the Fourier error magnitude polynomial is subjected to a Fourier calculation to obtain a two-byte error correction correction value.
12、 如权利要求 11所述的解码装置, 其中, 所述并行输入的业务数据为 光通道传输单元 OTUk业务数据, 其中 k=2e、 3e、 4。  The decoding device according to claim 11, wherein the parallel input service data is an optical channel transmission unit OTUk service data, where k=2e, 3e, 4.
PCT/CN2013/090736 2013-05-24 2013-12-27 Decoding method and apparatus WO2014187138A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310198818.4 2013-05-24
CN201310198818.4A CN104184544B (en) 2013-05-24 2013-05-24 A kind of coding/decoding method and device

Publications (1)

Publication Number Publication Date
WO2014187138A1 true WO2014187138A1 (en) 2014-11-27

Family

ID=51932781

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090736 WO2014187138A1 (en) 2013-05-24 2013-12-27 Decoding method and apparatus

Country Status (2)

Country Link
CN (1) CN104184544B (en)
WO (1) WO2014187138A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022226766A1 (en) * 2021-04-27 2022-11-03 华为技术有限公司 Decoding method and related device
CN115118388B (en) * 2022-06-15 2024-04-23 北京诺芮集成电路设计有限公司 Multichannel multiplexing FEC encoding and decoding method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411577A (en) * 1999-12-17 2003-04-16 西门子公司 Multiport-RAM memory device
CN1926896B (en) * 2004-04-23 2010-05-26 Ut斯达康通讯有限公司 Method and apparatus for multi-antanna signal transmission in RF long-distance wireless BS
CN101729090A (en) * 2008-10-10 2010-06-09 中兴通讯股份有限公司 Method for implementing channel estimation and compensation in wideband code division multiple access system and device thereof
CN102340315A (en) * 2011-08-22 2012-02-01 复旦大学 FPGA (field-programmable gate array) interconnection structure supporting time division switching

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4598711B2 (en) * 2006-03-30 2010-12-15 富士通株式会社 Error correction device
CN101227583B (en) * 2008-02-03 2010-09-29 宇龙计算机通信科技(深圳)有限公司 Terminal and method for implementing wireless multi-path audio and video business
CN101695015B (en) * 2009-10-30 2013-01-16 烽火通信科技股份有限公司 RS decoder and decoding method for EPON system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411577A (en) * 1999-12-17 2003-04-16 西门子公司 Multiport-RAM memory device
CN1926896B (en) * 2004-04-23 2010-05-26 Ut斯达康通讯有限公司 Method and apparatus for multi-antanna signal transmission in RF long-distance wireless BS
CN101729090A (en) * 2008-10-10 2010-06-09 中兴通讯股份有限公司 Method for implementing channel estimation and compensation in wideband code division multiple access system and device thereof
CN102340315A (en) * 2011-08-22 2012-02-01 复旦大学 FPGA (field-programmable gate array) interconnection structure supporting time division switching

Also Published As

Publication number Publication date
CN104184544B (en) 2019-01-11
CN104184544A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US11405134B2 (en) Apparatus and method for communicating data over an optical channel
US10320425B2 (en) Staircase forward error correction coding
US10211949B2 (en) Receiver and signal processing method thereof
CA3193957C (en) Forward error correction with compression coding
CN100589328C (en) A kind of Reed-Solomon sign indicating number decoder
JP2000183758A (en) Decoding device, decoding method, encoding device and encoding method
WO2011026375A1 (en) Methods and devices for encoding and decoding
CN102170327B (en) Super forward error correction hardware decoding method and apparatus thereof
WO2012174933A1 (en) Rs encoder and encoding method thereof
MXPA04007077A (en) Dual chien search blocks in an error-correcting decoder.
JP2005516458A (en) Message processing with in-decoder component blocks
CN114499767B (en) Data transmission system and RS encoding device and method thereof
EP3480960B1 (en) Error correction decoding device, and optical transmission/reception device
JP2024520875A (en) Systems and methods for dual-coded concatenation in probability amplitude shaping - Patents.com
WO2014187138A1 (en) Decoding method and apparatus
Huu et al. Multi-hop Reed-Solomon encoding scheme for image transmission on wireless sensor networks
US11973517B2 (en) Reconfigurable FEC
WO2020114318A1 (en) Encoding method, decoding method and device
CN111600613B (en) Verification method, verification device, decoder, receiver and computer storage medium
CN109728875B (en) BCH decoding method and device
JP5794939B2 (en) Error correction decoding apparatus and error correction decoding method
WO2015021641A1 (en) Method, device and system for sending bit stream
KR101478466B1 (en) Low-density parity check decoding device and decoding method using an efficient one's complement scheme
KR20230134341A (en) Apparatus for low latency cascaded FEC and method thereof
WO2013120247A1 (en) Method, apparatus and system for matching forward error correction codewords into frame structure

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13885396

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13885396

Country of ref document: EP

Kind code of ref document: A1