Multi-threshold decision circuit and implementation method
By using multiple threshold decision circuits in flash memory and using combinational logic circuits of comparators and multiplexers, the threshold adjustment is simplified, the problem of complex hardware implementation in the traditional dynamic threshold adjustment method is solved, and efficient decoding performance and low cost are achieved. power consumption.
Patent Information
- Application Number
- CN202410603478.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
AI Technical Summary
When the traditional dynamic threshold adjustment method is implemented in flash memory, it is difficult to balance the hardware area and decoding speed, resulting in complex decoding logic and high power consumption, especially when the flip function of the WBF algorithm is widely distributed.
Using multiple threshold decision circuits, through N*(k-1) sets of comparators and N*(k-1)-1 sets of multiplexers, several fixed thresholds are used to adjust the threshold, select and check matrix parameters and SMWBF Algorithm-dependent thresholds that enable decisions within one clock cycle.
The hardware implementation is simplified, the number of iterations is reduced, the decoding performance is close to traditional dynamic threshold adjustment, and the circuit is composed of pure combinational logic circuits, achieving more efficient decoding.
Smart Images

Figure CN118553280A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of storage technology, in particular to a multiple threshold decision circuit and an implementation method thereof. Background Art
[0002] Flash memory is a non-volatile storage technology widely used in mobile devices, solid-state drives (SSDs) and other electronic devices. It is known for its fast read and write speeds, durability and low energy consumption. With the growth of data storage needs and the development of technology, the density of flash memory continues to increase, but this also brings challenges to data reliability, especially in multi-level cell (MLC) and triple-level cell (TLC) flash memory.
[0003] In order to maintain data reliability and improve storage efficiency, efficient error correction coding technology is required. Low-density parity check (LDPC) codes are widely used in flash memory due to their efficient error correction capabilities. Based on the usage environment of flash memory, the decoding algorithm applied to flash memory is generally hard decoding. Specifically, it includes the bit flipping (BF) algorithm, the weighted bit flipping (WBF) algorithm, and other improved algorithms based on the WBF algorithm. The SMWBF algorithm is an improved WBF algorithm with excellent decoding performance.
[0004] The bit flipping algorithm generally uses a fixed threshold or a dynamic threshold method to determine which bits need to be flipped. The dynamic threshold is more complex and has better decoding effect. The traditional dynamic threshold adjustment method adjusts the dynamic threshold downward from the preset maximum value with the minimum step size of the flip function until a value greater than the current threshold appears, and flips all bits that satisfy the flip function greater than the threshold. This method has a good decoding effect, but the flip function of the WBF algorithm has a wide distribution range, which makes the implementation of the dynamic threshold logic very complicated. When implementing it in hardware, either the area and power consumption overhead is large or the threshold adjustment time is long. It is difficult to take into account both area and decoding speed at the same time, and needs to be improved. Summary of the invention
[0005] The purpose of the present invention is to provide a multiple threshold decision circuit and implementation method to solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A multiple threshold decision circuit comprises N*(k-1) groups of comparators and N*(k-1)-1 groups of multiplexers, each group of comparators comprises M comparators, each group of multiplexers comprises M multiplexers, the input ends of the N*(k-1) groups of comparators respectively input flip function values of M bits, one input end of two input ends of each group of multiplexers is connected to the output end of one group of comparators, and the other input end is connected to the output end of another group of multiplexers, the output end of the first group of multiplexers outputs data, and the two input ends of the last group of multiplexers are respectively connected to the output ends of the last two groups of comparators.
[0008] A method for implementing a multiple threshold decision circuit comprises the following steps:
[0009] Step 1: The data bit width to be processed is M, and the flip function values of M bits are received. According to the relationship between the flip function value of each bit and different thresholds, N*(k-1) groups of data containing flip bit position information are obtained;
[0010] Step 2, name the N*(k-1) groups of data as S(1)[M-1:0] to S(N*(k-1))[M-1:0];
[0011] Step 3, judge each group of data from S(1)[M-1:0] to S(N*(k-1))[M-1:0]. If there is 1 in the bit of a group of data, output the group of data, and the bit that is 1 will be flipped in this round of iteration; if every bit of a group of data is 0, query the next group of data until the last group of data.
[0012] As a further solution of the present invention: the multiple threshold decision circuit implementation method also includes step 4, if each bit of each group of data from S(1)[M-1:0] to S(N*(k-1))[M-1:0] is 0, decoding fails.
[0013] As a further solution of the present invention: before step 1, multiple threshold settings are also included:
[0014] Step 01, set the number of dynamic thresholds and arrange the thresholds to be set from large to small;
[0015] Step 02, setting the maximum possible flip function value;
[0016] Step 03, obtaining the value of setting the dynamic threshold quantity based on the maximum flip function value.
[0017] As a further solution of the present invention: in step 01, the number of dynamic thresholds set is N*(k-1), and the thresholds that need to be set are listed from large to small as T(1), T(2), T(3), T(4), ..., T(N*(k-1)).
[0018] As a further solution of the present invention: in step 02, T(0) is the maximum possible flip function value, and its value is the following equation:
[0019] T(0)=k×(j-1)×y max -α×y min (1);
[0020] Among them, j is the row weight, k is the column weight, and y max is the maximum reliability, y min is the minimum reliability and α is the expansion factor.
[0021] As a further solution of the present invention: in step 03, T(0) is not one of the set thresholds, but T(0) and the largest N*(k-1)-1 thresholds are an arithmetic progression, and the adjacent differences are α×Δ. The values of these N*(k-1)-1 thresholds are determined by the following formula:
[0022] T(n)=T(0)-n×α×Δ (2);
[0023] N is the number of available reliabilities and Δ is the minimum step size of the reliability.
[0024] Compared with the prior art, the beneficial effects of the present invention are as follows: the threshold of the present invention is no longer switched with the minimum step size of the flip function, but is switched among several fixed thresholds; the selection of these fixed thresholds is related to the parameters of the check matrix (row weight j, column weight k), the expansion factor α in the SMWBF algorithm and the value range of the bit reliability; by setting appropriate multiple thresholds, the decoding performance is not much different from the decoding performance of the traditional dynamic threshold adjustment, and has fewer iterations, and the hardware implementation is also much simpler; the circuit is composed of a pure combinational logic circuit and can complete the judgment within one clock cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 The figure is a circuit diagram of a multiple threshold decision circuit. DETAILED DESCRIPTION
[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0027] See also Figure 1A multiple threshold decision circuit includes N*(k-1) groups of comparators and N*(k-1)-1 groups of multiplexers, each group of comparators includes M comparators, each group of multiplexers includes M multiplexers, the input ends of the N*(k-1) groups of comparators respectively input flip function values of M bits (the number of comparators in a group of comparators corresponds to it, and the number of multiplexers in a group of multiplexers corresponds to it), one input end of the two input ends of each group of multiplexers is connected to the output end of a group of comparators, and the other input end is connected to the output end of another group of multiplexers, the output end of the first group of multiplexers outputs data, and the two input ends of the last group of multiplexers are respectively connected to the output ends of the last two groups of comparators.
[0028] In a specific embodiment: E(0)-E(M-1) is the flip function value of M bits, and the comparator group outputs S(1)[M-1:0]-S(N*(k-1))[M-1:0] after obtaining the data. Then, the final M bits of bit information to be flipped are obtained through M-1 groups of M-bit MUX (multiplexers). In the figure, |S(1) is the value after bitwise OR (binary operator) of S(1)[M-1:0]. When |S(1) is 1, S_OUT[M-1:0] is equal to the data at the 1 end of MUX, that is, S(1)[M-1:0]; otherwise, S_OUT[M-1:0] is equal to the data at the 0 end of MUX, and the data at the 0 end is selected by the previous MUX. Other MUXs are cascaded in the above manner.
[0029] The circuit is composed of N*(k-1) comparators and N*(k-1)-1 M-bit width MUXs. The bit width of the comparator depends on the range of the flip function, specifically: The circuit is composed of pure combinational logic circuits and can complete the judgment within one clock cycle.
[0030] A method for implementing a multiple threshold decision circuit comprises the following steps:
[0031] Step 1: The data bit width to be processed is M, and the flip function values of M bits are received. According to the relationship between the flip function value of each bit and different thresholds, N*(k-1) groups of data containing flip bit position information are obtained;
[0032] Step 2, name the N*(k-1) groups of data as S(1)[M-1:0] to S(N*(k-1))[M-1:0];
[0033] Step 3, judge each group of data from S(1)[M-1:0] to S(N*(k-1))[M-1:0]. If there is 1 in the bit of a group of data, output the group of data, and the bit that is 1 will be flipped in this round of iteration; if every bit of a group of data is 0, query the next group of data until the last group of data.
[0034] There may be several bits in S(1)[M-1:0] with a value of 1, which means that the flip function value of the bits at the corresponding positions of these bits is greater than T(1). Similarly, there may be several bits in S(2)[M-1:0] with a value of 1, which means that the flip function value of the bits at the corresponding positions of these bits is greater than T(2). The same applies to the remaining groups.
[0035] In this embodiment: the multiple threshold decision circuit implementation method also includes step 4, if each bit of each group of data from S(1)[M-1:0] to S(N*(k-1))[M-1:0] is 0, decoding fails.
[0036] In this embodiment: the step 1 also includes multiple threshold settings:
[0037] Step 01, set the number of dynamic thresholds and arrange the thresholds to be set from large to small;
[0038] Step 02, setting the maximum possible flip function value;
[0039] Step 03, obtaining a value for setting a dynamic threshold quantity based on the maximum flip function value.
[0040] In this embodiment: In step 01, the number of dynamic thresholds set is N*(k-1), and the thresholds that need to be set are listed from large to small as T(1), T(2), T(3), T(4), ..., T(N*(k-1)).
[0041] In this embodiment: In step 02, T(0) is the maximum possible flip function value, and its value is the following equation:
[0042] T(0)=k×(j-1)×y max -α×y min (1);
[0043] Among them, j is the row weight, k is the column weight, and y max is the maximum reliability, y min is the minimum reliability and α is the expansion factor.
[0044] In this embodiment: In step 03, T(0) is not one of the set thresholds, but T(0) and the largest N*(k-1)-1 thresholds are an arithmetic progression, and the adjacent difference is α×Δ. The values of these N*(k-1)-1 thresholds are determined by the following formula:
[0045] T(n)=T(0)-n×α×Δ (2);
[0046] N is the number of available reliabilities and Δ is the minimum step size of the reliability.
[0047] The value of T(N*(k-1)) needs to be determined by simulation. Decode by flipping the bit with the largest flip function, and count the flip function values of the flipped bits during the decoding process. The value of T(N*(k-1)) is set to the smallest flip function value E among the flipped bits. min .
[0048] The selection of fixed threshold is related to the parameters of the check matrix (row weight j, column weight k), the expansion factor α in the SMWBF algorithm, and the value range of bit reliability. The values of the above parameters are related to the specific implementation method adopted by the designer when designing a decoder based on the SMWBF algorithm. The value of the threshold proposed in this paper also changes accordingly.
[0049] For example, the final output after the flip function value of 8 bits is input into 6 groups of comparators and passes through 5 groups of multiplexers is taken as an example. Each group of comparators contains 8 comparators, and each group of multiplexers contains 8 multiplexers.
[0050] 6 groups of comparators correspond to 6 different thresholds. After 8 flip functions pass through 6 groups of comparators, 6 01 sequences with a length of 8 will be obtained. According to the size relationship of the thresholds, the final output value is the sequence with the largest threshold value among all non-all-0 sequences. Take the following case as an example:
[0051] T1~6 are the 6 thresholds set, and their size relationship is: T6>T5>T4>T3>T2>T1. The 8-bit 01 sequence on the right side of T1~6 is the output value of the comparator represented by each. It can be seen that the 01 sequence corresponding to T6 is all 0, the sequence corresponding to T1~5 contains 1, and T5 is the largest threshold. Therefore, the final output at this time is 00110000.
[0052] T6: 00000000
[0053] T5:00110000
[0054] T4: 10110000
[0055] T3: 10110000
[0056] T2: 10110100
[0057] T1:10110110
[0058] The present invention provides a multiple threshold decision circuit and implementation method, wherein the threshold is no longer switched with the minimum step length of the flip function, but is switched among several fixed thresholds. The selection of these fixed thresholds is related to the parameters of the check matrix (row weight j, column weight k), the expansion factor α in the SMWBF algorithm, and the value range of the bit reliability. By setting appropriate multiple thresholds, the decoding performance is not much different from the decoding performance of the traditional dynamic threshold adjustment, and has fewer iterations, and the hardware implementation is also much simpler.
[0059] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be considered as exemplary and non-restrictive in all respects.
[0060] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A multiple threshold decision circuit, It is characterized in that The multiple threshold decision circuit includes N*(k-1) groups of comparators and N*(k-1)-1 groups of multiplexers, each group of comparators includes M comparators, each group of multiplexers includes M multiplexers, the input ends of the N*(k-1) groups of comparators respectively input the flip function values of M bits, one input end of the two input ends of each group of multiplexers is connected to the output end of one group of comparators, and the other input end is connected to the output end of another group of multiplexers, the output end of the first group of multiplexers outputs data, and the two input ends of the last group of multiplexers are respectively connected to the output ends of the last two groups of comparators.
2. A method for implementing a multiple threshold decision circuit, It is characterized in that The method for implementing the multiple threshold decision circuit comprises the following steps: Step 1: The data bit width to be processed is M, and the flip function values of M bits are received. According to the relationship between the flip function value of each bit and different thresholds, N*(k-1) groups of data containing flip bit position information are obtained; Step 2, name the N*(k-1) groups of data as S(1)[M-1:0] to S(N*(k-1))[M-1:0]; Step 3, judge each group of data from S(1)[M-1:0] to S(N*(k-1))[M-1:0]. If there is 1 in the bit of a group of data, output the group of data, and the bit that is 1 will be flipped in this round of iteration; if every bit of a group of data is 0, query the next group of data until the last group of data.
3. The method for implementing a multiple threshold decision circuit according to claim 2, It is characterized in that The method for implementing the multiple threshold decision circuit also includes step 4, if each bit of each group of data from S(1)[M-1:0] to S(N*(k-1))[M-1:0] is 0, decoding fails.
4. The method for implementing a multiple threshold decision circuit according to claim 2, It is characterized in that The step 1 also includes multiple threshold settings: Step 01, set the number of dynamic thresholds and arrange the thresholds to be set from large to small; Step 02, setting the maximum possible flip function value; Step 03, obtaining the value of setting the dynamic threshold quantity based on the maximum flip function value.
5. The method for implementing a multiple threshold decision circuit according to claim 4, It is characterized in that In step 01, the number of dynamic thresholds set is N*(k-1), and the thresholds that need to be set are listed from large to small as T(1), T(2), T(3), T(4), ..., T(N*(k-1)).
6. The method for implementing a multiple threshold decision circuit according to claim 4, It is characterized in that In step 02, T(0) is the maximum possible flip function value, and its value is as follows: T(0)=k×(j-1)×y max -α×y min (1); Among them, j is the row weight, k is the column weight, and y max is the maximum reliability, y min is the minimum reliability and α is the expansion factor.
7. The method for implementing a multiple threshold decision circuit according to claim 4, It is characterized in that In step 03, T(0) is not one of the set thresholds, but T(0) and the largest N*(k-1)-1 thresholds are an arithmetic progression, and the adjacent differences are α×Δ. The values of these N*(k-1)-1 thresholds are determined by the following formula: T(n)=T(0)-n×α×Δ (2); N is the number of available reliabilities and Δ is the minimum step size of the reliability.
