1. Technical Field
This disclosure relates to data storage systems for computer systems. More particularly, the disclosure relates to a decoder having early decoding termination detection.
2. Description of the Related Art
Non-volatile memory arrays often have limited endurance. The endurance of the memory array is typically contingent on usage pattern and wear. In addition, the endurance depends on a type of the non-volatile memory array used. For example, memory arrays with multi-level cell (MLC) NAND media typically have a lower endurance than memory arrays with single-level cell (SLC) NAND media. To protect user data stored to memory arrays from corruption, which may be caused by a diminished endurance, parity data can be generated and stored along with user data to facilitate error detection and/or correction. Decoding of parity data can be time consuming and resource intensive. Accordingly, it is desirable to provide more efficient mechanisms for decoding parity data.
Systems and methods that embody the various features of the invention will now be described with reference to the following drawings, in which:
While certain embodiments are described, these embodiments are presented by way of example only, and are not intended to limit the scope of protection. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions, and changes in the form of the methods and systems described herein may be made without departing from the scope of protection.
Data storage systems, such as solid state drives, typically include one or more controllers coupled with one or more non-volatile memory arrays. Depending on the type of non-volatile memory array used, stored data may be subject to corruption as a result of, for example, read/write disturbs, loss of data retention, and/or loss of endurance. Data storage systems can utilize one or more error correction or error coding mechanisms to detect and/or correct errors in the stored data. One such mechanism can determine parity data, such as parity data, when writing user data. Parity data can be stored, for example, in a memory array. When stored user data is retrieved, parity data can be utilized as part of a decoding process to determine the integrity of the retrieved user data. If one or more errors are detected, such errors may be corrected.
Iterative decoding of data can involve considerable system overhead, such as processing time overhead, system resources overhead, and/or system components overhead (e.g., necessity to use additional hardware, firmware, etc.). Accordingly, ending iterative decoding early can provide significant power and/or processing time savings for data storage systems. Moreover, storing parity data (e.g., in a memory array) can reduce memory space available for storage of user data. It can thus also be advantageous for a data storage system to support different error code rates, code lengths, and/or different coding throughput speeds. For example, a data storage system can decode stored data having a relatively higher coding rate so that less parity data is used when a non-volatile memory is early in the lifecycle and thus has relatively higher retention and/or endurance. As non-volatile memory wears out over time, the data storage system can switch to decoding lower coding rates such that more parity data is generated to protect user data from errors. However, supporting multiple code rates, lengths, and/or throughput speeds can require adding and/or duplicating system components (hardware, firmware, etc.), which can increase power consumption and processing time.
Embodiments of the present invention are directed to a decoder having early decoding termination detection. In one embodiment, the decoder can perform early decoding termination detection while supporting multiple error code rates and/or error code lengths, by using nominal or no redundancy of system components. For example, an early detection module of the decoder can be configured so that the existing detection components can be used and/or reused for supporting various code rates and/or lengths. The early detection module can further support multiple error coding throughput speeds by, for example, utilizing parallel computation techniques. In other words, the architecture of the early detection module can be scalable and/or flexible. Accordingly, decoding efficiency and, consequently, data storage system performance can be increased without a substantial increase in the number and/or size of system components in data decoding. Moreover, power consumption and data processing time can be reduced by reducing the number of iterations for decoding data.
The controller 130 can be configured to receive data and/or storage access commands from a storage interface module 112 (e.g., a device driver) of the host system 110. Storage access commands communicated by the storage interface module 112 can include write data and read data commands issued by the host system 110. Read and write commands can specify a logical address (e.g., logical block addresses or LBAs) used to access the data storage system 120. The controller 130 can execute the received commands in the storage medium 140.
Data storage system 120 can store data communicated by the host system 110. In other words, the data storage system 120 can act as memory storage for the host system 110. To facilitate this function, the controller 130 can implement a logical interface. The logical interface can present to the host system 110 data storage system memory as a set of logical addresses (e.g., contiguous address) where user data can be stored. Internally, the controller 130 can map logical addresses to various physical locations or addresses in the storage medium 140 and/or other storage modules.
The controller 130 includes a decoder module 132 and an encoder module 134 configured to decode and encode data, respectively, stored in and retrieved from the storage medium 140. The decoder module 132 can further determine integrity of data retrieved from the storage medium 140 and perform, if necessary, error correction of retrieved data. In some embodiments, when the storage medium 140 is early in the lifecycle and thus has relatively higher retention and/or endurance, the controller 130 can direct the encoder module 134 to encode data using a relatively higher coding rate so that less parity data is used. As the storage medium 140 wears out over time, the controller 130 can direct the encoder module 134 to switch to lower encoding rates such that more parity data is generated to protect user data from errors. The controller 130 can store the coding rates for encoded data in the storage medium 140 or another storage module (not shown) so that the decoder module 132 can later access the information to decode the encoded data.
In one embodiment, the decoder module 132 and the encoder module 134 can utilize low-density parity-check (LDPC) codes for decoding and/or generating parity data, respectively. LDPC codes can be decoded using a decoding matrix H and generated using a corresponding generating matrix G.
The decoding matrix 200 can be used in layered, iterative quasi-cyclic LDPC decoding where a layered approach or layer decoding operations are used to decode data retrieved from a storage medium. The retrieved data can be input to a decoder, such as the decoder module 132, in portions having a length equal to one of multiple code word lengths. The row weight of the decoding matrix can equal the code word length for encoded data in terms of a number of sub-matrixes in the decoding matrix. By changing the P sub-matrix size or column weight of the decoding matrix used to decode data, data having different code rates can be decoded. By changing the row weight of the decoding matrix used to decode data, data for different memory page formats can be coded. In some embodiments, the code word length used to decode data can depend on an E-page size (e.g., an error correcting code page size or a defined grouping of memory for a non-volatile memory array) or NAND flash page size of a memory of a data storage system, such as the data storage system 120.
The decoding matrix 200 can be used in solving a minimum-sum (min-sum) algorithm. As part of the min-sum algorithm, Rmj may be defined to denote a check node log-likelihood ratio (LLR) message sent from a check node m to a variable node j. L(qmj) may be defined to denote a variable node LLR message sent from the variable node j to the check node m. L(qj) (j=1, . . . , N) may be defined to represent the a posteriori probability ratio (APP messages) for the variable nodes. The APP messages can be initialized with the corresponding a priori (channel) reliability value of the coded bit j. For each variable node j of a current horizontal layer of the decoding matrix 200, messages L(qmj) that correspond to a particular check equation m are computed according to Equation 1.
L(qmj)=L(qj)−Rmj (1)
For each check node m, message Rmj, which can correspond to all variable nodes j that participate in a parity check equation, can be computed according to Equation 2.
R
mj≈ΠjεN(m)\{j}sign(L(qmj′))×(minjεN(m)\{j}|L(qmj′)|) (2)
The a posteriori probability APP messages in the current horizontal layer can be updated according to Equation 3.
L(qj)=L(qmj)+Rmj (3)
A decision can be made after processing each horizontal layer of the decoding matrix 200 based on the sign of L(q), j=1, . . . , N. If all parity check equations are satisfied, the decoding algorithm may stop. Otherwise, the min-sum algorithm of Equations 1, 2, and 3 can be repeated for a next horizontal layer.
In some embodiments, the parity check equation used to determine whether data was successfully decoded using one horizontal layer of the decoding matrix 200 can be Equation 4.
C·H
n
T=0 (4)
Equation 4 includes a matrix multiplication of a data portion or code word C and a transpose of the one horizontal layer Hn of the decoding matrix 200. The parity check of Equation 4 can be satisfied when the result of the matrix modification is zero, and thus the data portion C may have been successfully decoded using the one horizontal layer Hn when the result is zero.
The decoding matrix 200 can be further used in iteratively solving the min-sum algorithm. The decoding algorithm can be performed once for all layers of the decoding matrix 200 (e.g., one iteration of the decoding algorithm can be performed). If one or more parity check equations are not satisfied for at least one layer, the decoding algorithm can be performed again (e.g., another iteration of the decoding algorithm can be performed). Additionally or alternatively, the decoding algorithm can be performed for consecutively processed layers of the decoding matrix 200 (e.g., some layers of one iteration and some layers of another iteration, or all layers of one iteration). If (1) one or more parity check equations are not satisfied for at least one layer of the consecutively processed layers or (2) the code word C changed during processing of the corresponding consecutively processed layers, the decoding algorithm can be performed again. Further, the decoding algorithm can additionally or alternatively be performed until a predetermined maximum number of iterations is reached. The maximum number of iterations may be determined based on a number of iterations historically used to successfully decode data, a desired throughput, or power constraints, for instance.
The decoder 300 includes a soft-value generation module 310 and multiple decoding units, including decoding unit A 320a, decoding unit B 320b, decoding unit C 320c, and decoding unit D 320d (collectively, decoding units 320). The soft-value generation module 310 can receive coded data retrieved from a storage medium and generate soft values (e.g., log-likelihood values or scaled values) as inputs for the decoding units 320. In some embodiments, the soft-value generation module 310 constructs soft values by reading the same memory page multiple times with different conditions (e.g., an adjusted voltage read threshold). The multiple read results can be combined in such a way that a final fixed-point represents a probability of 1 or 0. Further, in some embodiments, the soft-value generation module 310 can additionally or alternatively provide binary inputs to the decoding units 320. The soft-value generation module 310 may input data units having one of multiple code word lengths to the decoding units 320 for processing. Each decoding unit may include one or more memories (not shown) for storing a portion of or the entire data unit received from the soft-value generation module 310.
The decoding units 320 can be configured to iteratively decode data units according to a min-sum algorithm, such as based on Equations 1, 2, and 3. The decoding units 320 can decode data units that are encoded using one of multiple code word lengths or processing unit lengths. The decoding units 320 can operate in conjunction with rotate-left/right shifter 330 and the shift control module 340 to perform layer decoding operations using one of multiple decoding matrixes, such as the decoding matrix 200. After decoding using each layer or performing each layer decoding operation, the decoding units 320 can determine a minimum calculated value for each layer from the min-sum algorithm to determine a global minimum (e.g., a minimum of the minimums) for each layer. The global minimums for the layers can then be compared to determine a lowest or global minimum for all layers. The decoding units 320 can include one or more working memories (not shown) to store minimum calculated values or data during the decoding process, for example.
The decoding units 320 can be configured to decode subsets of a data unit in parallel or substantially in parallel using subsets of a corresponding decoding matrix. In some embodiments, the decoding units 320 can each have a processing capacity of soft values or bits per clock cycle corresponding to the size of a smallest P sub-matrix size of a decoding matrix that is supported by the decoder 300. For example, the decoding units 320 can each process 256 soft values, 512 soft values, or 1024 soft values subsets of the data unit per clock cycle when the size of the smallest P sub-matrix size supported is 256 bits×256 bits, 512 bits×512 bits, or 1024 bits×1024 bits, respectively. The decoding units 320 may share values determined as part of a layer decoding operation, such as local determined minimums from decoding subsets of one layer of a data unit, to facilitate the parallel decoding and determining of a minimum calculated value for each layer. In some embodiments, one or more of the decoding units 320 share values when processing a data unit having one length and not another length.
The rotate-left/right shifter 330 can be configured to shift or rotate (e.g., to the left or the right) soft values or bits of portions of data units according to instructions from the shift control module 340. The shift control module 340 can determine or look-up a corresponding decoding matrix from a memory (not shown) for decoding particular data units. Based on the corresponding decoding matrix, the shift control module 340 can direct the rotate-left/right shifter 330 to process data units using a particular granularity and shift portions of data units an amount based on the size and contents of sub-matrixes of a decoding matrix used to decode data units (e.g., a P sub-matrix size and rotation of an identity matrix). In some embodiments, the rotate-left/right shifter 330 can be a configurable Benes network or group of shift registers, and the rotate-left/right shifter 330 may support input data sizes of at least 256 soft values, 512 soft values, and 1024 soft values, for instance. In such embodiments, the Benes network can further include one or more smaller Benes networks connected to one another so as to function as a larger Benes network. In some example operations of the rotate-left/right shifter 330, the rotate-left/right shifter 330 can shift data unit portions having a size of 256 soft values, 512 soft values, or 1024 soft values. In a simple, illustrative example operation of the rotate-left/right shifter 330 shown below, the rotate-left/right shifter 330 can shift each row of a 1 bit×6 bits matrix one column to the right based on the contents of a sub-matrix of the decoding matrix.
The rotate-left/right shifter 330 can shift data unit portions having different sizes or granularities corresponding to a decoding matrix sub-matrix size although the rotate-left/right shifter 330 may have a fixed capacity per clock cycle. The shift control module 340 may direct the rotate-left/right shifter 330 to consider different portions of data processed by the rotate-left/right shifter 330 as different rotation units. Thereby, the shift control module 340 can direct the shifting of different portions of the data independently. In another simple, illustrative example operation of the rotate-left/right shifter 330 shown below, the rotate-left/right shifter 330 can independently shift two 1 bit×3 bits matrixes one column to the right based on the contents of two sub-matrixes of the decoding matrix.
The decoding units 320 can output results, such as decoded data, from one or more layer decoding operations to an early detection module 350. The early detection module 350 can determine whether to terminate further iterations of decoding the data unit based at least in part on whether a parity check equation, such as the parity check of Equation 4, is satisfied by the results and one or more layers of the decoding matrix. The early detection module 350 can operate in parallel or substantially in parallel with the decoding units 320 to stop decoding by the decoding units 320. The parity check equations may be evaluated while decoded data is in a rotated order other than an original order of the data before it was encoded. In addition, the early detection module 350 can be used to rotate decoded data back to the original order of the data before it was encoded. In some embodiments, the early detection module 350 can include one or more early detection sub-modules where each sub-module can process the results and one layer of the decoding matrix in parallel or substantially in parallel.
In some embodiments, a number of decoding units and/or early detection sub-modules can be selected in accordance with a desired throughput. For example, the number of decoder units can be 1, 2, 3, or 4 (as illustrated in
The parity check module 410 can receive decoded data from the decoding units 320 of
In one example, the parity check module 410 may have a capacity of 1 bit×1024 bits and operate using the following pseudocode when processing a decoding matrix that includes sub-matrixes having a size of 256 bits×256 bits. The parity check module 410 can process four 1 bit×256 bits portions of decoded data per clock cycle in this example.
In another example, the parity check module 410 may have a capacity of 1 bit×1024 bits and operate using the following pseudocode when processing a decoding matrix that includes sub-matrixes having a size of 512 bits×512 bits. The parity check module 410 can process two 1 bit×512 bits portions of decoded data per clock cycle in this example.
In yet another example, the parity check module 410 may have a capacity of 1 bit×1024 bits and operate using the following pseudocode when processing a decoding matrix that includes sub-matrixes having a size of 1024 bits×1024 bits. The parity check module 410 can process one 1 bit×1024 bits portions of decoded data per clock cycle in this example.
The rotation module 420 can receive decoded data from the decoding units 320 of
The rotation module 420 can shift data portions having different sizes or granularities corresponding to a decoding matrix sub-matrix size although the rotation module 420 may have a fixed capacity per clock cycle. The shift control module 340 may direct the rotation module 420 to consider different portions of data processed by the rotation module 420 as different rotation units. Thereby, the shift control module 340 can direct the shifting of different portions of the data independently as discussed with respect to the rotate-left/right shifter 330. In some embodiments, the shift control function performed by the shift control module 340 of the early detection module 350 of
The data compare module 430 can receive, store, and compare the shifted decoded data from two or more different layer decoding operations. By comparing the shifted decoded data, the data compare module 430 can determine whether the decoded data from the two or more layer decoding operations are the same or different from one another. When the decoded data from the layer decoding operations are the same, the data compare module 430 can set one or more flags useable to determine whether the decoded data may be successfully decoded or decoded with a certain degree of confidence. The early detection module 350 can thereby determine to terminate decoding of the data early based at least in part on the result of the comparison by the data compare module 430.
The data compare module 430 can output shifted decoded data to the output buffer module 440. The output buffer module 440, in turn, can store and output the decoded data for processing, such as for shortening, re-aligning, or storing to other memory.
In some embodiments, the data compare module 430 can make the early termination decision for the early detection module 350 and selectively output decoded data to the output buffer module 440. For example, the data compare module 430 can determine to terminate decoding and output decoded data to the output buffer module 440 when (1) the parity check module 410 determines that decoded data and one or more layers of the decoding matrix satisfy a parity check equation and (2) the data compare module 430 determines that decoded data from two or more layer decoding operations are the same. In such cases, the data compare module 430 can indicate to the decoding units 320 to terminate decoding of the data unit and to begin decoding of a next data unit by setting one or more flags. Further, the parity check module 410 or the data compare module 430 can maintain a running count of a number of consecutive times that one or more determinations are satisfied in order to facilitate determining when to terminate decoding of the data unit.
Although not illustrated in
At state 505, the process 500 determines whether a decoded data unit from one layer decoding operation and a corresponding layer of a decoding matrix satisfy a parity check equation, such as Equation 4. The corresponding layer of the decoding matrix can be the layer of the decoding matrix used to decode the data unit during the one layer decoding operation. When the parity check equation is not satisfied (indicated as FAILPARITY in
At state 510, the process 500 determines whether a decoded data unit from a next layer decoding operation and a corresponding next layer of a decoding matrix satisfy a parity check equation, such as Equation 4, as well as whether the decoded data unit is the same as the decoded data unit from the previous layer decoding operation. The next layer decoding operation may or may not be from the same iteration of decoding the data unit using the decoding matrix. When the parity check equation is not satisfied, the process 500 moves to state 505. When the parity check equation is satisfied and the decoded data unit is not the same as the decoded data unit from the previous layer decoding operation (indicated as PASSPARITY AND FAILCODEWORD in
At state 515, the process 500 determines whether a decoded data unit from another next layer decoding operation and a corresponding another next layer of a decoding matrix satisfy a parity check equation, such as Equation 4, as well as whether the decoded data unit is the same as the decoded data unit from the previous layer decoding operation. The another next layer decoding operation may or may not be from the same iteration of decoding the data unit using the decoding matrix as one or more previous layer decoding operations. When the parity check equation is not satisfied, the process 500 moves to state 505. When the parity check equation is satisfied and the decoded data unit is not the same as the decoded data unit from the previous layer decoding operation, the process 500 moves to state 510. When the parity check equation is satisfied and the decoded data unit is the same as the decoded data unit from the previous layer decoding operation, the process 500 moves to state 520.
At state 520, the process 500 determines whether a decoded data unit from a following next layer decoding operation and a corresponding following next layer of a decoding matrix satisfy a parity check equation, such as Equation 4, as well as whether the decoded data unit is the same as the decoded data unit from the previous layer decoding operation. The following next layer decoding operation may or may not be from the same iteration of decoding the data unit using the decoding matrix as one or more previous layer decoding operations. When the parity check equation is not satisfied, the process 500 moves to state 505. When the parity check equation is satisfied and the decoded data unit is not the same as the decoded data unit from the previous layer decoding operation, the process 500 moves to state 510. When the parity check equation is satisfied and the decoded data unit is the same as the decoded data unit from the previous layer decoding operation, the process 500 ends and decoding of the data unit can be terminated.
The early detection unit can be configured to determine, for each layer decoding operation, whether (1) a parity check equation, such as Equation 4, is satisfied for the layer decoding operation and (2) the decoded data unit has not changed from the decoded data unit of the previous layer decoding operation. In some embodiments, when both conditions (1) and (2) are satisfied, the early detection unit can increment a counter to track satisfactions of the conditions (1) and (2). When one or both conditions are not satisfied, the early detection unit can set the counter to one or zero. If the counter reaches a threshold count value, the counter can thereby indicate that the data was successfully decoded or decoded with a threshold degree of confidence, and decoding of the data unit can stop and decoding of another data unit can begin. Although the use of a counter is illustrated with respect to the discussion of
The timing diagram 600 illustrates at least iterations i and i+1 of decoding a data unit. The decoding iteration i begins by performing one layer decoding operation of decoding the data unit using Layer 1 of the decoding matrix H to generate a decoded data unit C(i,1). Subsequently, the iteration i continues with individually, consecutively decoding of the data unit using Layers 2, 3, and 4. After completion of the iteration i, a next iteration i+1 of decoding the data unit begins.
Substantially in parallel with decoding the data unit using Layer 2 during iteration i to generate a decoded data unit C(i,2), early decoding termination detection begins with evaluating the decoded data unit C(i,1) and Layer 1. The parity check equation in the illustrated case is not satisfied, however, for Layer 1 (e.g., C(i,1)·H1T≠0), and the early decoding termination detection process continues and a counter can be set to zero. Substantially in parallel with decoding the data unit using Layer 3 during iteration i to generate a decoded data unit C(i,3) the early decoding termination detection continues with evaluating the decoded data unit C(i,2) and Layer 2. The parity check equation in this case is also not satisfied for Layer 2 (e.g., C(i,2)·H2T≠0), so the early decoding termination detection process continues and the counter can remain set to zero.
Continuing the example of the previous paragraph, substantially in parallel with decoding the data unit using Layer 4 during iteration i to generate a decoded data unit C(i,4) the early decoding termination detection continues with evaluating the decoded data unit C(i,3) and Layer 3. The parity check equation in this case is satisfied for the early decoding termination detection for Layer 3 (e.g., C(i,3)·H3T=0), so the early decoding termination detection process continues and the counter can be incremented to one. Substantially in parallel with decoding the data unit using Layer 1 during iteration i+1 to generate a decoded data unit C(i+1,1) the early decoding termination detection continues with evaluating the decoded data unit C(i,4) and Layer 4. The parity check equation in this case is satisfied for the early decoding termination detection for Layer 4 (e.g., C(i,4)·H4T=0) and the decoded data unit has not changed from the decoded data unit of the previous layer decoding operation (e.g., C(i,3)=C(i,4), so the early decoding termination detection process continues and the counter can be incremented to two. Substantially in parallel with decoding the data unit using Layer 2 during iteration i+1 to generate a decoded data unit C(i+1,2) the early decoding termination detection continues with evaluating the decoded data unit C(i+1,1) and Layer 1. The parity check equation in this case is satisfied for the early decoding termination detection for Layer 1 (e.g., C(i+1,1)·H1T=0) and the decoded data unit has not changed from the decoded data unit of the previous layer decoding operation (e.g., C(i,4)=C(i+1,1)), so the early decoding termination detection process continues and the counter can be incremented to three. Substantially in parallel with decoding the data unit using Layer 3 during iteration i+1 to generate a decoded data unit C(i+1,3) the early decoding termination detection continues with evaluating the decoded data unit C(i+1,2) and Layer 2. The parity check equation in this case is satisfied for the early decoding termination detection for Layer 2 (e.g., C(i+1,2)·H2T=0) and the decoded data unit has not changed from the decoded data unit of the previous layer decoding operation (e.g., C(i+1,1)=C(i+1,2)), so the counter can be incremented to four. In some embodiments, because the counter stores the value of four and the decoding coding H matrix has four layers, the decoded data unit can be determined to be successfully decoded at time Tok. Thus, another data unit can next be decoded using Layer 1 of the same or a different decoding matrix.
At block 705, the process 700 performs one layer decoding operation of decoding a data unit and sets a counter to zero. For example, the decoding units 320 of
Substantially in parallel to the actions at block 710, the process 700 determines whether a parity check equation is satisfied at block 715. For example, the parity check module 410 can determine whether the decoded data unit and one or more layers of the decoding matrix satisfy a parity check equation. If the parity check equation is not satisfied, the process 700 sets the counter to zero and continues decoding the data unit at block 720. On the other hand, if the parity check equation is satisfied, the process 700 moves to block 725 and determines whether the counter equals zero. If the counter equals zero, the process 700 moves to block 740 and increments the counter. If the counter does not equals zero, the process 700 determines at block 730 whether the decoded data unit changed from a previous layer decoding operation. For example, the data compare module 430 can compare the decoded data unit to the decoded data unit from the previous layer decoding operation. If the decoded data unit did change, the process 700 moves to block 735 and sets the counter to one and continues decoding of the data unit. If the decoded data unit did not change, the process 700 moves to block 740 and increments the counter.
At block 745, the process 700 determines whether the counter exceeds a threshold. The data compare module 430, for instance, can compare the counter and the threshold to determine whether the counter exceeds the threshold. The threshold can depend on a number of layers of the decoding matrix or a degree of certainty desired before terminating decoding of the data unit, among other factors. For example, if the decoding matrix has five layers, the threshold can be set to the number of decoding matrix layers minus one (i.e., four in this example) such that the parity check and the change in decoded data unit conditions are satisfied consecutively for the five layers of the decoding matrix during early termination detection. As another example, if the decoding matrix has four layers, the threshold can be set to the number of decoding matrix layers minus two (i.e., two in this example) such that decoding has been successfully completed with a certain degree of certainty (e.g., 50%, 75%, 90%, 99%, or 99.99% confidence, or the like). If the counter does not exceed the threshold, the process 700 moves to block 750 and continues decoding of the data unit. If the counter does exceed the threshold, the process 700 moves to block 755 and terminates decoding of the data unit.
At block 760, the process 700 determines whether a maximum number of iterations has been reached, such as a maximum number of layer decoding operations or decoding iterations for the data unit. If the maximum number of iterations has been reached, at block 755, the process 700 terminates decoding of the data unit. On the other hand, if the maximum number of decoding iterations has not been reached, the process 700 moves to blocks 710 and 715 and performs the actions of blocks 710 and 715 substantially in parallel. At block 710, the process 700 again performs another layer decoding operation of decoding the data unit. At block 715, the process 700 again determines whether the parity check equation is satisfied; however, the process 700 now determines whether the parity check equation is satisfied based on the decoded data unit from the previous another layer decoding operation of decoding the data unit at block 710.
The parity check module Z 410z can receive decoded data from the rotate-left/right shifter 330 via the optional connection illustrated between the rotate-left/right shifter 330 and the early detection module 350 in
For example, substantially in parallel for a current layer decoding operation, the parity check module A 410a can determine whether C(i,1)·H1T=0, and the parity check module Z 410z can determine whether C(i,1)·H2T=0, where C(i,1) refers to a decoded data unit from the current layer decoding operation and Hn refers to the nth layer of the decoding matrix. Substantially in parallel for a next consecutive layer decoding operation, the parity check module A 410a can determine whether C(i,2)·H2T=0, the parity check module Z 410z can determine whether C(i,2)·H3T=0, and the data compare module 430 can determine whether C(i,1)=C(i,2) where C(i,2) refers to a decoded data unit from the next consecutive layer decoding operation. Substantially in parallel for a following consecutive layer decoding operation, the parity check module A 410a can determine whether C(i,3)·H3T=0, the parity check module Z 410z can determine whether C(i,3)·H4T=0, and the data compare module 430 can determine whether C(i,2)=C(i,3), where C(i,3) refers to a decoded data unit from the following consecutive layer decoding operation.
This process can continue until early termination detection conditions are satisfied, such as, for instance, that (1) a parity check is satisfied for x number of layers and (2) a decoded data unit remains unchanged for x-2 consecutive layer decoding operations, where x is the total number of layers of a decoding matrix. In the example of the previous paragraph, if all of the stated determinations by the parity check module A 410a, the parity check module Z 410z, and the data compare module 430 are satisfied, the early detection module 350 can terminate decoding of the data unit for a decoding matrix having four layers. Moreover, although the example of the previous paragraph illustrates that parity checks are performed for the same iteration of decoding the data unit, the early detection module 350 of
The rotation module 420b can function similarly to the rotation module 420a. The rotation module 420b can receive decoded data from the decoding units 320 of
The parity check module B 410b can function similarly to the parity check module A 410a and the parity check module Z 410z. The parity check module B 410b can perform a parity check equation, using a parity check equations such as Equation 4, for a following consecutive layer of the decoding matrix.
For example, substantially in parallel for a current layer decoding operation, the parity check module A 410a can determine whether C(i,1)·H1T=0, the parity check module Z 410z can determine whether C(i,1)·H2T=0, and the parity check module B 410b can determine whether C(i,1)·H3T=0, where C(i,1) refers to a decoded data unit from the current layer decoding operation and Hn refers to the nth layer of the decoding matrix. Substantially in parallel for a next consecutive layer decoding operation, the parity check module A 410a can determine whether C(i,2)·H2T=0, the parity check module Z 410z can determine whether C(i,2)·H3T=0, the parity check module B 410a can determine whether C(i,2)·H4T=0, and the data compare module 430 can determine whether C(i,1)=C(i,2) where C(i,2) refers to a decoded data unit from the next consecutive layer decoding operation.
This process can continue until early termination detection conditions are satisfied, such as, for instance, that (1) a parity check is satisfied for x number of layers and (2) a decoded data unit remains unchanged for x-3 consecutive layer decoding operations, where x is the total number of layers of a decoding matrix. In the example of the previous paragraph, if all of the stated determinations by the parity check module A 410a, the parity check module Z 410z, the parity check module B 410b, and the data compare module 430 are satisfied, the early detection module 350 can terminate decoding of the data unit for a decoding matrix having four layers. Moreover, although the example of the previous paragraph illustrates that parity checks are performed for the same iteration of decoding the data unit, the early detection module 350 of
Those skilled in the art will appreciate that in some embodiments, other suitable error correction mechanisms can be used in addition to and/or in place of LDPC coding. For example, Hamming coding, turbo coding, BCH coding, and the like can be used. Further, any suitable unit or grouping of data, such as octet, nibble, word, byte, etc., can be used in addition to or in place of a bit of user data. Moreover, the actual steps taken in the disclosed processes, such as the processes illustrated in
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the protection. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the protection. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the protection. For example, the various components illustrated in the figures may be implemented as software and/or firmware on a processor, ASIC/FPGA, or dedicated hardware. Also, the features and attributes of the specific embodiments disclosed above may be combined in different ways to form additional embodiments, all of which fall within the scope of the present disclosure. Although the present disclosure provides certain preferred embodiments and applications, other embodiments that are apparent to those of ordinary skill in the art, including embodiments which do not provide all of the features and advantages set forth herein, are also within the scope of this disclosure. Accordingly, the scope of the present disclosure is intended to be defined only by reference to the appended claims.
This application claims benefit to U.S. Provisional Patent Application No. 61/817,421 (Atty. Docket No. T6428.P) entitled “DECODER HAVING EARLY DECODING TERMINATION DETECTION” filed on Apr. 30, 2013, and is a continuation-in-part of U.S. patent application Ser. No. 13/742,248 (Atty. Docket No. T5896) entitled “DECODER HAVING EARLY DECODING TERMINATION DETECTION” filed on Jan. 15, 2013, which claims benefit to U.S. Provisional Patent Application No. 61/738,732 (Atty. Docket No. T5896.P) entitled “DECODER HAVING EARLY DECODING TERMINATION DETECTION” filed on Dec. 18, 2012; the disclosures of these applications are hereby incorporated by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
61817421 | Apr 2013 | US | |
61738732 | Dec 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13742248 | Jan 2013 | US |
Child | 13918400 | US |