This application claims the benefit of Russian Application No. 2011128806, filed Jul. 13, 2011 and is hereby incorporated by reference in its entirety.
The present invention relates to block encoders generally and, more particularly, to a method and/or apparatus for implementing a variable parity encoder.
A conventional hardware implementation of a non-reconfigurable Bose, Ray-Chaudhuri, Hocquenghem (i.e., BCH) encoder or a Reed-Solomon (i.e., RS) encoder has a start signal that tells the encoder when a new data word is ready to be encoded. Most implementations of BCH/RS encoders do not allow changes to the parameters of the BCH/RS code, such as a maximum error limit. However, modern applications of BCH/RS codes in solid state disk flash controllers are specified to change some parameters at runtime. To achieve a fast speed, a reconfiguration time of the reconfigurable controllers should be as short as possible. Hence, the reconfigurable encoders often have a configuration interface that sets the encoder into a current configuration. The configuration interface can set the maximal error limit or the number of parity bits inserted into the codes.
A typical BCH/RS encoder is conventionally implemented using a linear feedback shift register (i.e., LFSR). If the maximum error limit “T” is fixed, the coefficients of the LFSR are constants. Thus, constant multipliers are used to implement the LFSR instead of ordinary multipliers in a Galois Field (i.e., GF). The area of a constant GF-multiplier is less than the area of non-constant GF-multiplier.
Reconfigurable BCH/RS encoders can produce different numbers of parity symbols depending on the maximum error limit T. Therefore, the coefficients of the LFSR depend on the maximum error limit T and are not constants. As such, non-constant GF multipliers are commonly implemented and so significantly increase the area of the encoder.
An existing scheme that works around the non-constant multipliers uses a reconfigurable encoder as a wrapper around a non-reconfigurable encoder. For relatively small Galois Fields, the wrapper approach has an area approximately twice as large as the non-reconfigurable designs. However, the wrapper approach still suffers from the use of some non-constant multipliers and even Galois Field inversion, which can be difficult to implement with large Galois Fields. Furthermore, the wrapper encoder also is not reconfigurable on-the-fly.
In the case of binary BCH encoders, a standard implementation of a non-reconfigurable encoder performs multiplication by a constant binary matrix in GF(2). The implementation is relatively simple and area efficient (i.e., the designs only have trees of XOR gates). To implement a reconfigurable binary BCH encoder using the same scheme, the coefficients of matrixes heavily depend on the configuration data and are not easy to calculate.
It would be desirable to implement a variable parity encoder.
The present invention concerns an apparatus generally having a plurality of first circuits and a second circuit. The first circuits may be configured to (i) generate a plurality of intermediate bits by dividing a plurality data bits by a plurality of minimal polynomials of an encoding along a first path and (ii) generate a plurality of parity bits by multiplying the intermediate bits by the minimal polynomials along a second path. A number of the parity bits may be variable based on a configuration signal. The second circuit may be configured to (i) delay the data bits and (ii) generate a plurality of code bits by appending the parity bits to a last of the data bits.
The objects, features and advantages of the present invention include providing a variable parity encoder that may (i) encode BCH codes, (ii) be implemented in solid state disk flash controllers, (iii) be implemented in hard drive controllers, (iv) change configuration parameters at run time, (v) reconfigure in less than three clock cycles, (vi) be implemented in less silicon area than conventional designs, (vii) reconfigure a maximum error limit for the codes, (viii) encode binary BCH codes and/or (ix) encode Reed-Solomon codes.
These and other objects, features and advantages of the present invention will be apparent from the following detailed description and the appended claims and drawings in which:
Bose, Ray-Chaudhuri, Hocquenghem (e.g., BCH) codes are generally a powerful class of multiple error-correcting codes. The codes may include two important subclasses: binary BCH codes and Reed-Solomon (e.g., RS) codes. The codes generally have a wide range of applications, such as optical and wireless communications, magnetic recording systems and the like. A systematic BCH/RS encoder may convert input data into code words that, along with the original input data bits, includes a number of parity bits (or symbols). Every BCH/RS code may have a parameter, called a maximum error limit “T”, which defines an error correction capability of the code. The maximum error limit may also define a redundancy of the code (e.g., the number of parity symbols). Most common hardware implementations of BCH/RS encoders/decoders deal with a fixed maximum error limit. The fixed maximum error limit generally means that the number of parity symbols is fixed and cannot be changed at runtime. However, in modern storage systems, such as controllers for a multi-level cell (e.g., MLC) flash memory, a single encoder/decoder may be specified to support many different maximum error limits, which implies a different number of parity symbols. Therefore a BCH/RS encoder/decoder used in controllers of such systems should be configurable and reconfiguration time should be as short as possible.
Some embodiments of the present invention generally provide a hardware and/or software scheme for a low-area BCH/RS encoder with on-the-fly reconfiguration. The on-the-fly reconfiguration means that a reconfiguration of the codec may be achieved in a small number of clock cycles (e.g., less than three clock cycles). Some embodiments may have a regular structure and may be conceptually simple. The scheme generally covers both binary BCH codes and RS codes. The scheme may also be used with any general BCH code. Some embodiments may be applied in modern applications of BCH/RS codes such as a solid-state disk (e.g., SSD) flash controllers and hard-drive controllers that change configuration parameters at runtime. Some implementations of the present invention may have both a low area and a small number of reconfiguration clock cycles.
Referring to
A data input signal (e.g., DATA_IN) generated by an external source may be received by the apparatus 100a at a port 102. A data enable signal (e.g., DATA_EN) also generated by the external source may also be received by the apparatus 100a at a port 104. A strobe signal (e.g., STROBE_IN) may be received at a port 106 of the apparatus 100a from the external source. The apparatus 100a may generate and present a data output signal (e.g., DATA_OUT) at a port 108. Another strobe signal (e.g., STROBE_OUT) may be generated and presented from the apparatus 100a at a port 110. A configuration signal (e.g., CONF) may be received at a port 112 of the apparatus 100a. The apparatus 100a may receive and error number signal (e.g., ERR_NUM) at a port 114. A clock signal (e.g., CLK) may also be received by the apparatus 100a at a port 116.
The signal DATA_IN may be used for feeding data (information) words into the apparatus 100a. The data words may have a width of several bits (e.g., B bits) which are received by the port 102 of the apparatus 100a each cycle of the signal CLK. The signal DATA_EN may be set to an active state (e.g., a high or logical one condition) while the data in the signal DATA_IN is valid and an inactive state (e.g., a low or logical zero condition) while the signal DATA_IN does not contain valid data. The signal DATA_EN may alternately indicate when the data words are and are not being feed into the apparatus 100a. The signal STROBE_IN may be used to indicate when a current set of B bits at the port 102 are ready. If the signal STROBE_IN transitions to, or is in the active state, the next B bits of the data word in the signal DATA_IN may be recorded by the apparatus 100a. If the signal transitions, or is in the inactive state, the signal DATA_IN may be ignored. The signal CONF may be used to indicate a configuration cycle that sets a current error limit (e.g., T′). The signal ERR_NUM may be used to convey the current error limit T′. A value of the current error limit T′ may be set into an internal encoder register of the apparatus 100a when the signal CONF is in the active state. The signal DATA_OUT may present the code words created by the apparatus 100a from the data words. The port 108 may be a multi-bit (e.g., B bit) port where B-bit portions of the code words are presented on each cycle of the signal CLK. The signal STROBE_OUT may be generated and presented by the apparatus 100a to indicate that the content of the signal DATA_OUT is a next portion of the current output code word.
A general BCH code may be established over a Galois Field GF(q), where q=2M may indicate a number of elements of the finite field and M is a positive integer. A constructive minimal distance (e.g., 2T+1) is generally defined as a set of all polynomials C(X)=C0+C1X+ . . . +CN-1X(N-1) with coefficients in GF(q) such that C(αH)=C(α(H+1))= . . . =C(α(H+2T-1))=0, where α is an N-th root of unity in an extension field GF(qM). Parameter M is generally a degree of this extension and parameter H may be a fixed number. Such codes may correct up to T errors. In practice, primitive narrow-sense BCH codes are commonly used where H=1 and N=qM−1. Moreover, in many applications, two types of narrow-sense primitive BCH codes are generally used: binary BCH codes (e.g., q=2) and Reed-Solomon codes (e.g., M=1). A BCH code may be considered as a cyclic code with a generator polynomial G(X)=G1(X) . . . GS(X), where G1(X), . . . , GS(X) may be minimal polynomials over GF(q) for elements αH, α(H+1), . . . , α(H+2T-1) from the extension field GF(qM). Therefore, a set of code words may be defined as the set of all polynomials C(X)=C0+C1X+ . . . +C(N-1)X(N-1) such that C(X) mod G(X)=0. Some elements from the list αH, α(H+1), . . . , α(H+2T-1) may have the same minimal polynomial (e.g., S may be smaller than 2T). In the case of RS codes, S=2T and G1(X)=X−αH, . . . , G2T(X)=X−α(H+2T-1). In the case of binary BCH codes, S may be approximately the same value as T and a degree of each polynomial G1(X), . . . , GS(X) is approximately M.
An encoder for a BCH code generally transforms data words (e.g., information to be transmitted through the channel) D=(D0, D1, . . . , D(K-1))εGF(q)K into code words C=(C0, C1, . . . , C(N-1))εGF(q)N of the BCH code. A method for obtaining the transformation is as follows. Let the data words be represented by a polynomial D(X)=D0+ . . . +D(K-1)X(K-1) and the corresponding code words represented by a polynomial C(X)=C0+ . . . +C(N-1)X(N-1). The encoder generally performs the transformation D(X)→C(X)=X(N-K)D(X)+P(X), where polynomial P(X)=X(N-K)D(X) mod G(X). Therefore, C(N-K)=D0, C(N-K+1)=D1, . . . , C(N-1)=D(K-1) and the encoder may be systematic (e.g., the code words generally contain unaltered data words and some additional symbols called parity symbols). The parity symbols may be considered as coefficients of the polynomial P(X).
Referring to
A signal (e.g., DIN) may be received by the circuit 120 at the circuit 126w and the circuit 128. A signal (e.g., DOUT) may be presented from the circuit 128.
Each circuit 122a-122w may implement a Galois Field multiplier circuit. Each circuit 122a-122w may be operational to multiply the value received from the circuit 130 by a respective constant value coefficient (e.g., G0, G1, . . . , G(N-K−1)). A resulting product may be presented to the respective circuits 124a and 126a-126v.
Each circuit 124a-124w may implement a register circuit. The circuits 124a-124w may be operational to buffer (or delay) the data generated by the respective circuit 122a and 126a-126v for a clock cycle of the signal CLK. The buffered data may be presented to the respective circuits 126a-126w.
Each circuit 126a-126w may implement an adder circuit. The circuits 126a-126v are generally operational to generate a sum of the product values generated by the respective circuit 122b-122w and the buffered values from the respective circuits 124a-124v. The resulting sums calculated by the circuits 126a-126v may be presented to respective next circuits 124b-124w. The circuit 126w is generally operational to generate a sum of the data in the signal DIN and the buffered value from the circuit 124w. The sum calculated by the circuit 126w may be presented to a “B” contact of the circuit 128 and an “A” contact of the circuit 130.
The circuit 128 may implement a switch circuit. The circuit 128 may be operational to present as the signal DOUT a selective one of the signal DIN while in the “A” position and the signal generated by the circuit 126w while in the “B” position.
The circuit 130 may implement another switch circuit. The circuit 130 may be operational to present to data to the circuits 122a-122w a selective one of the output of the circuit 126w while in the “A” position and a null (e.g., zero) value while in the “B” position.
Calculations of the symbols in the signal DOUT may be performed by the circuit 120, where G(X)=G0+G1X+ . . . +G(N-K−1)X(N-K−1)+X(N-K). The circuit 120 generally operates in N clock cycles as follows. During an initial K clock cycles, a sequence of data symbols D(K−1), D(K−2), . . . , D0 may be received in the signal DIN while both switch 1 and switch 2 are in the “A” position. Hence, in the initial K clock cycles, the signal DOUT may convey the unaltered data symbols D(K−1), D(K−2), . . . , D0. At the same time that the data symbols are being clocked through, the circuits 122a-126w generally calculate coefficients of the polynomial P(X)=X(N-K)D(X) mod G(X), which may be the states of the delay elements (e.g., circuits 124a-124w) of the circuit 120 after the initial K clock cycles. The switch 1 and the switch 2 may then be moved into “B” position to extract the coefficients and the signal DATA_IN may be replaced with zeroes during the remaining N-K clock cycles. During the initial K clock cycles, the circuit 120 may calculate not only the remainder P(X)=X(N-K)D(X) mod G(X) but also the quotient Q(X)=X(N-K)D(X) div G(X). The quotient Q(X) may be calculated symbol by symbol through port “A” of switch 2 during first K clock cycles. Hence, X(N-K)D(X)=G(X)Q(X)+P(X) and therefore obtain that the code word polynomial may be defined by formula 1 as follows:
C(X)=X(N-K)D(X)+P(X)=G(X)Q(X). (1)
Referring to
The signal DATA_IN may be received by the circuit 140. An intermediate signal (e.g., INT) may be generated by the circuit 140 and transferred to the circuit 142. The circuit 142 may generate and present the signal DATA_OUT.
From formula 1, calculation of the code word polynomial C(X) from the data polynomial D(X) generally involves calculating the quotient Q(X)=X(N-K)D(X) div G(X) and then multiply the quotient Q(X) by the polynomial G(X). The quotient Q(X) may be calculated by the circuit 140 and presented in the signal INT. The circuit 142 may receive the quotient Q(X) and calculate the code word C(X), which is presented in the signal DATA_OUT.
The circuit 140 may implement a variable-length linear feedback shift register circuit. The circuit 140 is generally operational to calculate the quotient Q(X) based on the data word D(X) received in the signal DATA_IN. In some embodiments, the circuit 140 may implement one or more of the circuits 120 arranged in a serial order. Other designs may be implemented to meet the criteria of a particular application.
The circuit 142 may implement a variable-length multiplication circuit. The circuit 142 is generally operational to calculate the code words C(X) by multiplying the quotient Q(X) received in the signal INT by the generator polynomial G(X) (e.g., G1(X), G2(X), . . . , GS(X)). The code words may be presented in the signal DATA_OUT.
The circuit 140 generally calculates the quotient Q(X)=X(N-K)D(X) div G(X) using port “B” of switch 1 (see circuit 120) as an output path. The circuit 142 may perform a series of multiplications by the generator polynomial G(X). For proper operation of the circuit 142, the circuit 140 may also present a series of zero values in the signal INT after transferring the quotient Q(X).
Referring to
Each circuit 152a-152w may implement a Galois Field multiplier circuit. Each circuit 152a-152w may be operational to multiply the quotient Q(X) received from the signal MIN by a respective constant value (e.g., G0, G1, . . . , G(N-K−1)). A resulting product may be presented to the respective circuits 154a and 156a-156v.
Each circuit 154a-154w may implement a register circuit. The circuits 124a-124w may be operational to buffer (or delay) the values generated by the respective circuit 152a and 156a-156v for a clock cycle of the signal CLK. The buffered data may be presented to the respective circuits 156a-156w.
Each circuit 156a-156w may implement an adder circuit. The circuits 156a-156v are generally operational to generate a sum of the product values generated by the respective circuits 152b-152w and the buffered values from the respective circuits 154a-154v. The resulting sums calculated by the circuits 156a-156v may be presented to respective next circuits 154b-154w. The circuit 156w may be operational to generate a sum of the data in the signal MIN and the buffered value from the circuit 154w. The sum calculated by the circuit 156w may be presented to the circuit 158.
The circuit 158 may implement a multiplexer circuit. The circuit 158 is generally operational to generate the signal MOUT by selectively multiplexing the signal MIN and the sum (e.g., G(X)Q(X)) generated by the circuit 156w.
Multiple copies of the circuit 120 arranged in an output-to-input series may implement the circuit 140. Multiple copies of the circuit 150 arranged in an output-to-input series may implement the circuit 142. The switches 1 in the circuit 140 and the circuit 158 in the circuit 142 may provide support for variable redundancy BCH codes. Where the switch 1 is in the “A” position, an individual circuit 120 may pass the data word D(X) through without modification. Where the circuit 158 multiplexes from the signal MIN to the signal MOUT, an individual circuit 150 may pass the quotients Q(X) through without modification.
Referring to
The generator polynomial G(X) may define the minimal polynomials G1(X), G2(X), . . . , GS(X) over GF(q) for elements αH, α(H+1), . . . , α(H+2T-1) from the extension field GF(qM). For a fixed parameter T, the apparatus 100a may support any general BCH code with a maximal error limit T′ which is no more than T. For any particular T′, a corresponding generator polynomial may be defined as G′ (X)=G1(X)G2(X) . . . GS′(X), where S′≦S. For any i=1, 2, . . . , S, a maximal value of T′ when a polynomial Gi(X) occurs in the generator polynomial G′(X)=G1(X)G2(X) . . . GS′(X) may be denoted as Ti.
Each circuit 120a-120s generally implements a copy of the circuit 120 using the coefficients from a respective minimal polynomial G1(X), G2(X), . . . , GS(X). The circuits 120a-120s may be connected in series and share the signals DIN and DOUT between adjoining circuits 120a-120s. The switch 1 in each circuit 120a-120s may be controlled by a respective circuit 160a-160s.
Each circuit 150a-150s generally implements a copy of the circuit 150 using the coefficients from a respective minimal polynomial G1(X), G2(X), . . . , GS(X). The circuits 150a-150s may be connected in series and share the signals MIN and MOUT between adjoining circuits 150a-150s. The circuit 158 in each circuit 150a-150s may be controlled by a respective circuit 162a-162s.
Each circuit 160a-160s may implement a compare circuit. The circuits 160a-160s are generally operational to compare an internal threshold (e.g., thresholds T1-TS, where T1<T2< . . . <TS with the programmable error limit value T′ in the signal ERR_NUM. If the value T′ is not greater than a threshold Tj (for j=1, 2, . . . , S), the circuit 160j may command the corresponding circuit 120j to operate as a divider circuit. If the value T′ is greater than the threshold Tj, the switch 1 in the circuit 120j may stay in the “A” position and circuit 120j passes the data through without modification (e.g., the signal DOUT=DIN).
Each circuit 162a-162s may implement a compare circuit. The circuits 162a-162s are generally operational to compare an internal threshold (e.g., thresholds T1-TS, where T1<T2< . . . <TS with the programmable error limit value T′ in the signal ERR_NUM. If the value T′ is not greater than a threshold Tj (for j=1, 2, . . . , S), the circuit 162j may command the corresponding circuit 150j to operate as a multiplier circuit. If the value T′ is greater than the threshold Tj, the circuit 158 in the circuit 150j may pass the data through without modification (e.g., the signal MOUT=MIN).
Operation of the circuits 160a-160s and 162a-162s generally enables the apparatus 100a to reconfigure the encoding operation to any number for the error limit value T′. The reconfiguration may take place on-the-fly since the circuits 120a-120s, 150a-150s, 160a-160s and 162a-162s may respond to a change in the value carried by the signal ERR_NUM within a single clock cycle of the signal CLK.
The apparatus 100a generally uses the fact that two sequential schemes that perform a multiplication by f(x) and a subsequent multiplication by g(x) may produce the same results as a multiplication by f(x)g(x). Furthermore, a result of work for two sequential schemes that perform a division by f(x) and a subsequent division by g(x) may produce the same results as a division by f(x)g(x). Therefore, after comparing the current error limit T′ with the thresholds T1-TS, the apparatus 100a may calculate the code word C(X) based on the current generator polynomial G′(X)=G1(X), G2(X), . . . , GS′(X). In some embodiments, an increase in performance may be achieved by adding pipeline registers between the individual circuits 120a-120s and 150a-150s.
Referring to
The apparatus 100b generally comprises multiple blocks (or circuits) 180a-180n, a block (or circuit) 182 and a block (or circuit) 184. The circuits 180a-184 may represent modules and/or blocks that may be implemented as hardware, software, a combination of hardware and software, or other implementations.
The signal DATA_IN may be received by the circuits 180a and 182. The signal STROBE_IN may be received by the circuit 182. The circuit 182 may generate the signal DATA_OUT. The signal STROBE_OUT may also be generated and presented by the circuit 182. The circuit 180a may also generate an internal signal (e.g., DATA_OUT_INT) which is received by the circuit 182. The circuit 184 may generate multiple signals (e.g., EN_WIRE[0]-EN_WIRE[N×X−1]) which are received by the circuits 180a-180n. The circuit 184 may also generate multiple signals (e.g., EN_D[0]-EN_D[N−2]) which are also received by the circuits 180a-180n. The circuit 184 may generate multiple signals (e.g., DATA_EN_OUT[0]-DATA_EN_OUT[N]) which are received by the circuits 180a-180n. Furthermore, the circuit 184 may generate a signal (e.g., BLOCK_EN_Z) which is received by the circuit 182.
Referring to
The circuit 184 may fix the signal DATA_OUT_EN[0] to a logical high (or one) state. Each circuit 192a-192n may generate a corresponding signal DATA_EN_OUT[1]-DATA_EN_OUT[POOL_NUM]. Each circuit 184a-184n may receive a signal (e.g., I). The signal CONF may be received by the circuits 184a-184n at an enable (e.g., EN) port. Each circuit 194 may generate a respective signal BLOCK_EN_Z[i] which is received by a corresponding circuit 190b-190n and the circuit 182.
Each circuit 190a-190n may implement a Boolean logical AND gate. The circuit 190a may be operational to logically AND the signal DATA_EN_OUT[0] and a logical one value. Each circuit 190b-190n may be operational to logically AND a respective signal DATA_EN_OUT[i] and a respective signal BLOCK_EN_Z[i].
Each circuit 192a-192n may implement a register circuit. The circuits 192a-192n may be operational to buffer (or delay) the signals generated by the respective circuit 190a-190n for a clock cycle of the signal CLK. The buffered data may be presented to the next circuit 190b-190n in series.
Each circuit 194 may implement a register circuit. The circuits 194 may be operational to buffer (or delay) the signal ERR_NUM where I<ERR_NUM and the signal CONF is in the active condition. The buffered data may be presented in the respective signals BLOCK_EN_Z[0]-BLOCK_EN_Z[(POOL_NUM−1)×BLOCK_LEN)].
The circuit 184 may also generate several other signals as follows:
EN_WIRE[i]=a clock cycle delayed (BLOCK_EN_Z[i] AND EN_D[i/BLOCK_LEN]) for i=0, 1, . . . , GEN_POL_DEG−1.
LAST_POOL[i]=BLOCK_EN_Z[i•BLOCK_LEN] AND (NOT(BLOCK_EN_Z[(i+1)•BLOCK_LEN])) for i=0, 1, . . . , POOL_NUM−2.
LAST_POOL[POOL_NUM−1]=BLOCK_EN_Z[(POOL_NUM−1)•BLOCK_LEN].
LAST_BACK[i]=LAST_POOL[i] AND (DATA_EN_OUT[i+1] OR FB_OUT[i]) for i=0, 1, . . . , POOL_NUM−1.
BACK_EN[i]=NOT(DATA_EN_OUT[i] AND (LAST_BACK[i] OR FB_OUT[i+1])) for i=0, 1, . . . , POOL_NUM−2.
BACK_EN[POOL_NUM−1]=NOT(DATA_EN_OUT[POOL_NUM−1] AND (LAST_BACK[POOL_NUM−1])).
BACK_EN [i]=a clock cycle delayed (FB_OUT[i]).
EN_D[i]=(DATA_EN_OUT or LAST_POOL[i]) ? EN_OUT[i]: (BACK_EN [i] AND EN_OUT[2•POOL_NUM−2−i] for i=0, 1, . . . , POOL_NUM−1 wherein A?B:C means if A is true, return B else return C.
LAST_POOL[i]=1 if and only if (iff) the pool number i is the last active pool, which depends on ERR_NUM.
LAST_BACK[i]=1 if and only if pool number i is the last pool and the current cycle is an initial cycle when input data is not available.
BACK_EN[i]=1 if and only if the backward phase reaches the input of pool number i.
BACKWARD_OUT[i] is a delayed version of the previews wire.
EN_D[i]=1 if and only if pool number i is active.
EN_WIRE[i]=1 if and only if the enable of the registers of pool number i is 1.
DATA_EN_OUT[i]=1 if and only if the forward phase reaches pool number i.
BLOCK_EN_Z[i]=1 if and only if the block number i is active.
Referring to
A signal (e.g., Q_IN) may be received by the circuit 200. Another signal (e.g., P_IN) may also be received by the circuit 200. The signal DATA_EN_OUT[i−1] may be received as a control signal by the circuit 200. The signal DATA_EN_OUT[i] may be received by the circuits 208a-208b. The signals EN_WIRE[i−1]-EN_WIRE[i] may be received by the circuits 208a-208b respectively. A signal (e.g., Q_OUT) may be generated by the circuit 210b.
Referring to
The circuit 200 may implement a multiplexer circuit. The circuit 200 is generally operational to multiplex the signals P_IN and Q_IN to the circuit 202. Control of the multiplexing may be provided by the signal DATA_EN_OUT[i−1]. When the data words in the signal Q_IN are traversing through the circuit 180a-180n in a backwards direction, the circuit 200 may multiplex the signal Q_IN to the circuit 202. When the parity words in the signal P_IN are traversing through the circuits 180a-180n in the forward direction, the circuit 200 may multiplex the signal P_IN to the circuit 202.
The circuit 202 may implement a register circuit. The circuit 202 may buffer (or delay) the signal received from the circuit 200 by a clock cycle of the signal CLK. The buffering may be enabled/disabled based on a signal (e.g., EN_D).
Each circuit 204a-204b may implement a pool block. The circuits 204a-204b are generally operational to selectively (i) multiply the data words by a corresponding minimal polynomial and (ii) divide the quotients by the corresponding minimal polynomial. In the backwards direction, each circuit 204a-204b may perform the same functionality as the corresponding circuits 120a-120b in
Each circuit 206a-206b may implement a forward block. The circuits 206a-206b are generally operational to generate a value (e.g., P) by summing values D and Z (e.g., D=(D0, . . . , D(b-1)) and Z=(Z0, . . . , Z(w-1)). Operation of the circuits 206a-206b may be defined by formula 2 as follows:
The polynomial F=F0+F1X+ . . . +FmXm may be a polynomial that corresponds to the current pool block, “m” may be a degree and parameter “b” may be a bus width matching the data width B of the port 102.
Each circuit 208a-208b may implement a linear feedback shift register circuit (see
Each circuit 210a-210b may implement a backwards block The circuits 210a-210b are generally operational to generate a value (e.g., Q) by summing the values D and Z. Operation of the circuits 210a-210b may be defined by formula 3 as follows:
where Xj=Dj=Z(w-1-j), j=0, . . . , w−1, Xj=Dj and i≧w and
and
Uii=1 and Uil=0 for l>i.
The example implementation of the circuit 180 as illustrated generally comprising two circuits 204a-204b (e.g., POOL_LEN=2). A generalization to an arbitrary pool length is straightforward. Other numbers of circuits 204a-204b may be implemented to meet the criteria of a particular application.
Referring to
The circuit 182 generally comprises multiple blocks (or circuits) 220a-220e, multiple blocks (or circuits) 222a-222b, a block (or circuit) 224, multiple blocks (or circuits) 226a-226e and multiple blocks (or circuits) 228a-228b. The circuits 220a-228b may represent modules and/or blocks that may be implemented as hardware, software, a combination of hardware and software, or other implementations.
The signal DATA_IN may be received by the circuits 220a, 222a and 222b. The signal DATA_OUT_INT may be received by the circuit 224. The signal DATA_OUT may be generated and presented by the circuit 224. The signal STROBE_IN may be received by the circuits 226a, 228a and 228b. The signal STROBE_OUT may be generated and presented by the circuit 226e.
Each circuit 220a-220e may implement a register circuit. The circuits 220a-220e may be operational to buffer (or delay) the signals generated by the respective previous circuit 220a-220d for a clock cycle of the signal CLK. The buffered data may be presented to the next circuit 220b-220e. A total number of circuits 220a-220e may match the total number of block pools (e.g., circuits 204a) in the apparatus 100b.
Each circuit 222a-222b may implement a multiplexer circuit. The circuits 222a-222b may be operational to selectively bypass or not bypass a corresponding set of the circuits 220a-220d. Control of the circuits 222a-222b may be provided by the signals BLOCK_EN_Z[(POOL_NUM−1)×BLOCK_LEN] and BLOCK_EN_Z[(POOL_NUM−2)×BLOCK_LEN] respectively. The total number of circuits 222a-222b may be defined to divide the circuits 220a-220e into the same number of pools in the apparatus 100b.
The circuit 224 may implement a multiplexer circuit. The circuit 224 may be operational to generate the signal DATA_OUT by selectively multiplexing the signal from the last circuit 220e and the signal DATA_OUT_INT. Control of the multiplexing may be provided by a signal (e.g., FB_OUT[0]).
Each circuit 226a-226e may implement a register circuit. The circuits 226b-226e may be operational to buffer (or delay) the signals generated by the respective previous circuit 226a-226d for a clock cycle of the signal CLK. The buffered data may be presented to the next circuit 226b-226e. A total number of circuits 226a-226e may match the total number of block pools in the apparatus 100b.
Each circuit 228a-228b may implement a multiplexer circuit. The circuits 228a-228b may be operational to selectively bypass or not bypass a corresponding set of the circuits 226a-226d. Control of the circuits 228a-228b may be provided by the signals BLOCK_EN_Z[(POOL_NUM−1)×BLOCK_LEN] and BLOCK_EN_Z[(POOL_NUM−2)×BLOCK_LEN] respectively. The total number of circuits 228a-228b may be defined to divide the circuits 226a-226e into the same number of pools in the apparatus 100b.
An operation of the apparatus 100b generally has multiple (e.g., two) phases: a forward phase and a backwards phase. During the forward phase, the apparatus 100b may calculate Q(X)=X(N-K)D(X) div G(X). During the backward phase, the apparatus 100b may calculate C(X)=G(X)Q(X). To perform the calculations, a number of active pool blocks (e.g., the circuits 204a-204b) corresponding to the polynomials G1(X), . . . , GS′(X) may match the current error number value T′.
Referring to
The signal EN_WIRE[i] may be received by each of the circuits 242a-242p. The signal DATA_EN_OUT may be received by the circuit 244 as a control signal. The vale D and the value Q may be received by the circuit 244. The value Z may be buffered and presented from the circuit 242p.
The circuits 240a-240p may implement adder circuits. The circuits 240b-240p may be operational to generate a sum value by adding the value received from the circuit 244 to a previous value received from a previous circuit 240a-240p-1. The circuit 240a may add the value received from the circuit 244 to a null (zero) value. Each sum may be presented to the next circuit 240b-240p.
Each circuit 242a-242p may implement a register circuit. The circuits 242a-242p may be operational to buffer (or delay) the sums generated by the respective circuit 240a-240p for a clock cycle of the signal CLK. The circuits 242a-242p−1 may present the buffered data to the next circuits 240b-240p. The circuit 242p may present the buffered value Z to the circuits 206a and 210a (see
The circuit 244 may implement a multiplexer circuit. The circuit 244 is generally operational to selectively multiplex the value D or the value Q to the circuits 240a-240p. Control of the multiplexing may be provided by the signal DATA_EN_OUT.
The functions performed by the diagrams of
The present invention may also be implemented by the preparation of ASICs (application specific integrated circuits), Platform ASICs, FPGAs (field programmable gate arrays), PLDs (programmable logic devices), CPLDs (complex programmable logic device), sea-of-gates, RFICs (radio frequency integrated circuits), ASSPs (application specific standard products), one or more monolithic integrated circuits, one or more chips or die arranged as flip-chip modules and/or multi-chip modules or by interconnecting an appropriate network of conventional component circuits, as is described herein, modifications of which will be readily apparent to those skilled in the art(s).
The present invention thus may also include a computer product which may be a storage medium or media and/or a transmission medium or media including instructions which may be used to program a machine to perform one or more processes or methods in accordance with the present invention. Execution of instructions contained in the computer product by the machine, along with operations of surrounding circuitry, may transform input data into one or more files on the storage medium and/or one or more output signals representative of a physical object or substance, such as an audio and/or visual depiction. The storage medium may include, but is not limited to, any type of disk including floppy disk, hard drive, magnetic disk, optical disk, CD-ROM, DVD and magneto-optical disks and circuits such as ROMs (read-only memories), RAMS (random access memories), EPROMs (electronically programmable ROMs), EEPROMs (electronically erasable ROMs), UVPROM (ultra-violet erasable ROMs), Flash memory, magnetic cards, optical cards, and/or any type of media suitable for storing electronic instructions.
The elements of the invention may form part or all of one or more devices, units, components, systems, machines and/or apparatuses. The devices may include, but are not limited to, servers, workstations, storage array controllers, storage systems, personal computers, laptop computers, notebook computers, palm computers, personal digital assistants, portable electronic devices, battery powered devices, set-top boxes, encoders, decoders, transcoders, compressors, decompressors, pre-processors, post-processors, transmitters, receivers, transceivers, cipher circuits, cellular telephones, digital cameras, positioning and/or navigation systems, medical equipment, heads-up displays, wireless devices, audio recording, storage and/or playback devices, video recording, storage and/or playback devices, game platforms, peripherals and/or multi-chip modules. Those skilled in the relevant art(s) would understand that the elements of the invention may be implemented in other types of devices to meet the criteria of a particular application.
As would be apparent to those skilled in the relevant art(s), the signals illustrated in
While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2011128806 | Jul 2011 | RU | national |
Number | Name | Date | Kind |
---|---|---|---|
5444719 | Cox et al. | Aug 1995 | A |
6631488 | Stambaugh et al. | Oct 2003 | B1 |
6978415 | Weng | Dec 2005 | B1 |
8176396 | Dong et al. | May 2012 | B2 |
8176397 | Panteleev et al. | May 2012 | B2 |
8181096 | Andreev et al. | May 2012 | B2 |
8286060 | Panteleev et al. | Oct 2012 | B2 |
8365054 | Gasanov et al. | Jan 2013 | B2 |
8397143 | Neznanov et al. | Mar 2013 | B2 |
8484541 | Anholt | Jul 2013 | B1 |
8527851 | Andreev et al. | Sep 2013 | B2 |
20030041300 | Burns et al. | Feb 2003 | A1 |
20100005368 | Lee | Jan 2010 | A1 |
20100031126 | Andreev et al. | Feb 2010 | A1 |
20100042907 | Pilsl | Feb 2010 | A1 |
20100061400 | Hong et al. | Mar 2010 | A1 |
20100070831 | Gasanov et al. | Mar 2010 | A1 |
20100253555 | Weingarten et al. | Oct 2010 | A1 |
20100332956 | Alrod et al. | Dec 2010 | A1 |
20110185265 | Cherukuri | Jul 2011 | A1 |
20120054586 | Panteleev et al. | Mar 2012 | A1 |
20120137190 | Panteleev et al. | May 2012 | A1 |
Entry |
---|
Gautam et al., Study and Design of Architecture for BCH Code Encoder and Decoder, Spring 2010, California State University, Sacramento, pp. 1-137. |
Forney, Syndrome Realizations of Linear Codes and Systems, Apr. 4, 2003, IEEE, pp. 214-217. |
Truong et al., A New Decoding Algorithm for Correcting Both Erasures and Errors of Reed-Solomon Codes, Mar. 2003, IEEE, pp. 381-388. |
Horng et al., On Decoding of Both Errors and Erasures of a Reed-Solomon Code Using an Inverse-Free Berlekamp-Massey Alogrithm, Oct. 1999, IEEE, pp. 1488-1494. |
Number | Date | Country | |
---|---|---|---|
20130019139 A1 | Jan 2013 | US |