Method and apparatus for updating check information, electronic device, storage medium and product
The method of updating the verification information by correction, combined with the likelihood ratio and correction term, solves the problem of inaccurate calculation results in the hardware implementation of the NMS algorithm, realizes more accurate verification information calculation and reduces computational complexity, and facilitates hardware circuit implementation.
Patent Information
- Application Number
- CN202611399767.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-09-10
AI Technical Summary
While the existing Normalized Minimum Sum (NMS) algorithm is easy to implement in hardware, the calculation results are not accurate enough and cannot simultaneously meet the requirements of hardware implementation and accuracy of calculation results.
By correcting the initial true minimum, minimum correction term, and second minimum correction term based on the likelihood ratio, and combining simple comparisons and logical operations, the corrected verification information is obtained, which is used to calculate the information passed from the verification node to the variable node.
It enables more accurate calculation of verification information in hardware, reduces computational complexity from O(n²) to O(n), and facilitates hardware circuit implementation.
Smart Images

Figure CN122908772B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of encoding and decoding technology, and in particular to methods, apparatus, electronic devices, storage media, and products for updating verification information. Background Technology
[0002] In the field of code encoding and decoding, the Belief Propagation (BP) algorithm is generally used to calculate the information passed from the verification node to the variable node. However, the BP algorithm is not convenient for hardware implementation. Therefore, a simplification of the BP algorithm is made to obtain the Normalized Min Sum (NMS) algorithm, which is used for calculation. Although the NMS algorithm is easy to implement in hardware, the calculation results are inaccurate. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, storage medium, and program product for updating verification information to solve the problem in related technologies that it is impossible to simultaneously achieve both easy hardware implementation and accurate calculation results.
[0004] This application provides a method for updating verification information, including: For each likelihood ratio obtained, the current initial corrected minimum, initial corrected second minimum, and initial true minimum are obtained, where the likelihood ratio is the information passed from the variable node to the verification node; Update the initial true minimum value based on the likelihood ratio; Determine the minimum correction term based on the likelihood ratio and the initial corrected minimum value; The initial corrected minimum value is updated based on the minimum correction term and the likelihood ratio; The second minimum value correction term is determined based on the likelihood ratio, the initial corrected second minimum value, and the initial true minimum value. The initial corrected second minimum value is updated based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term. After completing the update operations of multiple variable nodes connected to the verification node, the first information is obtained, which includes the minimum value correction item, the first corrected second minimum value, and the first true minimum value. The first piece of information is defined as global information, which includes a global minimum correction term, a global corrected second minimum value, and a global true minimum value. The global information is used to calculate the information passed to any variable node connected to the verification node.
[0005] This application also provides a device for updating verification information, including: The acquisition module is used to acquire the current initial corrected minimum value, the initial corrected second minimum value, and the initial true minimum value for each likelihood ratio acquired. The likelihood ratio is the information passed from the variable node to the verification node. The update module is used to update the initial true minimum value based on the likelihood ratio; determine the minimum value correction term based on the likelihood ratio and the initial corrected minimum value; update the initial corrected minimum value based on the minimum value correction term and the likelihood ratio; determine the second minimum value correction term based on the likelihood ratio, the initial corrected second minimum value, and the initial true minimum value; and update the initial corrected second minimum value based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term. The acquisition module is also used to acquire first information after completing the update operation of multiple variable nodes connected to the verification node. The first information includes the minimum value correction item, the first corrected second minimum value, and the first true minimum value. The determination module is used to determine the first information as global information, wherein the global information includes a global minimum correction term, a global corrected second minimum value, and a global true minimum value, and the global information is used to calculate the information passed to any variable node connected to the verification node.
[0006] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for implementing the steps of any of the above-described methods for updating verification information when executing the computer program.
[0007] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described methods for updating verification information.
[0008] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described methods for updating verification information.
[0009] This application first obtains a likelihood ratio and updates the initial true minimum value based on that ratio. Then, based on the likelihood ratio and the initial corrected minimum value, a minimum value correction term is determined, and the initial corrected minimum value is updated using the minimum value correction term and the likelihood ratio. Similarly, a second minimum value correction term can be determined based on the likelihood ratio, the initial corrected second minimum value, and the initial true minimum value, and the initial corrected second minimum value is updated based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term. Thus, after completing the update operations for multiple variable nodes connected to the verification node, first information can be obtained, which includes the minimum value correction term, the first corrected second minimum value, and the first true minimum value. Finally, the first information can be defined as global information to calculate the information passed to any variable node connected to the verification node. Calculating the corrected verification information in the above manner, and then using the corrected verification information to calculate the information passed from the verification node to the variable node, is more accurate. Furthermore, in determining the correction term, only simple comparisons and logical operations are required, without the need to perform complex operations such as tanh and its inverse operation in the BP algorithm, which facilitates the implementation of hardware circuits. Attached Figure Description
[0010] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A flowchart illustrating a method for updating verification information provided in an embodiment of this application; Figure 2 A schematic diagram illustrating the decoding performance comparison provided in this application embodiment; Figure 3 This application provides a schematic diagram of the architecture of a correction term calculation system. Figure 4 This is a flowchart illustrating a verification information updating device provided in an embodiment of this application. Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0013] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0014] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0015] Data in storage media may become corrupted due to aging or failure. Encoding the data before writing it and then decoding it upon reading can correct any errors. Low-Density Parity-Check (LDPC) codes have excellent error correction capabilities and have been widely used in data storage in recent years.
[0016] In LDPC, variable nodes and check nodes need to be defined. One check node corresponds to one check equation, which is also a row in the check matrix. One variable node corresponds to one codeword bit in the LDPC code. For example, the check matrix is shown below: H = [1 1 1 0] [1 0 1 1] In this matrix, the first row corresponds to check node C1, the second row to check node C2, the first column to variable node V1, the second column to variable node V2, the third column to variable node V3, and the fourth column to variable node V4. For each check node, the variable node corresponding to the non-zero element in the corresponding row is the variable node connected to it. For example, the variable nodes connected to C1 are V1, V2, and V3, and the variable nodes connected to C2 are V1, V3, and V4. Therefore, a check node can connect to multiple variable nodes, and a variable node can also connect to multiple check nodes. Assuming an LDPC has 1000 variable nodes and 500 check nodes, then the LDPC codeword has 1000 bits, and these bits correspond to 500 check equations.
[0017] The LDPC decoding iteration process can be carried out in the following manner: First, for each variable node, its information is initialized based on the received signal and passed to each verification node. Then, for each verification node, the information passed by the variable nodes connected to it is calculated to obtain the verification node's information. Further, based on the verification node's information and the information of its connected variable nodes, the information passed by the verification node to the variable node is obtained. The variable node's information can be updated based on the information passed by the verification nodes. Since the variable node's information has been updated, a decision can be made. If the verification equation passes after the variable node's decision, the decoding passes; otherwise, iterative calculation continues until the decoding passes or the maximum number of iterations is reached.
[0018] This application improves the way the information is passed from the verification node to the variable node.
[0019] For ease of subsequent description, this application makes the following definitions: Lq(ij): Represents the information passed from the i-th variable node to the j-th verification node; Lr(ji): Represents the information passed from the j-th verification node to the i-th variable node; Lq: likelihood ratio.
[0020] In the process of calculating the information passed from the verification node to the variable node, the belief propagation (BP) algorithm is usually used. Accordingly, Lr(ji) can be calculated as follows: (1) In the calculation of the information passed from the j-th verification node to the i-th variable node, the subscript of the multiplication symbol means that the information of the i-th variable node is not used, and only all other variable nodes connected to the j-th verification node after excluding the i-th variable node are used for calculation. For example, if the current verification node is C1, when calculating the information passed to the variable node V1, Lq(12) and Lq(13) are substituted into formula (1), and Lq(11) does not need to be substituted.
[0021] As can be seen, the BP algorithm involves tanh and its inverse operation, making hardware implementation complex. Furthermore, the computational complexity is relatively high. Specifically, when calculating the information passed from the j-th check node to all variable nodes connected to it, if the j-th check node is connected to d variable nodes, for any one of the connected variable nodes, d-1 tanh multiplication operations are required, and for the d variable nodes, d×(d-1) multiplication operations are required.
[0022] Since multiplication satisfies the commutative and associative laws, it can be simplified. That is, for the j-th check node, we can first calculate the values of all variable nodes connected to it. The product is then multiplied to obtain the total product. When calculating the information passed to the i-th variable node, the total product is divided by the tanh value of the i-th variable node. However, since division is involved, hardware implementation remains quite difficult.
[0023] In the backpropagation (BP) algorithm, the minimum value has the greatest impact on the calculation result. Based on this, the BP algorithm is simplified to obtain the Normalized Min Sum (NMS) algorithm, which is beneficial for hardware implementation. Accordingly, Lq(ij) in the NMS algorithm can be expressed as follows: (2) Here, sgn() is the sign function, which takes the value of 1 when the value is greater than 0 and -1 when the value is less than 0. α is the normalization factor, which can be obtained by testing matrices of different sizes.
[0024] Under this scheme, for the j-th check node, it is only necessary to first XOR the signs of the Lq of all variable nodes connected to the check node to obtain the total sign. Similarly, it is only necessary to compare the Lq of all variable nodes connected to the j-th check node to determine the minimum and second smallest values. Then, when calculating the information passed from the j-th check node to the i-th variable node, the total sign and the sign of the Lq of the i-th variable node are XORed to obtain the current sign. If the Lq of the i-th variable node is the minimum value, then according to the above formula (2), the product of the normalization factor, the current sign, and the second smallest value is determined as the information passed from the j-th check node to the i-th variable node. If the Lq of the i-th variable node is not the minimum value, then according to the above formula (2), the product of the normalization factor, the current sign, and the minimum value is determined as the information passed from the j-th check node to the i-th variable node. It can be seen that the NMS algorithm does not need to perform tanh, tanh -1 The computation is easily implemented in hardware.
[0025] Although the aforementioned NMS algorithm is easy to implement in hardware, its calculation results are not accurate enough compared to the BP algorithm. Therefore, in order to address this technical problem, this application proposes a correction method that is both easy to implement in hardware and ensures the accuracy of the calculation results. The construction process of the correction model of this application is described below.
[0026] In the BP algorithm, calculating Lr involves three steps: tanh, multiplication, and tanh. -1 In this application, the BP algorithm described above is simplified to obtain the Box_plus function, which can be expressed as follows: (3) Where a is the first input data and b is the second input data.
[0027] Furthermore, using formula (3), for the j-th verification node, the latest B(a, b) can be calculated using formula (3) for each Lq obtained from a variable node connected to it. For example, if the j-th verification node receives 4 Lqs, the calculation method is as follows: .
[0028] The above B(a, b) is the precise expression of the BP algorithm. Therefore, for any two input data, after subtracting formula (2) and formula (3), the correction term function can be obtained as follows: (4) This application can correct the calculation results of the NMS algorithm based on the correction term function to obtain accurate information passed from the check node to the variable node.
[0029] The characteristic of the aforementioned correction function is that when the absolute values of a and b are close, the value of s(a, b) is relatively significant; when the absolute values of a and b differ significantly, the value of s(a, b) is almost zero. Based on this characteristic, the aforementioned formula (4) can be converted into a pure combinational logic correction model. That is, under different combinations of input data of the correction function, the output value of the correction function has a finite range of values. Furthermore, only conditional judgment needs to be performed in the hardware circuit.
[0030] For ease of subsequent description, this application makes the following definitions: min_deltaq: The true minimum value; s_min: Minimum value correction term; min_box: Corrects the minimum value; sub_box: Corrects the second smallest value; s_sub_m: Second smallest value conversion correction term; s_sub_q: The second smallest value is accompanied by a correction term.
[0031] Based on the above principles, embodiments of this application provide a method for updating verification information, which can be executed by a decoding circuit, such as... Figure 1 As shown, the specific processing steps of the verification information update method may include: Step S101: For each likelihood ratio obtained, obtain the current initial corrected minimum value, the initial corrected second minimum value, and the initial true minimum value.
[0032] Here, the likelihood ratio is the information passed from the variable node to the verification node, which is Lq mentioned above.
[0033] Specifically, under the NMS algorithm, when determining the information that the verification node passes to each variable node connected to it, the minimum and second smallest values are ultimately needed. Furthermore, referring to the aforementioned formula (4), similar to the principle of formula (3), when a new variable node passes information, the correction term needs to be updated according to the correction model. Consequently, the minimum and second smallest values also need to be updated.
[0034] Therefore, for each received likelihood ratio, this scheme can first obtain the latest initial corrected minimum value, the second smallest initial corrected value, and the initial true minimum value. For example, the decoding circuit can be configured with a first register, a second register, and a third register. The first register is used to store the corrected minimum value, the second register is used to store the second smallest corrected value, and the third register is used to store the true minimum value. Accordingly, for each received likelihood ratio, the latest initial corrected minimum value, the second smallest initial corrected value, and the initial true minimum value can be read from these three registers respectively.
[0035] Step S102: Update the initial true minimum value based on the likelihood ratio.
[0036] Specifically, since the current true minimum may change with each incoming likelihood ratio, the current initial true minimum can be updated with each likelihood ratio transmitted by a variable node.
[0037] Step S103: Determine the minimum value correction term based on the likelihood ratio and the initial correction minimum value.
[0038] Specifically, since the current initial corrected minimum value is the accurate calculation result of the minimum value, and the likelihood ratio is new data, the aforementioned correction model can be used to determine the minimum value correction term based on the likelihood ratio and the initial corrected minimum value when calculating the minimum value correction term. The aforementioned decoding circuit may also include a fourth register, which is used to store and update the minimum value correction term.
[0039] Step S104: Update the initial corrected minimum value based on the minimum value correction term and the likelihood ratio.
[0040] Specifically, the minimum correction term is used to correct the current minimum value. Since the current minimum value may change with each new likelihood ratio, the current minimum value can be determined based on the likelihood ratio and the initial corrected minimum value. The minimum value correction term is then used to update the current minimum value, resulting in the latest corrected minimum value. When a new likelihood ratio arrives next time, the updated corrected minimum value can be used to calculate the latest minimum value correction term.
[0041] Step S105: Determine the second minimum value correction term based on the likelihood ratio, the initial corrected second minimum value, and the initial true minimum value.
[0042] Specifically, with each likelihood ratio, the second smallest value may also change. For example, the second smallest value may become the likelihood ratio, the initial true minimum, etc., and the second smallest value also needs to be corrected. Therefore, the correction model mentioned above can be used to determine the second smallest value correction term based on the current initial corrected second smallest value, the initial true minimum value that may become the second smallest value, and the likelihood ratio.
[0043] Step S106: Update the initial corrected second minimum value based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term.
[0044] Specifically, if the likelihood ratio becomes the new minimum, the original minimum becomes the second smallest. If the likelihood ratio only becomes the new second smallest, the original second smallest is eliminated. If the likelihood ratio is greater than the second smallest, it does not affect the current second smallest, but it still needs to be merged with the current second smallest. Therefore, the second smallest to be corrected can be determined from the likelihood ratio, the initial true minimum, and the initial value correction second smallest. Then, the second smallest correction term is used to correct the second smallest to be corrected, resulting in the latest corrected second smallest.
[0045] Step S107: After completing the update operation of multiple variable nodes connected to the verification node, the first information is obtained.
[0046] The first information may include the first minimum value correction term, the first corrected second minimum value, the first true minimum value, etc.
[0047] Specifically, it can be determined whether the number of currently received likelihood ratios has reached a preset value. The preset value is used to indicate that the update operation of the current decoding round is complete. If so, the first minimum value correction term can be read from the fourth register, the first corrected second minimum value can be read from the second register, and the first true minimum value can be read from the third register.
[0048] Step S108: The first information is determined as global information.
[0049] The global information may include the global minimum correction term, the global corrected second minimum value, the global true minimum value, etc., and the global information is used to calculate the information passed to any variable node connected to the verification node.
[0050] Specifically, if the above process is a single-line operation, meaning the preset value is the number of all variable nodes connected to the verification node, then the first information can be directly determined as the global information. That is, the first minimum value correction term can be determined as the global minimum value correction term, the first second-smallest corrected value can be determined as the global second-smallest corrected value, and the first true minimum value can be determined as the global true minimum value. Furthermore, this global information and the aforementioned NMS algorithm can be used to calculate the information passed to each variable node.
[0051] The verification information update method of this application's embodiments firstly updates the initial true minimum value based on each obtained likelihood ratio. Then, based on the likelihood ratio and the initial corrected minimum value, a minimum value correction term is determined, and subsequently, the initial corrected minimum value is updated using the minimum value correction term and the likelihood ratio. Similarly, a second minimum value correction term can be determined based on the likelihood ratio, the initial corrected second minimum value, and the initial true minimum value, and the initial corrected second minimum value is updated based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term. Thus, after completing the update operations of multiple variable nodes connected to the verification node, first information can be obtained, which includes the minimum value correction term, the first corrected second minimum value, and the first true minimum value. Finally, the first information can be defined as global information to calculate the information passed to any variable node connected to the verification node. Calculating the corrected verification information in the above manner, and then using the corrected verification information to calculate the information passed from the verification node to the variable node, is more accurate. Furthermore, in determining the correction term, only simple comparisons and logical operations are required, without the need to perform complex operations such as the aforementioned tanh and its inverse operation, which facilitates the implementation of hardware circuits.
[0052] The aforementioned correction function has the problem of not satisfying the associativity, meaning it cannot simplify the calculation by adjusting the order of operations. Assuming that the correction function is used to calculate the information for each variable node connected to the check node, the computational load is extremely high. For example, for any variable node connected to it, d-1 operations are required; for d variable nodes, d×(d-1) operations are needed. In LDPC decoding, the least reliable bits, i.e., the smallest |Lq|, have the greatest impact on the decoding result. Therefore, using the aforementioned update scheme, if there are d variable nodes, d likelihood ratios will be received. This means that whether it's the minimum or the second smallest value, only d corrections are needed, significantly reducing the number of operations and lowering the complexity from O(n^2) to O(n^2). 2 Reducing the complexity to O(n) can save resources.
[0053] In some alternative implementations, step S102 described above may include: Compare the likelihood ratio with the initial true minimum. If the likelihood ratio is less than the initial true minimum, update the initial true minimum to the likelihood ratio. If the likelihood ratio is not less than the initial true minimum, keep the initial true minimum.
[0054] Specifically, the decoding circuit can be equipped with a comparator. Correspondingly, the likelihood ratio and the initial true minimum value can be input into the comparator for comparison. The comparator determines the smaller value. Specifically, when it is determined that the likelihood ratio is less than the initial true minimum value, the initial true minimum value can be updated to the likelihood ratio; for example, the initial true minimum value in the third register can be replaced with the likelihood ratio. When it is determined that the likelihood ratio is not less than the initial true minimum value, the initial true minimum value is maintained, i.e., the third register is not updated. The above update process can be represented as min_deltaq <= Lq. <min_deltaq?Lq:min_deltaq。
[0055] In some alternative implementations, step S103 described above may include: The likelihood ratio and the initial correction minimum are input into the pre-built correction term calculation system to obtain the minimum correction term output by the correction term calculation system.
[0056] The correction term calculation system can be a hardware circuit built based on the aforementioned correction model, that is, a component of the decoding circuit.
[0057] Specifically, the likelihood ratio and the initial corrected minimum value can be input into the correction term calculation system. The correction term calculation system calculates the minimum value correction term based on the correction model and outputs the minimum value correction term. For example, the minimum value correction term can be expressed as s_min=s_corr(min_box, Lq), where s_corr() is the aforementioned correction term function.
[0058] In some alternative implementations, step S104 described above may include: If the likelihood ratio is determined to be less than the initial corrected minimum, calculate the first sum between the minimum correction term and the likelihood ratio, and update the initial corrected minimum to the first sum. If the likelihood ratio is determined to be not less than the initial corrected minimum, calculate the second sum between the minimum correction term and the initial corrected minimum, and update the initial corrected minimum to the second sum.
[0059] Specifically, if the likelihood ratio is determined to be less than the initial correction minimum, it indicates that the likelihood ratio is at its minimum. In this case, the current minimum correction term can be used to make corrections based on the likelihood ratio. That is, the first sum between the minimum correction term and the likelihood ratio is calculated, and the initial correction minimum is updated to the first sum to obtain the latest correction minimum. For example, the initial correction minimum in the first register can be replaced with the first sum.
[0060] If the likelihood ratio is determined to be no less than the initial corrected minimum value, it means that the initial corrected minimum value is still the minimum value. In this case, the current minimum correction term can be used to make corrections based on the current initial corrected minimum value. That is, the second sum between the minimum correction term and the initial corrected minimum value is calculated, and the initial corrected minimum value is updated with the second sum value to obtain the latest corrected minimum value. For example, the initial corrected minimum value in the first register can be replaced with the second sum value.
[0061] For example, if the likelihood ratio is determined to be less than the initial corrected minimum, the updated corrected minimum can be expressed as Lq+s_min; if the likelihood ratio is determined to be not less than the initial corrected minimum, the updated corrected minimum can be expressed as min_box+s_min.
[0062] The above update process can be represented as: min_box<=Lq <min_box?Lq+s_min:min_box+s_min In some alternative implementations, step S105 described above may include: Based on the initial true minimum value and the initial corrected second minimum value, determine the second minimum value transformation correction term.
[0063] Alternatively, the accompanying correction term for the second smallest value can be determined based on the initial correction and the likelihood ratio.
[0064] Specifically, referring to the aforementioned formula (4), the essence of the correction term is to identify which two values are being merged. If the new likelihood ratio becomes the minimum, then the initial true minimum becomes the new second minimum. At this time, the new second minimum can be merged with the original second minimum, that is, the initial true minimum and the initial corrected second minimum can be merged to obtain the second minimum transformation correction term. For example, the initial true minimum and the initial corrected second minimum can be input into a pre-built correction term calculation system to obtain the second minimum transformation correction term output by the correction term calculation system. The second minimum transformation correction term can be expressed as s_sub_m=s_corr(min_deltaq, sub_box).
[0065] If the newly arrived likelihood ratio cannot become the minimum, it is fused with the original second-smallest value. This means merging the current initial corrected second-smallest value and the likelihood ratio to obtain the second-smallest value's accompanying correction term. For example, the initial corrected second-smallest value and the likelihood ratio are input into a pre-built correction term calculation system to obtain the second-smallest value's accompanying correction term output by the system. The second-smallest value's accompanying correction term can be represented as s_sub_q = s_corr(sub_box, Lq).
[0066] In some alternative implementations, step S106 described above may include: Step 1: If the likelihood ratio is less than the initial true minimum, calculate the third sum between the initial true minimum and the second smallest value transformation correction term, and update the initial corrected second smallest value to the third sum.
[0067] Step 2: If the likelihood ratio is not less than the initial true minimum, determine whether the likelihood ratio is less than the initial corrected second minimum.
[0068] Step 3: If the likelihood ratio is determined to be less than the initial corrected second minimum value, calculate the fourth sum between the likelihood ratio and the second minimum value, and update the initial corrected second minimum value to the fourth sum.
[0069] Step 4: If the likelihood ratio is determined to be no less than the initial corrected second minimum value, calculate the fifth sum between the initial corrected second minimum value and the second minimum value's accompanying correction term, and update the initial corrected second minimum value to the fifth sum value.
[0070] Specifically, if the new likelihood ratio is less than the current initial true minimum, it means that the likelihood ratio has become the latest true minimum and the initial true minimum has become the latest second smallest. In this case, the corresponding second smallest value transformation correction term can be directly used to correct the initial true minimum to obtain the third sum, and the third sum is determined as the latest corrected second smallest value.
[0071] If the new likelihood ratio is not less than the initial true minimum, then the likelihood ratio can be further compared with the initial corrected second minimum to determine whether the likelihood ratio can become the new second minimum.
[0072] Accordingly, if the likelihood ratio is determined to be less than the initial corrected second minimum value, it means that the likelihood ratio can become the new second minimum value. In this case, the second minimum value can be used to correct the likelihood ratio. That is, the fourth sum between the likelihood ratio and the second minimum value can be calculated, and the fourth sum is determined as the latest corrected second minimum value.
[0073] If the likelihood ratio is determined to be no less than the initial corrected second minimum value, then the second minimum value does not need to be updated. Therefore, the second minimum value can be directly used to correct the initial corrected second minimum value. That is, the fifth sum between the initial corrected second minimum value and the second minimum value is calculated, and the fifth sum is determined as the latest corrected second minimum value.
[0074] The above update process can be represented as: sub_box<=Lq <min_deltaq?min_deltaq+s_sub_m: Lq <sub_box?Lq+s_sub_q:sub_box+s_sub_q In some alternative implementations, the above-described correction calculation system can employ the following calculation method: Step 1: Quantize the first input data and the second input data input to the correction term calculation system to obtain the first quantized data corresponding to the first input data and the second quantized data corresponding to the second input data.
[0075] Step 2: Calculate the sixth sum and absolute value of the difference between the first quantized data and the second quantized data, respectively.
[0076] Step 3: If the absolute value of the difference is less than the first preset value and the absolute value of the difference of the sixth sum is less than a preset multiple, then the first correction term is determined as the target correction term.
[0077] The first correction term can be used to instruct the execution of a correction operation.
[0078] Step four: If the absolute value of the difference is not less than the first preset value, or the absolute value of the difference of the sixth sum is not less than a preset multiple, then the second correction term is determined as the target correction term.
[0079] The second correction term can be used to indicate that no correction operation should be performed.
[0080] Step 5: Determine the target correction term as the output data of the correction term calculation system.
[0081] Specifically, since the combination conditions are related to the number of decimal places in the data (different numbers correspond to different combination conditions), and the presence of decimal places in the data is inconvenient for hardware implementation, the first and second input data can be quantized separately to make the input data have no decimal places, thus obtaining the first and second quantized data. For example, when the bit quantization has 1 decimal place, the quantization process includes: multiplying the input data by 2 and then rounding it.
[0082] Based on the same consideration, this scheme sets the condition that the absolute values of A and B are close as follows: Where A is the first quantized data, B is the second quantized data, and 4 is the aforementioned first preset value. Furthermore, for more stringent considerations, this scheme also sets (A+B)<2abs(AB), where 2 is the aforementioned preset multiple. That is, correction is only performed when these two conditions are met; the first correction term is -1, corresponding to an actual unquantized value of 0.5. If these two conditions are not met, no correction is performed, and the second correction term is 0.
[0083] From the above calculation process, in the calculation of the correction term, for the first calculation path, the first-layer adder calculates AB, and the second-layer adder takes the absolute value of the value output by the first adder. In the parallel second path, the first-layer adder calculates A+B. That is to say, the longest path requires 2 adders. Specifically, when the hardware circuit calculates the absolute value, it first performs a two's complement operation. Two's complement is obtained by first determining the sign bit, then XORing the sign bit with 1, and finally adding the sign bit. In other words, only one layer of adders is needed when calculating the absolute value. Other comparison circuits and logic gates have faster operation speeds and will not be discussed here.
[0084] Referring to the two conditions mentioned above, this scheme can first calculate the sixth sum and the absolute value of the difference between the first quantized data and the second quantized data. If the absolute value of the difference is less than the first preset value and the absolute value of the difference between the sixth sum and the sixth sum is less than a preset multiple, the first correction term can be determined as the target correction term. If the absolute value of the difference is not less than the first preset value, or the absolute value of the difference between the sixth sum and the sixth sum is not less than a preset multiple, the second correction term can be determined as the target correction term. Furthermore, the target correction term can be determined as the output data of the correction term calculation system. For example, the output data can be the aforementioned minimum value correction term, second minimum value transformation correction term, second minimum value accompanying correction term, etc.
[0085] In this way, when calculating the correction term, the hardware circuit only needs to set a small number of adders, logic gates, comparators, etc., which is convenient for hardware implementation.
[0086] In some alternative implementations, when the bit quantization fractional part is 1 bit, the above combination conditions can be modified to further reduce the number of adders, making the hardware circuitry simpler. Accordingly, the correction term calculation system can adopt the following calculation method: Step 1: Quantize the first input data and the second input data input to the correction term calculation system to obtain the first quantized data corresponding to the first input data and the second quantized data corresponding to the second input data.
[0087] Step 2: Calculate the seventh sum between the first quantized data and the first preset value.
[0088] Step 3: Calculate the eighth sum between the second quantized data and the second preset value.
[0089] Step four: If the first quantified data and the second quantified data meet the target conditions, the first correction term is determined as the target correction term.
[0090] The target conditions are that the second quantized data is less than the seventh sum, the first quantized data is less than the eighth sum, and neither the first quantized data nor the second quantized data is equal to any value in the target configuration information, which includes the specified values that do not require correction.
[0091] Step 5: When it is determined that the first quantized data and the second quantized data do not meet the target conditions, determine the second correction term as the target correction term.
[0092] Step 6: Determine the target correction term as the output data of the correction term calculation system.
[0093] Specifically, reference can be made to the aforementioned descriptions for Step 1 and Step 6, which will not be repeated here.
[0094] To simplify the hardware circuit, the calculation of absolute values can be split into multiple conditions to obtain the target conditions. For example, the aforementioned abs(A-B)<4 can be split into B<A+4 and A<B+4, and the aforementioned (A+B)<2abs(A-B) can be split into (!(B==0||A==0) && !((B==3)||(B==4)&&A==1) && !((A==3)||(A==4)&&B==1)), where 0, 3, 4, 1, etc. are the specified values.
[0095] Under the setting of these conditions, the seventh sum between the first quantized data and the first preset value, the eighth sum between the second quantized data and the second preset value, etc., can be calculated first. Furthermore, based on the calculated seventh sum and eighth sum, as well as the corresponding values of the first quantized data and the second quantized data, when the first quantized data and the second quantized data meet the target conditions, the first correction term is determined as the target correction term. When they do not meet the target conditions, the second correction term is determined as the target correction term. Finally, the target correction term can be determined as the output data of the correction term calculation system. For example, the output data may be the aforementioned minimum value correction term, second minimum value conversion correction term, second minimum value accompanying correction term, etc.
[0096] In this way, adders only need to be set when calculating A+4 and B+4, meaning the number of adder layers on the two parallel paths is at most 1. There is no need to calculate the absolute value after calculating the sum, which simplifies the implementation of the hardware circuit.
[0097] In some optional implementations, for each check node, the connected variable nodes can be calculated in parallel, for example, in parallel by odd and even columns. Correspondingly, after the information update operation for each group of variable nodes is completed, the information from multiple groups can be merged, which may include: Step 1: Obtain the second information.
[0098] The second information includes the second corrected minimum value, the second true minimum value, and the second corrected second minimum value. The second information is obtained after completing the update operation of multiple variable nodes of the second group connected to the verification node.
[0099] Step 2: Determine the global minimum value correction term based on the first and second corrected minimum values.
[0100] Step 3: Determine the global true minimum based on the first true minimum and the second true minimum.
[0101] Step 4: Determine the global corrected second minimum value based on the first true minimum value, the second true minimum value, the first corrected second minimum value, and the second corrected second minimum value.
[0102] Specifically, in parallel processing, the preset value is the number of variable nodes in the first group connected to the verification node. After obtaining the second information, the first and second information can be merged to obtain global information. For each item in the second information, it can be used as a new likelihood ratio, and updated with the corresponding item in the current first information using the aforementioned steps S101 to S106 to obtain global information.
[0103] Specifically, in step two, the first and second corrected minimum values can be input into the pre-built correction term calculation system to obtain the global minimum correction term output by the system. For example, the global minimum correction term can be represented as: s_min_oe=s_corr(min_box_o,min_box_e) Wherein, min_box_o is the first corrected minimum value, and min_box_e is the second corrected minimum value.
[0104] Alternatively, if the first corrected minimum value is determined to be less than the second corrected minimum value, the global corrected minimum value can be determined based on the first corrected minimum value and the global minimum value correction term. If the first corrected minimum value is determined to be not less than the second corrected minimum value, the global corrected minimum value can be determined based on the second corrected minimum value and the global minimum value correction term.
[0105] In step three, the second corrected minimum value can be used as the new likelihood ratio. Then, similar to step S102 above, the current first true minimum value can be updated based on the second corrected minimum value. Specifically, if it is determined that the first true minimum value is less than the second corrected minimum value, the first true minimum value can be determined as the global true minimum value. If it is determined that the first true minimum value is not less than the second corrected minimum value, the second corrected minimum value can be determined as the global true minimum value. Finally, the value in the third register can be updated to the global true minimum value.
[0106] For example, it can be represented as: min_deltaq_oe <= min_deltaq_o <min_box_e?min_deltaq_o:min_box_e Wherein, min_deltaq_oe is the global true minimum, min_deltaq_o is the first true minimum, and min_box_e is the second true minimum.
[0107] Similarly, the decoding circuit can also be equipped with a fifth register to store the index of the variable node corresponding to the true minimum value (which can indicate the position of the variable node). Accordingly, the value in the fifth register can be updated as follows: min_idx_oe<=min_deltaq_o <min_box_e?min_idx_o:min_idx_e In step four, similar to the principles of steps S105 and S106 described above, the global corrected second minimum value can be determined based on the first true minimum value, the second true minimum value, the first corrected second minimum value, and the second corrected second minimum value.
[0108] In some alternative implementations, step four above may include: Step 1: If the first true minimum value is not less than the second true minimum value, input the first true minimum value and the second corrected second minimum value into the pre-built correction term calculation system to obtain the first global second minimum value transformation correction term output by the correction term calculation system.
[0109] Step 2: Determine the global corrected second smallest value based on the first true minimum value, the second corrected second smallest value, and the first global second smallest value transformation correction term.
[0110] Step 3: If the first true minimum value is determined to be less than the second true minimum value, input the second true minimum value and the first corrected second minimum value into the correction term calculation system to obtain the second global second minimum value conversion correction term output by the correction term calculation system.
[0111] Step 4: Determine the global corrected second minimum value based on the second true minimum value, the first corrected second minimum value, and the second global second minimum value transformation correction term.
[0112] Specifically, in step 1, the second true minimum value can be used as the new likelihood ratio. Referring to the aforementioned step S105, if it is determined that the first true minimum value is not less than the second true minimum value, it is explained that the second true minimum value can become the minimum value. The first true minimum value and the second corrected second minimum value can compete for the global second minimum value. Accordingly, the first true minimum value and the second corrected second minimum value can be input into the pre-constructed correction term calculation system to obtain the first global second minimum value transformation correction term output by the correction term calculation system.
[0113] For example, the first global second smallest value transformation correction term can be expressed as: s_sub_m_o2e=s_corr(min_deltaq_o,sub_box_e) Wherein, min_deltaq_o is the first true minimum value, and sub_box_e is the second corrected minimum value.
[0114] The second global second smallest value transformation correction term can be expressed as: s_sub_m_e2o=s_corr(min_deltaq_e,sub_box_o) Wherein, min_deltaq_e is the second true minimum value, and sub_box_o is the first corrected second minimum value.
[0115] In step 2, we can first determine whether the second corrected second smallest value is less than the first true minimum value to determine which can become the global second smallest value. If it is determined that the second corrected second smallest value is less than the first true minimum value, the second corrected second smallest value becomes the global second smallest value. At this time, the global corrected second smallest value can be determined based on the transformation correction term of the second corrected second smallest value and the first global second smallest value, for example, by calculating the sum between the transformation correction term of the second corrected second smallest value and the first global second smallest value. If it is determined that the second corrected second smallest value is not less than the first true minimum value, the first true minimum value becomes the global second smallest value. At this time, the global corrected second smallest value can be determined based on the transformation correction term of the first true minimum value and the first global second smallest value, for example, by calculating the sum between the transformation correction term of the first true minimum value and the first global second smallest value.
[0116] Step 2 above can be represented as: sub_box_e <min_deltaq_o?sub_box_e+s_sub_m_o2e:min_deltaq_o+s_sub_m_o2e In step 3, if it is determined that the first true minimum is less than the second true minimum, it is said that the first true minimum is the global minimum. The second true minimum and the first corrected second minimum can compete for the global second minimum. Accordingly, the second true minimum and the first corrected second minimum can be input into the correction term calculation system.
[0117] In step 4, we can first determine whether the first corrected second smallest value is less than the second true minimum value to determine which can become the global second smallest value. If it is determined that the first corrected second smallest value is less than the second true minimum value, the first corrected second smallest value becomes the global second smallest value. At this time, the global corrected second smallest value can be determined based on the transformation correction term between the first corrected second smallest value and the second global second smallest value, for example, by calculating the sum between the transformation correction term between the first corrected second smallest value and the second global second smallest value. If it is determined that the first corrected second smallest value is not less than the second true minimum value, the second true minimum value becomes the global second smallest value. At this time, the global corrected second smallest value can be determined based on the transformation correction term between the second true minimum value and the second global second smallest value, for example, by calculating the sum between the transformation correction term between the second true minimum value and the second global second smallest value.
[0118] Step 4 above can be represented as: sub_box_o <min_deltaq_e?sub_box_o+s_sub_m_e2o:min_deltaq_e+s_sub_m_e2o) For example, step four above can be represented as: sub_box_oe<=min_deltaq_o <min_deltaq_e? (sub_box_o <min_deltaq_e?sub_box_o+s_sub_m_e2o:min_deltaq_e+s_sub_m_e2o): (sub_box_e <min_deltaq_o?sub_box_e+s_sub_m_o2e:min_deltaq_o+s_sub_m_o2e) Wherein, sub_box_oe is the globally corrected second minimum value, min_deltaq_o is the first true minimum value, and min_deltaq_e is the second true minimum value. sub_box_o is the first corrected second minimum value, min_deltaq_e is the second true minimum value, and s_sub_m_e2o is the second global second minimum value correction term. sub_box_e is the second corrected second minimum value, min_deltaq_o is the first true minimum value, and s_sub_m_o2e is the first global second minimum value.
[0119] In some optional implementations, after step S108 above, the information passed from the verification node to each variable node can be calculated, including: Step 1: Based on the first true minimum value, determine the target variable node corresponding to the first true minimum value.
[0120] Step 2: Determine whether the first variable node is the target variable node.
[0121] Step 3: Determine whether the first variable node is the target variable node.
[0122] Step 4: If the first variable node is determined to be the target variable node, determine the information to be transmitted based on the global correction of the second smallest value.
[0123] Step 5: If it is determined that the first variable node is not the target variable node, determine the information to be transmitted based on the global true minimum value and the global minimum value correction term.
[0124] The first variable node is any one of the multiple variable nodes connected to the verification node.
[0125] Specifically, in the above update process, each time the first register is updated, the fifth register can be updated accordingly, and the data in it is updated to the index of the variable node corresponding to the true minimum value in the third register.
[0126] Accordingly, after completing step S108 above, the index of the target variable node can be read from the fifth register. Then, when calculating the information passed from the verification node to each connected variable node, each variable node can be traversed. For each variable node traversed, taking the first variable node as an example, the index of the first variable node and the index of the target variable node can be used to determine whether the current first variable node is the target variable node.
[0127] If so, the second smallest value can be used to determine the information to be transmitted, which is the minimum value among other variable nodes. Referring to the aforementioned update process of the second smallest value, the corrected second smallest value is the true second smallest value. Therefore, the information to be transmitted can be determined based on the globally corrected second smallest value.
[0128] If not, the minimum value can be used to determine the information to be transmitted. Accordingly, a global minimum value correction term can be used to correct the global true minimum value, and then the corrected minimum value can be used to determine the information to be transmitted.
[0129] Referring to the aforementioned NMS algorithm, similarly, the total symbol can be calculated first. When determining the information to be passed to the first variable node, the total symbol can be XORed with the symbol of the likelihood ratio of the first variable node to obtain the current symbol. Then, the product between the normalization factor and the globally corrected second smallest value can be calculated, and the current symbol can be assigned to obtain the information to be passed. Alternatively, the product between the normalization factor and the corrected minimum value can be calculated, and the current symbol can be assigned to obtain the information to be passed.
[0130] In this way, the computational complexity can be reduced compared to direct calculation using formula (2).
[0131] It should be noted that in the above process, the corrected minimum value is an approximation of the Box_plus algorithm and cannot replace the true minimum value. Therefore, when calculating the information to be transmitted, the global minimum correction term should be used to correct the global true minimum value, rather than directly using the corrected minimum value. However, the corrected second minimum value is the exact value and can be used directly. The correction term is negative or 0; adding the correction term in the above process is actually a subtraction. The normalization factor of the result adjusted using the Box_plus algorithm will be larger than before, and closer to 1 than the original normalization factor.
[0132] like Figure 2 As shown, this scheme uses the above method to test the performance of a matrix with a code rate of 87%, resulting in a performance comparison chart. The horizontal axis represents the Raw Bit Error Rate (RBER), which is the bit error rate directly determined by the receiver after transmission through the channel but before decoding, reflecting the noise level of the channel itself. The vertical axis represents the Frame Error Rate (FER), which represents the probability that there are still erroneous bits in the entire frame of data after decoding, measuring the final performance of the decoding system. Figure 2 In the results, as the RBER increases, the FER of both schemes rises. However, under the same RBER conditions, the gray solid line (the scheme in this patent) is always below the black dashed line (the optimal scheme of NMS), indicating that the frame error rate of this scheme is lower and that it has improved decoding accuracy compared to the NMS algorithm.
[0133] The hardware implementation architecture diagram of the decoding circuit described above can be found in the following reference. Figure 3 Each of the correction term calculation subcircuits is used to calculate a correction term. For example, the first correction term calculation subcircuit is used to calculate the minimum value correction term, the second correction term calculation subcircuit is used to calculate the second minimum value transformation correction term, and the third correction term calculation subcircuit is used to calculate the second minimum value accompanying correction term.
[0134] Specifically, the first correction calculation sub-circuit can determine the latest correction minimum value based on the currently received likelihood ratio and the current correction minimum value. The second correction calculation sub-circuit can determine the latest correction second minimum value based on the currently received likelihood ratio and the current correction second minimum value. The third correction calculation sub-circuit can determine the smallest correction second minimum value based on the currently received likelihood ratio and the current true minimum value.
[0135] The comparator circuit is used to compare the new likelihood ratio with the true minimum to update the true minimum and its location, that is, to determine the index of the variable node.
[0136] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0137] Embodiments of this application also provide a device for updating verification information, such as... Figure 4 As shown, it includes: The acquisition module 410 is used to acquire the current initial corrected minimum value, the initial corrected second minimum value, and the initial true minimum value for each likelihood ratio acquired. The likelihood ratio is the information passed from the variable node to the verification node. The update module 420 is used to update the initial true minimum value based on the likelihood ratio; determine the minimum value correction term based on the likelihood ratio and the initial corrected minimum value; update the initial corrected minimum value based on the minimum value correction term and the likelihood ratio; determine the second minimum value correction term based on the likelihood ratio, the initial corrected second minimum value, and the initial true minimum value; and update the initial corrected second minimum value based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term. The acquisition module 410 is also used to acquire first information after completing the update operation of multiple variable nodes connected to the verification node, wherein the first information includes a minimum value correction item, a first correction second minimum value, and a first true minimum value. The determination module 430 is used to determine the first information as global information, wherein the global information includes a global minimum value correction term, a global correction second minimum value, and a global true minimum value, and the global information is used to calculate the information passed to any variable node connected to the verification node.
[0138] In some alternative implementations, the update module 420 is specifically used for: Compare the likelihood ratio with the initial true minimum; If it is determined that the likelihood ratio is less than the initial true minimum, the initial true minimum is updated to the likelihood ratio; If the likelihood ratio is determined to be no less than the initial true minimum, the initial true minimum is maintained.
[0139] In some alternative implementations, the update module 420 is specifically used for: The likelihood ratio and the initial correction minimum are input into the pre-built correction term calculation system to obtain the minimum correction term output by the correction term calculation system.
[0140] In some alternative implementations, the update module 420 is specifically used for: If it is determined that the likelihood ratio is less than the initial corrected minimum, calculate the first sum between the minimum correction term and the likelihood ratio, and update the initial corrected minimum to the first sum. If the likelihood ratio is determined to be no less than the initial corrected minimum, calculate the second sum between the minimum correction term and the initial corrected minimum, and update the initial corrected minimum to the second sum.
[0141] In some alternative implementations, the update module 420 is specifically used for: Based on the initial true minimum value and the initial corrected second minimum value, determine the second minimum value transformation correction term; Alternatively, the accompanying correction term for the second smallest value can be determined based on the initial correction and the likelihood ratio; Among them, the second smallest value correction term is either the second smallest value transformation correction term or the second smallest value accompanying correction term.
[0142] In some alternative implementations, the update module 420 is specifically used for: The initial true minimum and the initial corrected second minimum are input into the pre-built correction term calculation system to obtain the second minimum value transformation correction term output by the correction term calculation system.
[0143] In some alternative implementations, the update module 420 is specifically used for: The initial modified second minimum value and the likelihood ratio are input into the pre-constructed modification term calculation system to obtain the second minimum value associated modification term output by the modification term calculation system.
[0144] In some alternative implementations, the update module 420 is specifically used for: If the likelihood ratio is determined to be less than the initial true minimum, calculate the third sum between the initial true minimum and the second smallest value transformation correction term, and update the initial corrected second smallest value to the third sum.
[0145] In some alternative implementations, the update module 420 is also used for: Given that the likelihood ratio is not less than the initial true minimum, determine whether the likelihood ratio is less than the initial corrected second minimum. If the likelihood ratio is determined to be less than the initial corrected second minimum, calculate the fourth sum between the likelihood ratio and the second minimum accompanied by the correction term, and update the initial corrected second minimum to the fourth sum.
[0146] In some alternative implementations, the update module 420 is also used for: If the likelihood ratio is determined to be no less than the initial corrected second minimum, calculate the fifth sum between the initial corrected second minimum and the second minimum accompanied by the correction term, and update the initial corrected second minimum to the fifth sum.
[0147] In some optional implementations, the correction term calculation system uses the following calculation method: The first input data and the second input data input to the correction term calculation system are quantized respectively to obtain the first quantized data corresponding to the first input data and the second quantized data corresponding to the second input data. Calculate the sixth sum and absolute value of the difference between the first and second quantized data, respectively. If the absolute value of the difference is less than the first preset value and the absolute value of the sixth sum is less than a preset multiple, the first correction term is determined as the target correction term, wherein the first correction term is used to indicate the execution of the correction operation; If the absolute value of the difference is not less than the first preset value, or the absolute value of the difference of the sixth sum is not less than a preset multiple, the second correction term is determined as the target correction term, wherein the second correction term is used to indicate that no correction operation is performed; The target correction term is determined as the output data of the correction term calculation system.
[0148] In some optional implementations, the correction term calculation system also employs the following calculation method: Calculate the seventh sum between the first quantized data and the first preset value; Calculate the eighth sum between the second quantized data and the second preset value; If the first quantized data and the second quantized data meet the target conditions, the first correction term is determined as the target correction term. The target conditions are that the second quantized data is less than the seventh sum, the first quantized data is less than the eighth sum, and neither the first quantized data nor the second quantized data is equal to any value in the target configuration information. The target configuration information includes specified values that are not corrected. If the first and second quantified data do not meet the target conditions, the second correction term is determined as the target correction term.
[0149] In some alternative implementations, when the bit quantization fraction is 1 bit, the quantization process includes: The input data is multiplied by 2 and then rounded.
[0150] In some alternative implementations, the determining module 430 is further configured to: Based on the first true minimum value, determine the target variable node corresponding to the first true minimum value; Determine whether the first variable node is the target variable node, where the first variable node is any one of the multiple variable nodes connected to the verification node; Given that the first variable node is the target variable node, the information to be transmitted is determined based on the second smallest global correction value. If it is determined that the first variable node is not the target variable node, the information to be transmitted is determined based on the global true minimum value and the global minimum value correction term.
[0151] In some optional implementations, the first information further includes a first corrected minimum value. The first information is obtained after completing the update operation of multiple variable nodes in the first group connected to the verification node. The determining module 430 is further configured to: Obtain the second information, which includes the second corrected minimum value, the second true minimum value, and the second corrected second minimum value. The second information is obtained after completing the update operation of multiple variable nodes of the second group connected to the verification node. The global minimum value correction term is determined based on the first and second corrected minimum values; The global true minimum is determined based on the first and second true minimum values. The global corrected second minimum value is determined based on the first true minimum value, the second true minimum value, the first corrected second minimum value, and the second corrected second minimum value.
[0152] In some alternative implementations, the determining module 430 is specifically used for: Given that the first true minimum is not less than the second true minimum, the first true minimum and the second corrected second minimum are input into the pre-built correction term calculation system to obtain the first global second minimum value transformation correction term output by the correction term calculation system. The global corrected second minimum value is determined based on the first true minimum value, the second corrected second minimum value, and the first global second minimum value transformation correction term. If the first true minimum value is determined to be less than the second true minimum value, the second true minimum value and the first corrected second minimum value are input into the correction term calculation system to obtain the second global second minimum value conversion correction term output by the correction term calculation system. The global modified second minimum value is determined based on the second true minimum value, the first modified second minimum value, and the second global second minimum value transformation correction term.
[0153] For a description of the features in the embodiment corresponding to the verification information updating device, please refer to the relevant description in the embodiment corresponding to the verification information updating method, which will not be repeated here.
[0154] Embodiments of this application also provide an electronic device, such as... Figure 5 As shown, it includes a memory 10 and a processor 20. The memory 10 stores a computer program, and the processor 20 is configured to run the computer program to perform the steps in any of the above-described embodiments of the method for updating verification information.
[0155] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described verification information update method embodiments when running.
[0156] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0157] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described verification information update method embodiments.
[0158] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described verification information update method embodiments.
[0159] Any of the components, modules, units, parts, methods, and operations described herein can be implemented using software, firmware, hardware (fixed logic circuit systems), manual processing, or any combination thereof. Alternatively or additionally, any functionality described herein can be performed at least in part by one or more hardware logic components, such as, but not limited to, a central processing unit, a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), an application-specific standard product (ASSP), a system-on-a-chip (SoC), a complex programmable logic device (CPLD), a microcontroller unit (MCU), etc. The terms "system," "computing device," or "apparatus" as used herein encompass various means, devices, and machines for processing data, including, for example, one or more programmable processors, computers, SoCs, or combinations thereof. The apparatus may also include code that creates an execution environment for the computer program in question, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or a combination thereof. The aforementioned computer program (also referred to as a program, software, software application, App, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and can be deployed in any form, including as a standalone program or as a module, component, subroutine, object, or other unit suitable for a computing environment. Those skilled in the art will further appreciate that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0160] The foregoing has provided a detailed description of a method, apparatus, electronic device, storage medium, and program product for updating verification information provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A method for updating verification information, characterized in that, The method is applied to decoding circuits based on low-density parity-check codes, and the method includes: For each likelihood ratio obtained, the current initial corrected minimum value, initial corrected second minimum value, and initial true minimum value are obtained, wherein the likelihood ratio is the information passed from the variable node to the verification node; The initial true minimum value is updated based on the likelihood ratio; The likelihood ratio and the initial corrected minimum value are input into the pre-constructed correction term calculation system to obtain the minimum value correction term output by the correction term calculation system; The initial corrected minimum value is updated based on the minimum value correction term and the likelihood ratio; The initial true minimum value and the initial corrected second minimum value are input into the correction term calculation system to obtain the second minimum value transformation correction term output by the correction term calculation system; or, the initial corrected second minimum value and the likelihood ratio are input into the correction term calculation system to obtain the second minimum value associated correction term output by the correction term calculation system. The initial corrected second minimum value is updated based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term, wherein the second minimum value correction term is the second minimum value transformation correction term or the second minimum value accompanying correction term. After completing the update operation of multiple variable nodes connected to the verification node, the first information is obtained, wherein the first information includes a first minimum value correction item, a first corrected second minimum value, and a first true minimum value. The first information is defined as global information, wherein the global information includes a global minimum correction term, a global corrected second minimum value, and a global true minimum value, and the global information is used to calculate the information passed to any variable node connected to the verification node; The correction term calculation system employs the following calculation method: The first input data and the second input data input to the correction term calculation system are respectively quantized to obtain the first quantized data corresponding to the first input data and the second quantized data corresponding to the second input data; Calculate the sixth sum and the absolute value of the difference between the first quantized data and the second quantized data respectively; if it is determined that the absolute value of the difference is less than a first preset value and the sixth sum is less than the absolute value of the difference by a preset multiple, a first correction term is determined as a target correction term, wherein the first correction term is used to indicate that a correction operation is performed; if it is determined that the absolute value of the difference is not less than the first preset value, or the sixth sum is not less than the absolute value of the difference by a preset multiple, a second correction term is determined as the target correction term, wherein the second correction term is used to indicate that a correction operation is not performed. Alternatively, calculate the seventh sum between the first quantized data and the first preset value; calculate the eighth sum between the second quantized data and the second preset value; if the first quantized data and the second quantized data satisfy the target condition, determine the first correction item as the target correction item, wherein the target condition is that the second quantized data is less than the seventh sum, the first quantized data is less than the eighth sum, and neither the first quantized data nor the second quantized data is equal to any value in the target configuration information, the target configuration information including specified values that are not corrected; if the first quantized data and the second quantized data do not satisfy the target condition, determine the second correction item as the target correction item. The target correction term is determined as the output data of the correction term calculation system.
2. The method for updating verification information according to claim 1, characterized in that, The step of updating the initial true minimum value based on the likelihood ratio includes: The likelihood ratio is compared with the initial true minimum value; If it is determined that the likelihood ratio is less than the initial true minimum, the initial true minimum is updated to the likelihood ratio; If the likelihood ratio is determined to be not less than the initial true minimum, the initial true minimum is maintained.
3. The method for updating verification information according to claim 1 or 2, characterized in that, The step of updating the initial corrected minimum value based on the minimum value correction term and the likelihood ratio includes: If it is determined that the likelihood ratio is less than the initial corrected minimum value, a first sum between the minimum value correction term and the likelihood ratio is calculated, and the initial corrected minimum value is updated to the first sum. If the likelihood ratio is determined to be greater than or equal to the initial corrected minimum value, a second sum between the minimum value correction term and the initial corrected minimum value is calculated, and the initial corrected minimum value is updated to the second sum.
4. The method for updating verification information according to claim 1 or 2, characterized in that, The step of updating the initial corrected second minimum value based on the likelihood ratio, the initial true minimum value, and the second minimum value correction term includes: If the likelihood ratio is determined to be less than the initial true minimum, a third sum is calculated between the initial true minimum and the second smallest value transformation correction term, and the initial corrected second smallest value is updated to the third sum.
5. The method for updating verification information according to claim 4, characterized in that, The method further includes: If it is determined that the likelihood ratio is not less than the initial true minimum, then it is determined whether the likelihood ratio is less than the initial corrected second minimum. If it is determined that the likelihood ratio is less than the initial corrected second minimum value, a fourth sum between the likelihood ratio and the second minimum value and the accompanying correction term is calculated, and the initial corrected second minimum value is updated to the fourth sum.
6. The method for updating verification information according to claim 5, characterized in that, The method further includes: If the likelihood ratio is determined to be not less than the initial corrected second minimum value, a fifth sum is calculated between the initial corrected second minimum value and the accompanying correction term of the second minimum value, and the initial corrected second minimum value is updated to the fifth sum.
7. The method for updating verification information according to claim 1 or 2, characterized in that, When the number of decimal places in the bit quantization is 1 bit, the quantization process includes: The input data is multiplied by 2 and then rounded.
8. The method for updating verification information according to claim 1 or 2, characterized in that, The method further includes: Based on the first true minimum value, determine the target variable node corresponding to the first true minimum value; Determine whether the first variable node is the target variable node, wherein the first variable node is any one of a plurality of variable nodes connected to the verification node; If the first variable node is determined to be the target variable node, the information to be transmitted is determined based on the global correction second smallest value. If it is determined that the first variable node is not the target variable node, the information to be transmitted is determined based on the global true minimum value and the global minimum value correction term.
9. The method for updating verification information according to claim 1 or 2, characterized in that, The first information also includes a first corrected minimum value, which is obtained after completing the update operation of multiple variable nodes in the first group connected to the verification node. The method further includes: Obtain second information, wherein the second information includes a second corrected minimum value, a second true minimum value, and a second corrected second minimum value, and the second information is obtained after completing the update operation of multiple variable nodes of the second group connected to the verification node; The global minimum value correction term is determined based on the first corrected minimum value and the second corrected minimum value; The global true minimum value is determined based on the first true minimum value and the second true minimum value; The global corrected second minimum value is determined based on the first true minimum value, the second true minimum value, the first corrected second minimum value, and the second corrected second minimum value.
10. The method for updating verification information according to claim 9, characterized in that, The step of determining the global corrected second minimum value based on the first true minimum value, the second true minimum value, the first corrected second minimum value, and the second corrected second minimum value includes: If the first true minimum value is determined to be no less than the second true minimum value, the first true minimum value and the second corrected second minimum value are input into the pre-constructed correction term calculation system to obtain the first global second minimum value transformation correction term output by the correction term calculation system. The global corrected second smallest value is determined based on the first true minimum value, the second corrected second smallest value, and the first global second smallest value transformation correction term; If the first true minimum value is determined to be less than the second true minimum value, the second true minimum value and the first corrected second minimum value are input into the correction term calculation system to obtain the second global second minimum value conversion correction term output by the correction term calculation system. The global corrected second minimum value is determined based on the second true minimum value, the first corrected second minimum value, and the second global second minimum value transformation correction term.
11. A device for updating verification information, characterized in that, The device is applied to a decoding circuit based on a low-density parity-check code, and the device includes: The acquisition module is used to acquire the current initial corrected minimum value, the initial corrected second minimum value, and the initial true minimum value for each likelihood ratio acquired, wherein the likelihood ratio is the information passed from the variable node to the verification node; An update module is configured to input the likelihood ratio and the initial corrected minimum value into a pre-built correction term calculation system to obtain a minimum value correction term output by the correction term calculation system; update the initial corrected minimum value according to the minimum value correction term and the likelihood ratio; input the initial true minimum value and the initial corrected second minimum value into the correction term calculation system to obtain a second minimum value transformation correction term output by the correction term calculation system; or, input the initial corrected second minimum value and the likelihood ratio into the correction term calculation system to obtain a second minimum value accompanying correction term output by the correction term calculation system; update the initial corrected second minimum value according to the likelihood ratio, the initial true minimum value, and the second minimum value correction term, wherein the second minimum value correction term is either the second minimum value transformation correction term or the second minimum value accompanying correction term. The acquisition module is further configured to acquire first information after completing the update operation of multiple variable nodes connected to the verification node, wherein the first information includes a minimum value correction item, a first corrected second minimum value, and a first true minimum value. The determination module is used to determine the first information as global information, wherein the global information includes a global minimum correction term, a global correction second minimum value, and a global true minimum value, and the global information is used to calculate the information passed to any variable node connected to the verification node; The correction term calculation system employs the following calculation method: The first input data and the second input data input to the correction term calculation system are respectively quantized to obtain the first quantized data corresponding to the first input data and the second quantized data corresponding to the second input data; Calculate the sixth sum and the absolute value of the difference between the first quantized data and the second quantized data respectively; if it is determined that the absolute value of the difference is less than a first preset value and the sixth sum is less than the absolute value of the difference by a preset multiple, a first correction term is determined as a target correction term, wherein the first correction term is used to indicate that a correction operation is performed; if it is determined that the absolute value of the difference is not less than the first preset value, or the sixth sum is not less than the absolute value of the difference by a preset multiple, a second correction term is determined as the target correction term, wherein the second correction term is used to indicate that a correction operation is not performed. Alternatively, calculate the seventh sum between the first quantized data and the first preset value; calculate the eighth sum between the second quantized data and the second preset value; if the first quantized data and the second quantized data satisfy the target condition, determine the first correction item as the target correction item, wherein the target condition is that the second quantized data is less than the seventh sum, the first quantized data is less than the eighth sum, and neither the first quantized data nor the second quantized data is equal to any value in the target configuration information, the target configuration information including specified values that are not corrected; if the first quantized data and the second quantized data do not satisfy the target condition, determine the second correction item as the target correction item. The target correction term is determined as the output data of the correction term calculation system.
12. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the method for updating verification information as described in any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method for updating verification information as described in any one of claims 1 to 10.
14. A computer program product, characterized in that, The computer program product includes a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method for updating verification information as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Modified minimum-sum algorithm based decoding method for quasi-cyclic LDPC codes
CN105227191A
Minimal sum decoding method based on grading excursion correction
CN1770641A
