QC-LDPC encoders, communication equipment and storage products based on high-level synthesis

By designing a ring-structured sub-matrix encoding component in the QC-LDPC encoder, parallel logical operations of information bits and generating matrices are realized, solving the problems of high hardware consumption and low encoding rate, and improving the efficiency and performance of the encoder.

CN118337224BActive Publication Date: 2024-08-30HUAZHONG UNIV OF SCI & TECH
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410759357.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-30
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The existing QC-LDPC encoder based on high-level synthesis consumes a lot of hardware and has a low encoding rate, and cannot effectively reduce hardware consumption and increase the encoding rate.

Method used

A QC-LDPC encoder based on high-level synthesis is designed, using a coding array. Each column is composed of H sub-matrix coding components connected in series to form a ring structure. The sub-matrix coding components can process the logical operations of multiple information bits in parallel. The ring structure realizes the logical operation and XOR operation of the generating matrix, which reduces the dependence on the shift register and improves the coding rate.

Benefits of technology

It reduces hardware consumption, increases the coding rate, realizes parallel processing of multiple information bits and parallel operation of different sub-matrix coding units, and significantly improves the performance of the encoder.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337224B
    Figure CN118337224B
Patent Text Reader

Abstract

The present application belongs to the technical field related to encoder design, and discloses a QC-LDPC encoder, communication equipment and storage product based on high-level synthesis. The QC-LDPC encoder includes a data input module, an encoding calculation module and a data output module. The encoding calculation module includes an encoding array, and the sub-matrix encoding components in each column have the same structure and are connected in series from beginning to end to form a ring structure. Each sub-matrix encoding component includes: an information bit input port, a generation matrix input port, a buffer, and a sub-matrix encoding unit. The sub-matrix encoding unit is used to perform a logical AND calculation on the information bit and the generation matrix, and then perform an XOR operation with the elements in the buffer, and store the calculation result in the cache of the next sub-matrix encoding component, and obtain the output result of the sub-matrix encoding component of the last group of information bit fragments in the corresponding information interval as the verification information of the corresponding information interval. Using the QC-LDPC encoder provided by the present application, hardware consumption can be reduced and the encoding rate can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field related to encoder design, and more specifically, to a QC-LDPC encoder, communication equipment and storage product based on high-level synthesis. Background Art

[0002] During information transmission and exchange, various errors usually occur, resulting in a high original bit error rate. Quasi-Cyslic Low-Density Parity-Check Codes (QC-LDPC) technology can improve the reliability of data. In QC-LDPC, the encoding process uses a generator matrix (G matrix) for encoding. By multiplying the original data with the generator matrix, check bits can be generated to obtain the encoded data. At the same time, there is also a corresponding check matrix for error detection and decoding. QC-LDPC adds additional check bits, which makes the entire data have error correction capabilities and improves the accuracy and reliability of data transmission.

[0003] High Level Synthesis (HLS) is an automated design process that compiles the algorithmic description of logical behavior into the corresponding FPGA register transfer level (RTL) hardware implementation. HLS-based automated hardware development provides higher productivity and flexibility and is widely used in large-scale and / or new functional scenarios such as machine learning, graphics computing, and specific domain accelerators.

[0004] The existing HLS-based QC-LDPC encoder uses a shift register encoding structure. Although such a design structure conforms to the intuitive QC-LDPC calculation process, the encoder based on the shift register needs to store the generator matrix. For example, Chinese patent application CN117375633A-"A QC-LDPC encoder based on high-level synthesis" discloses a QC-LDPC encoder structure design. On the one hand, it needs to design a shift register to realize the storage, shifting and calculation of the generator matrix, which consumes a lot of hardware. On the other hand, it can only realize the calculation of one bit at each time, and the calculation rate is low.

[0005] Based on this, it is urgent to design a QC-LDPC encoder based on high-level synthesis to reduce hardware consumption and improve the coding rate. Summary of the invention

[0006] In response to the above defects or improvement needs of the prior art, the present application provides a QC-LDPC encoder, communication equipment and storage product based on high-level synthesis, which aims to reduce hardware consumption and increase the coding rate.

[0007] To achieve the above-mentioned object, according to one aspect of the present application, a QC-LDPC encoder based on high-level synthesis is provided, which includes a data input module, a coding calculation module and a data output module; the data input module is used to read information to be encoded, the coding calculation module is used to perform coding calculation on the information to be encoded to obtain verification information, and the data output module is used to integrate the information to be encoded and the verification information and then output it;

[0008] The coding calculation module includes a coding array, each of which has H*W sub-matrix coding components, H and W are the number of rows and columns of the coding array respectively, and different columns are used to perform coding calculations on different information intervals in the information to be coded;

[0009] The H sub-matrix encoding components in each column have the same structure and are connected in series head to tail to form a ring structure, and each sub-matrix encoding component includes:

[0010] Information bit input port, used to obtain the information bit fragment {a1,...,a n};

[0011] Generator matrix input port, used to obtain the generator matrix fragment {b1,...,b n};

[0012] Buffer, used to obtain the output result of the previous sub-matrix encoding component {h1,...,h n};

[0013] Sub-matrix encoding unit, for each information bit a i and each generator matrix element b j Perform logical AND calculation to obtain an n*n dimensional result matrix [c ij ], i is the index of the information bit, i = 1, ..., n, j is the index of the matrix element, j = 1, ..., n, n is the length of the information bit segment, and the result matrix [c ij ], the n elements corresponding to the k-1-bit circular shift from the diagonal element position in the row direction and the k-th element h in the buffer k Perform an XOR operation to obtain the k-th output result and store it as the k-th element of the buffer in the next sub-matrix encoding component; k is the index of the buffer element, k=1,...,n;

[0014] The H information bit input ports of the sub-matrix encoding components in each column are used to continuously obtain different information bit fragments of the corresponding information interval, and the output result of the sub-matrix encoding component that obtains the last group of information bit fragments of the corresponding information interval is used as the verification information of the corresponding information interval.

[0015] In one embodiment, the coding calculation module includes a plurality of the coding arrays, the data input module is used to read in information to be encoded of different code words, the information to be encoded of different code words is coded and calculated through different coding arrays, and the data output module is used to integrate different information to be encoded and corresponding verification information and output different coding information.

[0016] In one of the embodiments, the encoder has multiple data input modules, multiple encoding calculation modules and multiple data output modules, and each encoding calculation module corresponds to a data input module and a data output module.

[0017] In one of the embodiments, the number H of sub-matrix encoding components in each column, the length n of the information bit segment input by the information bit input port in each sub-matrix encoding component, and the length L of the information interval processed by each ring structure satisfy: L / (H*n)=integer.

[0018] In one embodiment, each column in the encoding array synchronously processes encoding calculations for information intervals of the same length.

[0019] In one of the embodiments, the QC-LDPC encoder further includes an initialization module for assigning the buffer data of the first sub-matrix encoding component in each ring structure to 0 when starting the encoding calculation module.

[0020] In one embodiment, the data input module and the data output module are both connected to the HBM channel for communication via an AXI interface.

[0021] In one embodiment, the sub-matrix encoding unit is implemented by a lookup table inside the FPGA: 2 The n*n dimensional AND gate array consists of n AND gates and n XOR gates. The n*n dimensional AND gate array is used to execute n information bits a i and n generator matrix elements b j The logical AND calculation of n*n dimensional result matrix [c ij ], n XOR gates perform n different XOR operations respectively to obtain n output results.

[0022] According to another aspect of the present application, a communication device is provided, comprising a QC-LDPC encoder based on high-level synthesis as described in any one of the above items.

[0023] According to another aspect of the present application, a storage product is provided, comprising a QC-LDPC encoder based on high-level synthesis as described in any one of the above items.

[0024] In general, compared with the prior art, the above technical solutions conceived by the present application have the following beneficial effects:

[0025] 1. The present application provides a QC-LDPC encoder based on high-level synthesis, which designs a coding array. Each column is composed of H sub-matrix coding components connected in the first position to form a ring structure. Each sub-matrix coding component is designed with a sub-matrix coding unit. Each sub-matrix coding unit can directly implement the logical operation of n different information bits and the corresponding generation matrix, and realize the XOR operation of the operation result of the previous group of information bits and the operation result of the next group of information bits through the design of connecting in the first position. Therefore, there is no need to design a shift register to realize the storage and shift of the generation matrix, reducing hardware consumption. Moreover, each sub-matrix coding unit in the present application can process the logical operation of multiple information bits in parallel and different sub-matrix coding units can run in parallel, which can greatly improve the coding rate. Therefore, by using the QC-LDPC encoder based on high-level synthesis provided by the present application, hardware consumption can be reduced and the coding rate can be improved;

[0026] 2. In one embodiment, the number H of sub-matrix encoding components in each column, the length n of the information bit segment input by the information bit input port in each sub-matrix encoding component, and the length L of the information interval processed by each ring structure satisfy: L / (H*n)=integer. In this way, the check information can be fixedly output from the last sub-matrix encoding component, and there is no need to locate and query from which sub-matrix encoding component the check information is output;

[0027] 3. In one embodiment, the sub-matrix coding unit has multiple coding arrays, and each coding array operates in parallel, so that the coding rate can be further improved;

[0028] 4. In one embodiment, the encoder has a plurality of sub-matrix encoding units, and each sub-matrix encoding unit operates in parallel, so that the encoding rate can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of the structure of the QC-LDPC encoder in one embodiment of the present application.

[0030] Figure 2 It is a schematic diagram of the structure of the coding array in one embodiment of the present application.

[0031] Figure 3 It is a schematic diagram of the hardware structure of the sub-matrix encoding unit in one embodiment of the present application.

[0032] Figure 4 It is a QC-LDPC encoder with multiple coding arrays in one embodiment of the present application.

[0033] Figure 5 It is a QC-LDPC encoder with multiple encoding calculation modules in one embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0035] like Figure 1 The figure shows a schematic diagram of the structure of the QC-LDPC encoder in an embodiment of the present application, which mainly includes a data input module, a coding calculation module and a data output module. The data input module is used to read in information to be encoded, the coding calculation module is used to perform coding calculation on the information to be encoded to obtain verification information, and the data output module is used to integrate the information to be encoded and the verification information and output them to obtain a coded word with verification information added.

[0036] Specifically, the coding calculation module includes a coding array, such as Figure 2 Shown is a schematic diagram of the structure of the coding array in one embodiment of the present application. The coding array has H*W sub-matrix coding components, H and W are the number of rows and columns of the coding array respectively; different columns are used to perform coding calculations on different information intervals in the information to be encoded. According to the coding rule of the QC-LDPC encoder, H is less than or equal to the number of rows of the base matrix of the QC-LDPC encoder, and W is less than or equal to the difference between the number of columns and the number of rows of the base matrix. It can be understood that when W=1, the coding array has only one column, and when W>1, the coding array has multiple columns. Generally speaking, the information to be encoded is the information bit of a codeword, and the information to be encoded can be divided into W different fragments, so that W different information intervals can be obtained, and each column is used to perform coding calculations on different information intervals in the information to be encoded to obtain verification information for the corresponding information interval.

[0037] The H sub-matrix encoding components in each column have the same structure and are connected in series head to tail to form a ring structure. Each sub-matrix encoding component includes an information bit input port, a generation matrix input port, a buffer and a sub-matrix encoding unit.

[0038] The information bit input port is used to obtain the information bit fragment {a1,...,a n}, n is the length of the information bit segment, a i is the i-th information bit in the information bit segment, i = 1, ..., n. Specifically, the length of the information bit segment can be adjusted according to the state of the hardware device. Each sub-matrix encoding component obtains different information bit segments from the front to the back of the information interval for calculation. For example, the first sub-matrix encoding component obtains the first information bit segment in the information interval, the second sub-matrix encoding component obtains the second information bit segment in the information interval, and so on. The H-th sub-matrix encoding component obtains the H-th information bit segment in the information interval. If the information interval has not been read, the first sub-matrix encoding component continues to read the H+1-th information bit segment, and the second sub-matrix encoding component continues to read the H+2-th information bit segment, and so on, until the information interval is read.

[0039] The generator matrix input port is used to obtain the generator matrix fragment {b1,...,b n}, b j is the jth matrix element in the generator matrix fragment, j = 1, ..., n. Each information bit fragment corresponds to a generator matrix fragment, and the correspondence between the information bit fragment and the generator matrix fragment follows the traditional encoding rule of the QC-LDPC encoder. The selection of the generator matrix fragment can be done by displacement addressing to ensure that the generator matrix fragment can be multiplied with the corresponding information bit fragment for encoding calculation.

[0040] The buffer is used to obtain the output result of the previous sub-matrix encoding component {h1,...,h n}. For the f-th sub-matrix coding component, its buffer obtains the output result of the f-1-th sub-matrix coding component, and for the 1st sub-matrix coding component, its buffer obtains the output result of the H-th sub-matrix coding component. It can be understood that in the initial stage, it is necessary to input 0 into the buffer of the 1st sub-matrix coding component for initialization. Therefore, in one embodiment, the QC-LDPC encoder can set an initialization module for assigning the buffer data of the first sub-matrix coding component in each ring structure to 0 when starting the coding calculation module.

[0041] The sub-matrix encoding unit is used to implement the vector-matrix multiplication between the generator matrix and each information bit under GF(2). i and each generator matrix element b j Perform logical AND calculation to obtain an n*n dimensional result matrix [c ij ], c ij Indicates information bit a i and generate matrix element b j The result obtained after logical AND calculation is located in the i-th row and j-th column of the result matrix.ij ], the n elements corresponding to the k-1-bit circular shift from the diagonal element position in the row direction and the k-th element h in the buffer k Perform an XOR operation to obtain the k-th output result and store it as the k-th element in the buffer of the next sub-matrix encoding component; k is the index of the buffer element, k=1,...,n. For example, k=1 means that the diagonal element is XORed with the element h1 in the buffer to obtain the first output result and store it as the element h1 in the buffer of the next sub-matrix encoding component; k=2 means that the n elements corresponding to the circular shift of 1 bit from the diagonal element position in the row direction are XORed with the element h2 in the buffer to obtain the second output result and store it as the element h2 in the buffer of the next sub-matrix encoding component; and so on, until n output results are output, that is, the output results {h1,...,h n}, complete the encoding calculation of the current information bit segment. Therefore, the ring structure is actually an alternating structure of "buffer-sub-matrix encoding unit-buffer-sub-matrix encoding unit".

[0042] like Figure 3 FIG. 1 is a schematic diagram of the hardware structure of a sub-matrix encoding unit in an embodiment of the present application. In an embodiment, the sub-matrix encoding unit is implemented by a lookup table inside the FPGA: 2 AND gates and n XOR gates, n 2 AND gates form an n*n dimensional AND gate array, which is used to execute n information bits a i and n generator matrix elements b j The logical AND calculation of n*n dimensional result matrix [c ij ], n XOR gates perform n different XOR operations respectively to obtain n output results.

[0043] For example, the length of the information bit segment processed by a sub-matrix encoding unit at a time is 3 bits, that is, n=3, the information bit segment is {a1, a2,, a3}, and the corresponding generated matrix segment is {b1, b2,, b3}. The sub-matrix encoding unit performs a logical AND calculation on each data in {a1, a2,, a3} and each data in {b1, b2,, b3} to obtain 9 calculation results, forming a 3*3 dimensional result matrix [c ij ]:

[0044]

[0045] Among them, c ij = a1&b j .

[0046] c 11 、c 22 、c 33XOR calculation is performed with h1 in the buffer and the result is stored as h1 in the next buffer. 12 、c 23 、c 31 XOR calculation is performed with h2 in the buffer and the result is stored as h2 in the next buffer. 13 、c 21 、c 32 XOR calculation is performed with h2 in the buffer and the result is stored as h3 in the next buffer.

[0047] In the present application, the information bit input ports of the H sub-matrix encoding components in each column are used to continuously obtain different information bit fragments of the corresponding information interval, and the output result of the sub-matrix encoding component that obtains the last group of information bit fragments of the corresponding information interval is used as the verification information of the corresponding information interval, that is, when all information bits of the corresponding information interval are calculated, the verification information is output. In one embodiment, the number H of sub-matrix encoding components in each column, the length n of the information bit fragment input by the information bit input port of each sub-matrix encoding component, and the length L of the information interval processed by each ring structure satisfy: L / (H*n)=integer. In this way, the verification information can be fixedly output from the last sub-matrix encoding component, and there is no need to locate and query from which sub-matrix encoding component the verification information is output.

[0048] As described above, one information interval can be encoded by one ring structure (one column). The encoding array formed by the ring structure can complete the encoding of different information intervals in the information to be encoded. The parallel calculation between columns can greatly improve the encoding speed. Furthermore, each column in the encoding array synchronously processes the encoding calculation of the information interval of the same length, and each column synchronously completes the encoding calculation, further improving the encoding rate.

[0049] The QC-LDPC encoder designed in the present application does not need to design a shift register to implement the storage and shifting of the generator matrix, reducing hardware consumption. Moreover, each sub-matrix encoding unit in the present application can process the logical operations of multiple information bits in parallel and different sub-matrix encoding units can run in parallel, thereby greatly improving the encoding rate. Therefore, using a QC-LDPC encoder based on high-level synthesis provided by the present application, hardware consumption can be reduced and the encoding rate can be improved.

[0050] In one embodiment, if Figure 4The QC-LDPC encoder with multiple coding arrays in one embodiment of the present application is shown. In this embodiment, the coding calculation module includes multiple coding arrays, the data input module is used to read the information to be encoded of different code words, and the information to be encoded of different code words is encoded and calculated through different coding arrays, and the data output module is used to integrate different information to be encoded and corresponding check information and output different coding information. In this embodiment, the coding calculation module includes multiple coding arrays, and each coding array runs in parallel, so that the coding rate can be further improved.

[0051] In one embodiment, if Figure 5 The figure shows a QC-LDPC encoder with multiple coding calculation modules in an embodiment of the present application. Specifically, the encoder has multiple data input modules, multiple coding calculation modules and multiple data output modules. Each coding calculation module corresponds to a data input module and a data output module. In this embodiment, multiple coding calculation modules run in parallel, which can further improve the coding rate.

[0052] In one embodiment, each data input module is directly connected to the HBM via an AXI interface, and each data output module is also directly connected to the HBM via an AXI interface. Therefore, one coding calculation group occupies two AXI interfaces. A parallel QC-LDPC encoder that can be flexibly adjusted based on high-level synthesis scale can be implemented by selecting any number of coding calculation groups when the number of AXI interfaces on the FPGA card allows.

[0053] Correspondingly, the present application also relates to a communication device or storage product, which involves data encoding. The data encoding is specifically performed by the QC-LDPC encoder based on high-level synthesis introduced above, thereby reducing hardware consumption and increasing the encoding speed, thereby improving the overall performance of the device or product.

[0054] The technical features of the above-described embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. It should be noted that "in one embodiment", "for example", "for example", etc. in this application are intended to illustrate this application, rather than to limit this application.

[0055] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.

Claims

1. A QC-LDPC encoder based on high-level synthesis, characterized in that: It includes a data input module, a coding calculation module and a data output module; the data input module is used to read the information to be coded, the coding calculation module is used to perform coding calculation on the information to be coded to obtain verification information, and the data output module is used to integrate the information to be coded and the verification information and then output it; The coding calculation module includes a coding array, each of which has H*W sub-matrix coding components, where H and W are the number of rows and columns of the coding array respectively; different columns are used to perform coding calculations on different information intervals in the information to be coded; The H sub-matrix encoding components in each column have the same structure and the sub-matrix encoding components in the same column are connected in series end to end to form a ring structure, and each sub-matrix encoding component includes: Information bit input port, used to obtain the continuous information bit fragments {a1,...,a n }; Generator matrix input port, used to obtain the QC-LDPC encoder generator matrix fragment {b1,...,b n }; Buffer, used to obtain the output result of the previous sub-matrix encoding component {h1,...,h n }; Sub-matrix encoding unit, for each information bit a i and each generator matrix element b j Perform logical AND calculation to obtain an n*n dimensional result matrix [c ij ], i is the index of the information bit, i = 1, ..., n, j is the index of the matrix element, j = 1, ..., n, n is the length of the information bit segment, and the result matrix [c ij ], the n elements corresponding to the k-1-bit circular shift from the diagonal element position in the row direction and the k-th element h in the buffer k Perform an XOR operation to obtain the k-th output result and store it as the k-th element of the buffer in the next sub-matrix encoding component; k is the index of the buffer element, k=1,...,n; The H information bit input ports of the sub-matrix encoding components in each column are used to continuously obtain different information bit fragments of the corresponding information interval, and the output result of the sub-matrix encoding component that obtains the last group of information bit fragments of the corresponding information interval is used as the verification information of the corresponding information interval.

2. The QC-LDPC encoder based on high-level synthesis according to claim 1, characterized in that The coding calculation module includes a plurality of the coding arrays, the data input module is used to read in information to be encoded of different code words, the information to be encoded of different code words is coded and calculated through different coding arrays, and the data output module is used to integrate different information to be encoded and corresponding verification information and then output different coding information.

3. The QC-LDPC encoder based on high-level synthesis as claimed in claim 2, characterized in that The encoder has a plurality of data input modules, a plurality of encoding calculation modules and a plurality of data output modules, and each encoding calculation module corresponds to a data input module and a data output module.

4. The QC-LDPC encoder based on high-level synthesis according to any one of claims 1 to 3, characterized in that: The number H of sub-matrix coding components in each column, the length n of the information bit segment input by the information bit input port in each sub-matrix coding component, and the length L of the information interval processed by each ring structure satisfy: L / (H*n)=integer.

5. The QC-LDPC encoder based on high-level synthesis as claimed in claim 4, characterized in that Each column in the encoding array synchronously processes the encoding calculation of the information interval of the same length.

6. The QC-LDPC encoder based on high-level synthesis according to claim 1, characterized in that The QC-LDPC encoder further comprises an initialization module, which is used to assign the buffer data of the first sub-matrix encoding component in each ring structure to 0 when starting the encoding calculation module.

7. The QC-LDPC encoder based on high-level synthesis according to claim 1, characterized in that The data input module and the data output module are both connected to the HBM channel through an AXI interface.

8. The QC-LDPC encoder based on high-level synthesis according to claim 1, characterized in that The sub-matrix encoding unit is implemented by a lookup table inside the FPGA: 2 The n*n dimensional AND gate array consists of n AND gates and n XOR gates. The n*n dimensional AND gate array is used to execute n information bits a i and n generator matrix elements b j The logical AND calculation of n*n dimensional result matrix [c ij ], n XOR gates perform n different XOR operations respectively to obtain n output results.

9. A communication device, characterized in that: Comprising a QC-LDPC encoder based on high-level synthesis as described in any one of claims 1 to 8.

10. A storage product, characterized in that: Comprising a QC-LDPC encoder based on high-level synthesis as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • QC-LDPC encoder based on high-level integration

    CN117375633A

  • Full-parallel-input cyclic-left-shift QC-LDPC encoder in deep space communication

    CN103929205A

  • Construction method of LDPC check matrix and LDPC encoder

    CN116208175A

  • Universal error control coding scheme for digital communication and data storage systems

    US20080028274A1

  • Data Recovery on Cluster Failures and ECC Enhancements with Code Word Interleaving

    US20140164878A1