Low density parity check code LDPC decoding method and device
By updating the check node and variable node information line by line in the LDPC decoder, and using the difference between the minimum value and the next smallest value for verification processing, the high power consumption and high power consumption of the LDPC decoder caused by too many verification processes are solved. To solve the problem of high latency, power consumption and latency are significantly reduced.
Patent Information
- Application Number
- CN202310336105.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-01
AI Technical Summary
Low-density parity check code (LDPC) decoders suffer from high power consumption and high latency due to excessive number of check processing times.
In each decoding iteration, the check node information and variable node information of the LDPC check matrix are updated row by row, and the difference between the minimum value and the next smallest value of the check node is obtained based on the updated information. Based on these differences, the decoding iteration process is Perform verification processing to reduce the number of verification processes at iteration termination.
By introducing limited computational cost, the power consumption and delay of the LDPC decoder are reduced, achieving a reduction of about 7% to 16% in power consumption and a reduction of 30% to 90% in the number of iterations.
Smart Images

Figure CN118740169A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a low-density parity-check code (LDPC) decoding method and device. Background Art
[0002] Low Density Parity Check Code (LDPC) is an error correction code with excellent performance, which is very close to the Shannon limit, and has the characteristics of low decoding complexity and parallel decoding. Due to the relatively simple implementation and excellent performance of LDPC codes, binary LDPC codes have been widely used in practice, such as wired transmission, various high-speed wireless communication systems 5G-NR, and WiFi.
[0003] LDPC codes have good error correction performance. Common basic structures for LDPC code soft decision decoding include the Two-Phase-Message-Passing (TPMP) structure and the Turbo-Decoding-Message-Passing (TDMP) structure. TPMP has the ability to be fully parallelized, but the resource overhead is large. In general engineering practice, the TDMP structure with partial parallelization is adopted to achieve a compromise balance in all aspects.
[0004] The check information update algorithms involved in the implementation of soft decision decoding of LDPC codes include: Sum-Product Algorithm (SPA) and Min-Sum Algorithm (MSA). Among them, SPA has good decoding performance, but its computational complexity is high. At the same time, due to its nonlinear characteristics, it has high performance requirements for the front stage of the receiver; for MSA, this algorithm is an approximation of the SPA algorithm, with certain performance losses, but because of its low complexity and mostly linear characteristics, and with more improved algorithms (such as Offset-MSA, Normalized-MSA) to improve performance, it is widely used in engineering. Even so, the MSA series of algorithms are significantly increased in complexity, power consumption, area and processing delay compared to traditional algebraic codes. At the same time, there are few applications of the relationship between the minimum value and the second minimum value associated with the update of the check node in the MSA series algorithms. Most algorithms reduce the storage size of the check information by inferring the second minimum value from the minimum value or the minimum value from the second minimum value. There is no more in-depth application. However, based on the analysis of data characteristics, it is found that there is a connection between the amplitude difference between the minimum value and the second minimum value and whether the check iteration termination judgment can be passed with a high probability.
[0005] In order to make LDPC codes more valuable for application, the optimization of technical indicators such as the complexity, power consumption, area and processing delay of its decoder is still worth further exploration. Summary of the invention
[0006] The embodiments of the present invention provide a low-density parity-check code (LDPC) decoding method and device, so as to at least solve the problems of high power consumption and high delay caused by too many check processing times of the LDPC decoder in the related art.
[0007] According to an embodiment of the present invention, a low-density parity check code LDPC decoding method is provided, comprising: in each decoding iteration, updating the check node information and variable node information of the LDPC check matrix row by row; obtaining the minimum value and the second minimum value difference of the check node corresponding to each row of the LDPC check matrix according to the updated check node information and variable node information Based on the LDPC check matrix A verification process is performed on the decoding iteration process of the LDPC check matrix.
[0008] According to another embodiment of the present invention, a low-density parity check code LDPC decoding device is provided, comprising: an updating module, used to update the check node information and variable node information of the LDPC check matrix row by row in each decoding iteration; an obtaining module, used to obtain the minimum value and the second minimum value difference of the check node corresponding to each row of the LDPC check matrix according to the updated check node information and variable node information A check module is used for checking the LDPC matrix based on the A verification process is performed on the decoding iteration process of the LDPC check matrix.
[0009] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0010] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0011] According to the embodiment of the present invention, in the decoding iteration process, based on the difference between the minimum value and the second minimum value of the check node obtained The decoding iteration process of the LDPC check matrix is checked, so that the number of iterative termination check processing times is reduced by introducing a limited computational cost. Therefore, the high power consumption and high delay problems caused by too many check processing times in the LDPC decoder in the related art can be solved, and the power consumption of the LDPC decoder can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a hardware structure block diagram of a computer terminal for running a low-density parity-check code LDPC decoding method according to an embodiment of the present invention;
[0013] Figure 2 is a structural block diagram of a communication system according to an embodiment of the present invention;
[0014] Figure 3 is a flowchart of a low-density parity-check code LDPC decoding method according to an embodiment of the present invention;
[0015] Figure 4 is a flowchart of a method for implementing TDMP-MSA decoding in each iteration according to an embodiment of the present invention;
[0016] Figure 5 is a structural block diagram of a low-density parity-check code LDPC decoding device according to an embodiment of the present invention;
[0017] Figure 6 is a structural block diagram of a low-density parity-check code LDPC decoding device according to another embodiment of the present invention;
[0018] Figure 7 is a structural block diagram of a low-density parity-check code LDPC decoding device according to yet another embodiment of the present invention;
[0019] Figure 8 is a structural block diagram of a low-density parity-check code LDPC decoding device according to yet another embodiment of the present invention. DETAILED DESCRIPTION
[0020] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0022] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 11 is a hardware structure block diagram of a computer terminal for running an optimization method for a low-density parity check code LDPC decoding algorithm according to an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Central Processing Unit, MCU) or a programmable logic device (Field Programmable Gate Array, FPGA)) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0023] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the optimization method of the low-density parity check code LDPC decoding algorithm in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0024] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0025] The embodiment of the present invention relates to a decoding technology of channel coding and decoding, which can be applied to Figure 2 On the communication system shown, Figure 2 is a block diagram of a communication system according to an embodiment of the present invention. Figure 2 As shown, the communication system includes: a source module, a channel coding module, a modulation module, a channel module, a demodulation module, a channel decoding module, and a destination module. Among them, the information is sent by the source module, processed by the channel coding module and the modulation module, and then transmitted to the demodulation module through the channel module. The demodulation module demodulates the received processed information and sends it to the channel decoding module. The channel decoding module needs to decode the information and send it to the information destination module
[0026] The engineering applications of the MSA series of algorithms are relatively extensive. This embodiment mainly involves the Normalized-MSA (NMSA) algorithm in the MSA series of algorithms, and introduces the basic process of NMSA with a partially parallel TDMP structure. Specifically, for the information decoding link, the embodiment of the present invention provides an optimization method for the low-density parity check code LDPC decoding algorithm running on the above-mentioned computer terminal. Figure 3 is a flow chart of an optimization method for a low-density parity-check code LDPC decoding algorithm according to an embodiment of the present invention, such as Figure 3 As shown, the process includes the following steps:
[0027] Step S302, in each decoding iteration, the check node information and variable node information of the LDPC check matrix are updated row by row; wherein the check node information is associated with the rows in the LDPC check matrix, and the variable node information is associated with the columns in the LDPC check matrix; the check nodes correspond to the check equations in the decoding process, and their number is the same as the number of rows in the LDPC check matrix; the number of variable nodes is the same as the number of columns in the LDPC check matrix.
[0028] Step S304: Obtain the difference between the minimum value and the second minimum value of the check node corresponding to each row of the LDPC check matrix according to the updated check node information and variable node information.
[0029] Step S306, based on the LDPC check matrix A verification process is performed on the decoding iteration process of the LDPC check matrix.
[0030] In the MSA series of algorithms, since there are fewer applications involving the relationship between the minimum value and the second minimum value associated when the check node is updated, and most algorithms reduce the storage scale of the check information by inferring the second minimum value from the minimum value or the second minimum value from the minimum value, there are no more in-depth applications for other relationships between the minimum value and the second minimum value, such as: the application of the difference relationship between the minimum value and the second minimum value; and through the analysis of data characteristics, it is found that there is a connection between the difference relationship between the minimum value and the second minimum value and whether the check iteration termination judgment can be made. Based on this connection, in this embodiment, it is proposed to apply the difference relationship between the minimum value and the second minimum value to the decoding processing link. The application results show that by introducing a limited computational cost, the benefits of reducing the iteration termination check processing by 30% to 90% can be obtained, which reduces the overall power consumption of the decoder by about 7% to 16%.
[0031] In step S306 of this embodiment, it includes: based on all the LDPC check matrix Get the mean of the difference between the minimum value and the second minimum value of the check node Determine the Is it greater than the preset threshold and in the If the value is greater than the preset threshold, verification processing is performed.
[0032] In an exemplary embodiment, in addition to synthesizing all the LDPC check matrix by means of the mean In addition, other methods with statistical characteristics can be used to comprehensively analyze all the values in the LDPC check matrix.
[0033] In step S302 of this embodiment, after updating the check node information and variable node information of the LDPC check matrix row by row, the method further includes: in each row of the LDPC check matrix, selecting the minimum value and the second minimum value of the check node from the updated check node information by a comparator, and storing the difference between the minimum value, the second minimum value and the minimum value The product of the index of the minimum value and the sign bits of all non-zero check nodes in the current row where the check node is located.
[0034] In this embodiment, when storing the verification information, only the minimum value, and The bit width is smaller than the bit width required to store the next smallest value, so a certain amount of verification information resources can be saved.
[0035] In step S302 of the present embodiment, the check node information and the variable node information of the LDPC check matrix are updated row by row, including: based on the correction factor, the variable node information in the previous iteration and the check node information in the previous iteration, the check node information of the LDPC check matrix in the current iteration is updated row by row; wherein the correction factor is a constant greater than 0 and less than 1, and in each row of the LDPC check matrix, the correction factor of the minimum value of the check node is less than or equal to the correction factor of the next smallest value.
[0036] In this embodiment, when the obtained minimum value and the second minimum value are normalized and corrected, different correction factors are used for the minimum value and the second minimum value, so that the decoding performance of the TDPM-NMSA algorithm can be further improved.
[0037] In step S302 of this embodiment, the check node information and variable node information of the LDPC check matrix are updated row by row, and it also includes: based on the variable node information in the previous iteration, the check node information in the previous iteration and the check node information updated in the current iteration, the variable node information of the LDPC check matrix in the current iteration is updated row by row.
[0038] In this embodiment, the TDMP structure is adopted, and the LDPC check matrix can be updated row by row in each decoding iteration, that is, after the check node information corresponding to the non-zero elements of a row of the LDPC check matrix is updated, the variable node information corresponding to all non-zero elements of the column corresponding to each non-zero element of the row will be updated immediately. Compared with the TPMP structure, which updates all the check node information of the LDPC check matrix and then updates the variable nodes, the TDMP structure adopted in this embodiment can speed up the decoding convergence, save the number of iterations, and improve the throughput.
[0039] In an exemplary embodiment, the verification process includes an iteration termination decision.
[0040] In an exemplary embodiment, the iteration termination determination includes one of the following: determining whether the current number of iterations has met the maximum number of iterations; making a hard decision on the updated variable node information, and determining whether the termination condition is met based on the hard decision result and the updated LDPC check matrix.
[0041] In this embodiment, based on the hard decision result and the updated LDPC check matrix, determining whether the termination condition is met is an iterative early termination mechanism. For example, if the hard decision result Between the updated LDPC check matrix H, If the termination condition is met, the iteration can be terminated without reaching the maximum number of iterations. This design can greatly improve the overall power consumption and latency performance of the decoder.
[0042] In step S304 of this embodiment, the difference between the minimum value and the second minimum value of the check node corresponding to each row of the LDPC check matrix is obtained. Including: obtaining the said
[0043] In this embodiment, the sampling and simple shift operation are used to obtain the approximate calculation Under the premise of not affecting the improvement effect, the increase in complexity is very small, which can avoid the introduction of Calculation results in higher power consumption.
[0044] In the embodiment of the present invention, only the decoding method of the present invention is explained by taking the decoding using TDPM-NMSA as an example, which is not intended to limit the present invention.
[0045] Other algorithms based on the MSA algorithm principle may also be applied in the present invention, such as MSA, OMSA, etc. For relevant specific examples, reference may be made to the examples described in the above embodiments, which will not be described in detail in this embodiment.
[0046] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory (ROM / RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0047] To facilitate the understanding of the technical solution provided by the present invention, a detailed description will be given below in conjunction with embodiments of specific scenarios.
[0048] In the update algorithm of the check information, the engineering application of the MSA series of algorithms is relatively extensive. The optimization method and device of the low-density parity check code LDPC decoding algorithm involved in the embodiment of the present invention is based on the Normalized-MSA (NMSA) in the series of algorithms, and at the same time, the TDMP structure is adopted. Specifically, in the iteration, after the check node information corresponding to the non-zero elements in each row of the H matrix (i.e., the LDPC check matrix, with a size of M rows and N columns) is updated, Then immediately update the posterior probability information corresponding to all non-zero elements in the corresponding column of each non-zero element in the row ( That is, the information transmitted from the variable node to the check node), and then decodes the next row in the matrix H. In this way, compared with the TPMP structure, the decoding convergence can be accelerated. The TDMP structure in this embodiment can save the number of iterations to improve the throughput. In the best case, it can save half the number of iterations. In this embodiment, the posterior probability information This is equivalent to the variable node in the above embodiment transmitting information to the check node.
[0049] In addition, in this embodiment, in order to reduce storage space during implementation, Not stored directly, but used by Calculated, where is the soft information (i.e., variable node information) output by the kth decoding iteration.
[0050] Figure 4 is a flowchart of a method for implementing each iterative decoding of TDMP-MSA according to an embodiment of the present invention, such as Figure 4 As shown, the method comprises the following steps:
[0051] Let the decoder input soft information sequence y n It means that the hard decision sequence of the soft information output by the kth decoding iteration is
[0052] Step S401, initialization (variable node information) and (check node information);
[0053]
[0054]
[0055] Step S402: Update the check node and variable node bit soft information, and store the updated minimum value of the check node, the difference between the minimum value and the next minimum value calculate The average value of And maintain:
[0056] The variable node information used in the current iteration uses the final result after the previous iteration is completed, that is, Where n=0:N-1.
[0057] Then the information of the check node unit is updated row by row along the column direction of the H matrix:
[0058]
[0059] The physical meaning of the above formula is to select the minimum and second minimum values of the current layer through the comparator, and the minimum and second minimum values of the posterior probability of the current row are named and Where n min It is the index value in the valid variable node set N(m) corresponding to the minimum value of the check node information of the current row.
[0060] Stores the calibration information in the following format: That is, the unit used to store the check node only needs to store the minimum value after the check node is updated in the current row, and the difference between the minimum value and the second minimum value. (i.e. Δ min ), the index of the minimum value, and the product of the sign bits of all valid nodes in the current row.
[0061] in, is the difference between the minimum value and the next minimum value of the current row in the kth iteration.
[0062] The H matrix contains M rows. When the H matrix is updated row by row, M groups of minimum values, The index of the minimum value and the product of the sign bits of all valid nodes in the current row; in the traditional TDMP-NMSA, the unit for checking node storage will store the product of M groups of minimum values, second minimum values, the index of the minimum value and the sign bits of all valid nodes in the current row; while the storage Compared with storing the second smallest value, generally 1 to 2 bits of storage width can be saved for each group, thus saving a certain amount of verification information resources.
[0063] In this embodiment, α is a correction factor for the minimum value and the second minimum value, which is used for normalization correction;
[0064] When the correction target is the minimum value, α = α1, that is, α1 is used to correct the minimum value;
[0065] When the correction target is the second minimum value, α=α2, that is, α2 is used to correct the second minimum value;
[0066] Among them, α1 and α2 are the correction factors of the minimum value and the second minimum value respectively, and the values are constants and configurable. The value range is (0,1), and α1≤α2.
[0067] Compared with the traditional TDMP-NMSA, which does not stipulate that the minimum and maximum values can be set to different correction factors, in this embodiment, different correction factors can be used for correction. In this way, the Euclidean distance between the minimum value and the second minimum value can be increased to a certain extent. When the parameters are selected appropriately, the convergence speed of the iteration can also be accelerated, further improving the decoding performance of TDPM-NMSA.
[0068] Since the normalization factor used in the NMSA of this embodiment adopts a configurable dual-factor form, the solution has more performance adjustability on the basis of only increasing the complexity of the interface, and better performance can be obtained under the premise of selecting a suitable normalization factor pairing.
[0069] After completing the update of the check node of a row, the variable node information corresponding to the updated check node information is updated according to Formula 5.
[0070]
[0071] After completing the update of all rows, write the variable node information used in the current iteration back to the storage unit used to store the variable node information:
[0072] The k in the above process represents the kth decoding iteration.
[0073] Step S403: output the current iteration and the soft information of the updated variable nodes
[0074] Step S404: determine whether the threshold is met, and if the threshold is met, transmit the soft information of the updated variable node. Go to step S405; otherwise, go to step S408.
[0075] For example, when the mean of the difference between the minimum and the second minimum Greater than the preset threshold for verification start, that is, When the check is started, the process proceeds to step S405. Δmin Can be configured or obtained through simulation.
[0076] In this embodiment, the preset threshold value Threshold is introduced by introducing the check start Δmin , which can reduce a considerable number of iteration termination check calculations. Specifically, according to the different signal-to-noise ratio environments of different LDPC codebooks or decoders, the iteration termination check processing operations can be reduced by 30% to 90%. The worse the channel environment, the more decoding iterations are required, and the greater the benefit. It is of great significance to reduce the power consumption of the iteration termination check processing module; at the same time, it has basically no effect on the average number of iterations and has no effect on the decoding performance.
[0077] In an exemplary embodiment, for the TDMP-NMSA algorithm, in the calculation process of updating the check node information, When the minimum value is obtained, only two values are actually involved, namely Therefore, we can calculate them in advance and save the variable node position IndexMin corresponding to the minimum value. In the process of obtaining, when the calculation reaches the variable node position corresponding to IndexMin, The process is directly assigned the next smallest value, and the remaining variable node positions are directly assigned the smallest value, which can simplify the related processing flow and reduce resource overhead.
[0078] Step S405: Update the soft information of the variable node Making a hard decision
[0079] Specifically, the output decoded soft information Hard decisions include:
[0080] Output decoding of the current iteration soft information sequence Make a hard decision:
[0081] Step S406, determining whether an iteration termination condition is satisfied, and if the iteration termination condition is satisfied, proceeding to step S407.
[0082] Specifically, judging whether the iteration termination condition is met includes: judging by matrix check whether the maximum number of iterations is reached;
[0083] In an exemplary embodiment, the matrix check determination includes: using The iteration termination is determined with the H matrix, for example. If satisfied, the entire decoding process ends and the decoding result is output; otherwise, jump to step S408 to continue iteration.
[0084] In an exemplary embodiment, a maximum number of iterations k is preset. max , if the current number of iterations has reached the maximum number of iterations k max , then the entire decoding process ends and the decoding result is output, otherwise jump to step S408 to continue iteration.
[0085] Step S407: The iteration is terminated and the hard decision result is output.
[0086] Step S408, returning the soft information of the updated variable node and performing the next iteration.
[0087] According to the analysis of data characteristics, it is found that there is a relationship between the amplitude difference between the minimum value and the second minimum value and whether the verification iteration termination judgment can be passed with a high probability. Therefore, based on this relationship, in step S406 of this embodiment, by introducing a limited computational cost, the benefits of reducing the iteration termination check processing by 30% to 90% are obtained, so that the overall power consumption of the decoder is reduced by about 7% to 16%.
[0088] The optimization method and device involved in the present invention can not only improve the power consumption hotspot problem of iterative termination check processing, but also further reduce the decoder storage overhead, and at the same time make the LDPC decoding process more universal and adjustable and configurable than the existing technology.
[0089] The following describes the optimization method and device of the embodiment of the present invention in a specific implementation scenario, taking the WIFI LDPC codebook specified in 802.11ax as an implementation object.
[0090] The WIFI LDPC codebook standardizes 12 codebooks according to different code lengths (for example: 648 / 1296 / 1944) and different code rates (for example: 1 / 2, 2 / 3, 3 / 4, 5 / 6). For the specific implementation description here, two different modulation methods are combined. The following takes the two static channel scenarios with typical characteristics, CR3 / 4+1944+256QAM and CR5 / 6+1944+1024QAM, as examples.
[0091] Based on the two selected configuration cases, the Threshold is selected through simulation. Δmin The value of can also be subdivided according to the bit rate; here the normalization factors α1 and α2 are equal to 0.875; the maximum number of iterations is 20 times, the check node information is quantized to 6 bits, Δ min Conservative quantization is 4 bits, where Δ min Equivalent to the above embodiment
[0092] For several operating points of key concern (BLER = 10 / 1 / 0.1%), when Threshold is roughly selected Δmin =3, the iterative termination check calculation processing is reduced by about 30% to 60%, and the effect can be further improved according to the detailed configuration design. The simulation results are shown in Table 1. The channel environment of the specific implementation is good. When the channel environment deteriorates and the BLER exceeds 50%, 16 to 19 times of check calculation processing can be saved.
[0093] Table 1
[0094]
[0095] From the perspective of decoding performance, in the simulation scenario of setting a static channel, it is completely consistent with the traditional solution, with no loss. From the perspective of the average number of decoding iterations, in the simulation scenario of setting a static channel, it is basically consistent with the traditional solution, with an increase of less than 0.5%. The simulation results are shown in Table 2.
[0096] Table 2
[0097]
[0098] Taking the check matrix of 1944 code length and 1 / 2 code rate as an example, the RAM overhead of storing check information in the traditional scheme is 972*(6+6+5+1)=17.496kb, and the RAM overhead of storing check information in the patent scheme is 972*(6+4+5+1)=15.552kb, which reduces the storage requirement by about 11%.
[0099] The relevant implementation benefits have been made clear through the above content, but the calculation of Δ min The mean value will introduce additional calculation and area overhead. In implementation, sampling and simple shift operations can be used for approximate calculation. The implementation method is as follows:
[0100] For WIFI standard LDPC coding, statistics The scenario with the largest amount of mean calculation is the scenario with bit rate 1 / 2 and coding block length 1944. When averaging, 972 Δ values are introduced to participate in the calculation min The cost of the entire mean calculation process will also be relatively large, and one row of decoding parallel processing units must complete the mean calculation of 81 elements.
[0101] First, the extraction method is used to reduce the amount of calculation in the processing process. At the same time, the extraction method and the mean value calculation method are designed to avoid the use of division. The specific design is as follows:
[0102] A fixed draw of 16 positions is performed from the reference set s in 81 rows, where s: {0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75}.
[0103] After the extraction is completed, the calculation unit completes 15 addition operations and a right shift of 4 bits; the results are temporarily stored for subsequent processing as partial mean values. When all rows in one iteration are processed, the temporarily stored mean values of the 12 rows are added, and the addition results are right shifted by 2 bits.
[0104] This process can greatly simplify The mean calculation process avoids all multiplication and division operations. After adopting the simplified method, the saving ratio of the verification process has no significant change, and the increase in the average number of iterations compared with the traditional solution is still controlled within 0.5%. The simulation results are shown in Table 3.
[0105] Table 3
[0106]
[0107] The optimization method in the embodiment of the present invention can also be applied to decoder implementation schemes of all communication systems that use LDPC codes as channel coding.
[0108] In the present embodiment, a kind of optimization device of low density parity check code LDPC decoding algorithm is also provided, and this device is used to realize the above-mentioned embodiment and preferred implementation mode, and what has been described is not repeated here.As used below, term "module" can realize the combination of software and / or hardware of predetermined function.Although the device described in the following embodiment is preferably realized with software, the realization of hardware, or the combination of software and hardware is also possible and conceived.
[0109] Figure 5 is a structural block diagram of an optimization device for a low-density parity-check code LDPC decoding algorithm according to an embodiment of the present invention, such as Figure 5 As shown, the device includes: an updating module 10 , an acquiring module 20 and a verifying module 30 .
[0110] An updating module 10, used for updating the check node information and variable node information of the LDPC check matrix row by row in each decoding iteration;
[0111] The acquisition module 20 is used to obtain the minimum value and the second minimum value difference of the check node corresponding to each row of the LDPC check matrix according to the updated check node information and variable node information.
[0112] The verification module 30 is used for A verification process is performed on the decoding iteration process of the LDPC check matrix.
[0113] Figure 6 is a structural block diagram of an optimization device for a low-density parity-check code LDPC decoding algorithm according to another embodiment of the present invention, such as Figure 6 As shown, the device includes Figure 5 In addition to all the modules shown, the verification module 30 also includes:
[0114] The acquisition unit 31 is used to obtain the LDPC matrix based on all Get the mean of the difference between the minimum value and the second minimum value of the check node
[0115] The determination unit 32 is used to determine the Is it greater than the preset threshold and in the If the value is greater than the preset threshold, verification processing is performed.
[0116] Figure 7 is a structural block diagram of an optimization device for a low-density parity-check code LDPC decoding algorithm according to yet another embodiment of the present invention, such as Figure 7 As shown, the device includes Figure 6 All modules shown, plus:
[0117] The storage module 40 is used to select the minimum value and the second minimum value of the check node from the updated check node information in each row of the LDPC check matrix through a comparator, and store the minimum value, the difference between the second minimum value and the minimum value, the index of the minimum value, and the product of the sign bits of all non-zero check nodes in the current row where the check node is located.
[0118] Figure 8 is a structural block diagram of an optimization device for a low-density parity-check code LDPC decoding algorithm according to another embodiment of the present invention, such as Figure 8 As shown, the device includes Figure 7 In addition to all modules shown, update module 10 includes:
[0119] The updating unit 11 is used to update the check node information of the LDPC check matrix in the current iteration row by row based on the correction factor, the variable node information in the previous iteration and the check node information in the previous iteration; wherein the correction factor is a constant greater than 0 and less than 1, and in each row of the LDPC check matrix, the correction factor of the minimum value of the check node is less than or equal to the correction factor of the next smallest value.
[0120] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0121] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0122] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0123] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0124] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0125] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0126] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0127] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A low-density parity-check code LDPC decoding method, It is characterized in that include: In each decoding iteration, the check node information and variable node information of the LDPC check matrix are updated row by row; According to the updated check node information and variable node information, the minimum value and the second minimum value difference of the check node corresponding to each row of the LDPC check matrix are obtained. Based on the LDPC check matrix A verification process is performed on the decoding iteration process of the LDPC check matrix.
2. The method according to claim 1, It is characterized in that Based on the LDPC check matrix Performing a check process on the decoding iteration process of the LDPC check matrix includes: Based on all the LDPC check matrix Get the mean of the difference between the minimum value and the second minimum value of the check node Determine the Is it greater than the preset threshold and in the If the value is greater than the preset threshold, verification processing is performed.
3. The method according to claim 1 or 2, It is characterized in that After updating the check node information and the variable node information of the LDPC check matrix row by row, the method further includes: In each row of the LDPC check matrix, a minimum value and a second minimum value of the check node are selected from the updated check node information by a comparator, and the minimum value and the difference between the minimum value and the second minimum value are stored. The product of the index of the minimum value and the sign bits of all non-zero check nodes in the current row where the check node is located.
4. The method according to any one of claims 1 to 3, It is characterized in that Update the check node information and variable node information of the LDPC check matrix row by row, including: Based on the correction factor, the variable node information in the previous iteration and the check node information in the previous iteration, the check node information of the LDPC check matrix in the current iteration is updated row by row; wherein the correction factor is a constant greater than 0 and less than 1, and in each row of the LDPC check matrix, the correction factor of the minimum value of the check node is less than or equal to the correction factor of the next smallest value.
5. The method according to claim 4, It is characterized in that Update the check node information and variable node information of the LDPC check matrix row by row, and also include: Based on the variable node information in the previous iteration, the check node information in the previous iteration, and the check node information updated in the current iteration, the variable node information of the LDPC check matrix in the current iteration is updated row by row.
6. The method according to claim 1, It is characterized in that in, The verification process includes an iteration termination decision.
7. The method according to claim 6, It is characterized in that in, The iteration termination determination includes one of the following: Determine whether the current number of iterations has met the maximum number of iterations; A hard decision is performed on the updated variable node information, and based on the hard decision result and the updated LDPC check matrix, it is determined whether a termination condition is met.
8. The method according to claim 1, It is characterized in that Get the difference between the minimum and the second minimum value of the check node corresponding to each row of the LDPC check matrix include: The above is obtained by sampling and shifting operations.
9. A low-density parity check code LDPC decoding device, It is characterized in that include: An update module, used for updating the check node information and variable node information of the LDPC check matrix row by row in each decoding iteration; The acquisition module is used to obtain the minimum value and the second minimum value difference of the check node corresponding to each row of the LDPC check matrix according to the updated check node information and variable node information. A check module is used for checking the LDPC matrix based on the A verification process is performed on the decoding iteration process of the LDPC check matrix.
10. The device according to claim 9, It is characterized in that Verification module, including: An acquisition unit is used for obtaining the LDPC matrix based on all Get the mean of the difference between the minimum value and the second minimum value of the check node A determination unit, configured to determine the Is it greater than the preset threshold and in the If the value is greater than the preset threshold, verification processing is performed.
11. The device according to claim 9, It is characterized in that Also includes: A storage module is used to select the minimum value and the second minimum value of the check node from the updated check node information in each row of the LDPC check matrix through a comparator, and store the minimum value, the difference between the second minimum value and the minimum value, the index of the minimum value, and the product of the sign bits of all non-zero check nodes in the current row where the check node is located.
12. The device according to claim 10, It is characterized in that Update modules, including: An updating unit is used to update the check node information of the LDPC check matrix in the current iteration row by row based on the correction factor, the variable node information in the previous iteration and the check node information in the previous iteration; wherein the correction factor is a constant greater than 0 and less than 1, and in each row of the LDPC check matrix, the correction factor of the minimum value of the check node is less than or equal to the correction factor of the next smallest value.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 8 when executed by a processor.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 1 to 8 are implemented.
