System and method for encoding using multiple linear feedback shift registers

10305515 ยท 2019-05-28

Assignee

Inventors

Cpc classification

International classification

Abstract

An encoder and a method for encoding a first stream of bits, the method may include splitting the first stream of bits to multiple second streams; encoding, in parallel and by using multiple linear feedback shift registers (LFSRs), the multiple second streams to provide third streams, wherein each second stream of the multiple second streams is encoded using an LFSR of the multiple LFSRs; wherein the encoding comprises feeding the multiple second streams to the multiple LFSRs; merging the third streams to provide a fourth stream; wherein the fourth stream is stored in the multiple LFSRs; and encoding the fourth stream to provide a fifth stream; wherein the encoding of the fourth stream comprises concatenating the multiple LFSRs while bypassing feedback circuits of some of the multiple LFSRs; and shifting the fourth stream through the multiple LFSRs.

Claims

1. A method for encoding a first stream of bits, comprising: splitting with one or more switches, a first input stream of bits to multiple second streams; encoding, in parallel and by using multiple linear feedback shift register (LSFR) circuits, the multiple second streams to provide third streams, wherein each second stream of the multiple second streams is encoded using an LFSR circuit of the multiple LFSR circuits; wherein the encoding comprises feeding the multiple second streams to the multiple LFSR circuits; merging, with memory cells, the third streams to provide a fourth stream; wherein the fourth stream is stored in the multiple LFSR circuits; and encoding the fourth stream to provide a fifth stream; wherein the encoding of the fourth stream comprises concatenating the multiple LFSR circuits while bypassing feedback circuits of some of the multiple LFSR circuits; and shifting the fourth stream through the multiple LFSR circuits.

2. The method according to claim 1, wherein the shifting of the fourth stream comprises performing multiple (M) shift operations, wherein M is a positive integer and equals an aggregate length of the multiple LFSR circuits.

3. The method according to claim 1, wherein the encoding of the multiple second streams comprises performing M/K shift operations, wherein K is a number of the multiple LFSR circuits.

4. The method according to claim 1, wherein the encoding of the multiple second streams comprises performing multiple (Q) zero shifting operation after feeding the multiple second streams to the multiple LFSR circuits; wherein Q is a positive integer, and wherein the shifting of the fourth stream comprises performing (MJ) shifting operations, wherein J is a positive integer and is responsive to Q, and wherein M equals an aggregate length of the LFSR circuits.

5. The method according to claim 4, wherein J equals Q*2.

6. The method according to claim 4, wherein Q is selected in response to a relationship between a length of each LFSR circuit and a length of each second stream.

7. The method according to claim 1, comprising determining whether to bypass at least one stage of each LFSR in response to a relationship between a length of each LFSR circuit and a length of each second stream.

8. The method according to claim 1, wherein the merging of the third streams comprises concatenating sets of bits, wherein each set of bits comprises bits that are located at a same respective location in each one of the different third streams, wherein an order of the sets of bits corresponds to respective locations of bits of the sets of bits.

9. The method according to claim 1, wherein the merging of the third streams is executed during a single clock cycle.

10. The method according to claim 1, wherein a number of the multiple second streams is a power of two.

11. An encoder implemented on one or more integrated circuit devices for encoding a first stream of bits, comprising: multiple linear feedback shift register (LSFR) circuits; logic, coupled to the multiple LFSR circuits, wherein the logic is configured to: split, with one or more switches, the first stream of bits to multiple second streams; and feed the multiple second streams to the multiple LFSR circuits in parallel; wherein the multiple LFSR circuits are configured to encode, in parallel, the multiple second streams to provide third streams, wherein each second stream of the multiple second streams is encoded using an LFSR circuit of the multiple LFSR circuits; wherein the logic is configured to: merge the third streams to provide a fourth stream; wherein the fourth stream is stored in memory cells of the multiple LFSR circuits; and concatenate the multiple LFSR circuits while bypassing feedback circuits of some of the multiple LFSR circuits; wherein at least one of the multiple LFSR circuits is configured to encode the fourth stream to provide a fifth stream; wherein the logic is configured to shift the fourth stream through memory cells of the multiple LFSR circuits during the encoding of the fourth stream.

12. The encoder according to claim 11, wherein the encoder is configured to perform, during the encoding of the fourth stream, multiple (M) shift operations of the fourth stream, wherein M is a positive integer and equals an aggregate length of the multiple LFSR circuits.

13. The encoder according to claim 11, wherein the encoding of the multiple second streams comprises performing M/K shift operations, wherein K is a number of the multiple LFSR circuits.

14. The encoder according to claim 11 wherein the encoder is configured to perform multiple (Q) zero shifting operation after feeding the multiple second streams to the multiple LFSR circuits; wherein Q is a positive integer, and wherein a shifting of the fourth stream comprises performing (MJ) shifting operations, wherein J is a positive integer and is responsive to Q and wherein M equals an aggregate length of the multiple LFSR circuits.

15. The encoder according to claim 14, wherein J equals Q*2.

16. The encoder according to claim 14, wherein Q is selected in response to a relationship between a length of each LFSR circuit and a length of each second stream.

17. The encoder according to claim 11, wherein the encoder is configured to determine whether to bypass at least one stage of LFSR circuit in response to a relationship between a length of each LFSR circuit and a length of each second stream.

18. The encoder according to claim 11, wherein the encoder is configured to merge the third streams by concatenating sets of bits, wherein each set of bits comprises bits that are located at a same respective location in each one of the different third streams, wherein an order of the sets of bits corresponds to respective locations of bits of the sets of bits.

19. The encoder according to claim 11, wherein the merging of the third streams is executed during a single clock cycle.

20. The encoder according to claim 11, wherein a number of the multiple second streams is a power of two.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of operation, together with objects, features, and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanying drawings in which:

(2) FIGS. 1-4 illustrate prior art circuits;

(3) FIGS. 5, 8, 10, 11 and 12 illustrate encoders according to various embodiments of the invention;

(4) FIG. 6 illustrates a merging operation according to various embodiments of the invention;

(5) FIGS. 7, 9 and 13 illustrate portions of encoders according to various embodiments of the invention; and

(6) FIG. 14 illustrates a method according to an embodiment of the invention.

DETAILED DESCRIPTION OF THE DRAWINGS

(7) In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the present invention.

(8) The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of operation, together with objects, features, and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanying drawings.

(9) It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements.

(10) Because the illustrated embodiments of the present invention may for the most part, be implemented using electronic components and circuits known to those skilled in the art, details will not be explained in any greater extent than that considered necessary as illustrated above, for the understanding and appreciation of the underlying concepts of the present invention and in order not to obfuscate or distract from the teachings of the present invention.

(11) Any reference in the specification to a method should be applied mutatis mutandis to a system capable of executing the method and should be applied mutatis mutandis to a non-transitory computer readable medium that stores instructions that once executed by a computer result in the execution of the method.

(12) Any reference in the specification to a system should be applied mutatis mutandis to a method that may be executed by the system and should be applied mutatis mutandis to a non-transitory computer readable medium that stores instructions that may be executed by the system.

(13) Any reference in the specification to a non-transitory computer readable medium should be applied mutatis mutandis to a system capable of executing the instructions stored in the non-transitory computer readable medium and should be applied mutatis mutandis to method that may be executed by a computer that reads the instructions stored in the non-transitory computer readable medium.

(14) Mathematically, the output codeword obtained from the encoding process can be rewritten as defined as follows: c(x)=x.sup.nkd(x)+Rem[d(x)x.sup.nk].sub.g(x)=u(x)+Rem[u(x)].sub.g(x)

(15) Where (x)=d.sub.0+d.sub.1x+ . . . +d.sub.k1x.sup.k1, d.sub.i{0,1}, is the input information (in polynomial form, and d.sub.k1 is the first input bit), g(x) is the code generating polynomial, and n is the code length. The redundancy bits of the code are represented by the residue polynomial r(x) which is the result of dividing the (shifted) input bits by the generating polynomial of the cyclic code over GF(2) (e.g., BCH). The Rem[u(x)].sub.g(x) is the same as x.sup.nkd(x) mod g(x) (notation used above) and where u(x)=x.sup.nkd(x).

(16) As described above, the modulo-g(x) operation is implemented using LFSR with the appropriate taps corresponding to the generating polynomial of the code.

(17) We propose to split the first bit stream (first stream) u(x) to second streams, encode each second stream separately (using two LFSR circuits) to provide third streams, then combine the two third streams (by merging these two third streams to a fourth stream and pass the fourth stream through an LFSR) to provide a fifth stream that includes redundancy bits for protecting the first stream.

(18) Clearly, the ability to split the first stream to two second streams (which are handled by two LFSRs) can help to speed-up the encoding process at the expense of additional LFSR, but, without compromising LFSR's clock frequency or generality.

(19) Given first stream u(x)=d(x)x.sup.nk, where u.sub.i {0,1}: a. Split the first stream to two second streams d.sub.e (even bits) and d.sub.O (odd bits) such that: d.sub.E=(d.sub.0, d.sub.2, . . . , d.sub.k1), d.sub.0=(d.sub.1, d.sub.3, . . . , d.sub.k1) b. For each second stream, perform encoding (using a LFSR with the appropriate taps corresponding to the code's generating polynomial) to provide third streams that include residuals. Denote the residues obtained by r.sub.E and r.sub.O respectively, namely

(20) r E ( x ) = Rem [ d e ( x ) ] g ( x ) = Rem [ .Math. i = 0 .Math. k - 1 2 .Math. d 2 i x i ] g ( x ) r O ( x ) = Rem [ d o ( x ) ] g ( x ) = Rem [ .Math. i = 0 .Math. k - 1 2 .Math. d 2 i + 1 x i ] g ( x ) c. Merge the two third streams (residues) into a fourth stream R as follows R={r.sub.0.sup.(e)r.sub.0.sup.(o)r.sub.1.sup.(e)r.sub.1.sup.(o) . . . r.sub.nk1.sup.(E)r.sub.nk1.sup.(o)}. Mathematically, it can be described as R(x)=r.sub.E.sup.2(x)+xr.sub.o.sup.2(x). Note that the degree of the fourth stream R (x) does not exceed 2(nk). d. Finally, pass the fourth stream R again via the LFSR to obtain the fifth stream that include redundancy bits and calculate
r(x)=Rem[R(x)x.sup.nk].sub.g(x).

(21) In general, higher parallelism can be obtained by dividing the first stream into any power of 2 second streams and performing similar calculation to those above.

Various Embodiments of Hardware Implementation

(22) As explained above, the configurable multi-bit stream LFSR should support any combination of taps (that correspond to the code's generating polynomial). There are few ways to implement an LFSR circuitry. Here we demonstrate a Galois implementation (a.k.a one-to-many LFSR), other implementation face the same problem of meeting long feedback logic timing constraints when increasing the clock frequency.

First Embodiment

(23) From this point on, let us assume we want to widen the incoming data bus from 16 bits to 32 bits, but timing closure does not meet the setup requirements. We also assume (for simplicity that the incoming data is 32 bits aligned) and the LFSR length (degree of the generating polynomial) is aligned to 16 bits.

(24) The implementation assumes we have a LFSR (of 16 parallel bits) with 10 stages (overall supported polynomial degree is 160) that does meet timing requirements. This LFSR has configurable tap option for each register cell, a Din switch that selects the incoming data source and a Feedback switch (see switches A, B in FIG. 5)

(25) As explained before, we want to calculate:
Rem[d(x)x.sup.nk].sub.g(x)=
Rem[d.sub.e.sup.2(x)x.sup.nk+xd.sub.0.sup.2(x)(x)x.sup.nk].sub.g(x)=
Rem[r.sub.e.sup.2(x)x.sup.nk+xr.sub.o.sup.2(x)(x)x.sup.nk].sub.g(x)

(26) For that purpose we first calculate third streams r.sub.e(x) and r.sub.o(x). Which are the residues of the second streams calculated in separated Even/Odd LFSRs respectively.

(27) FIG. 5 shows the circuitry for an example of a pair of two parallel 16 bits LFSRs 110 and 120 and logic 140 according to an embodiment of the invention.

(28) The encoding process starts by splitting the first stream to two second streams and feeding the second streams to the first and second LFSRs 110 and 120that are also denoted even LFSR 110 and odd LFSR 120.

(29) The first stream is split (by switch 102 of logic 140) to two second streamsan even second stream 104 and an odd second stream 105 that receive the even and odd bits of the first bits stream respectively. The even LFSR 110 receives the even second stream and the odd LFSR 120 receives the odd second stream.

(30) The feeding step includes a first feeding phase that ends when the last (rightmost) memory cells of each LFSR 110 and 120 receive the first bits of the second streams. Till then the feedback generated by the feedback circuits 111 and 121 is meaningless. Till the end of the first feeding phase the input switches A of both LFSRs are set to their din receiving statein which they allow bits of the second streams to enter the LFSRs.

(31) FIG. 5 also shows feedback switches B that may allow or prevent feedback from being fed to the LFSRs.

(32) The first feeding phase is followed by an encoding phase during which the odd and even second streams are encoded. This includes shifting the second streams through the odd and even LFSRs while receiving valid feedback. The encoding ends and a generation of the third streams is completedwhen bits responsive to the last bits of each one of the odd and even second streams reaches the last memory cells of each LFSR.

(33) At the end of the encoding phase the even LFSR 110 stores r.sub.e(x) and the Odd LFSR 120 stores r.sub.o(x).

(34) This step takes

(35) t ENCODE = .Math. D ( X ) .Math. 32 clock cycles .

(36) This is followed by merging the two third streams to a fourth stream. The merging includes creating a fourth stream in which the bits of the two third streams are threaded together.

(37) The merging may include concatenating sets of bits, wherein each set of bits may include bits that may be located at a same respective location in each one of the different third streams, wherein an order of the sets of bits corresponds to respective locations of bits of the sets of bits

(38) For examplethe first set of bits will include the first bits of the different third streams, the second set of bits (that follows the first set of bits) will include the second bits of the different third streams, the third set of bits (that follows the second set of bits) will include the second bits of the different third streams. In general, the zth set of bits will include the zth bits of each one of the third streams and will follow the (z1)th set of bits. Index z is an integer that ranges between 1 to L, L being the length of a third stream.

(39) An example of the merging may include defining each second stream LFSR bit index within the range {0 . . . L1) wherein L is a length of each LFSR, defining the LFSR index within the range {0 . . . N1} wherein N is the number of second stream parallel LFSRs. The merging may include turning the xth bit of the yth LFSR to become the (N*x+y)th bit of the fourth stream.

(40) To demonstrate on FIG. 6: Bit0 of each LFSR is the leftmost bit, odd LFSR (120) is indexed as LFSR#0, Even LFSR (110) is indexed as LFSR#1:

(41) The merging may be executed during a single clock cycle. Each memory cell receives the content of another memory cell in order to facilitate the merge operation.

(42) The bits are merged in a bit interleaving manner. For example, bit 143 (shown in the FIG. 6) of the even LFSR 110 and bit 143 of the odd LFSR 120 are placed one by the other. Bit 159 of the even LFSR stays in the same register cell.

(43) FIG. 6 illustrates the content of the even and odd LFSRs before and after the merging process. At the end of the merging process a first half that include higher order of even and odd bits of the third streams is stored in the even LFSR. A second half of lower order even and odd bits of the third streams are stored in the odd LFSR.

(44) The merging may take a single clock cycle (t.sub.MERGE).

(45) After this step is done the LFSRs holds the value: R(x)=r.sub.E.sup.2(x)+xr.sub.o.sup.2(x)

(46) FIG. 7 illustrates a logic subset 30(1) that is connected between each pair of memory cells of successive stage of each LFSR according to an embodiment of the invention.

(47) The logic subset 30(1) of FIG. 7 facilitates merge and connects a memory cell such as 110(1,1) to a previous memory cell 110(0,1) of the odd LFSR 110 and to another memory cell 120(a,b) of even LFSR 120for performing the merge operation.

(48) Logic subset 30(1) includes a multiplexer 131 that may provide (via logic 140) the content (merge_in 152) of 120(a,b) or a content that is affected (by logic subset 30(1)) by feedback 153 and content (prev_stage_output) of the previous memory cell 110(0,1). The multiplexer 131 is controlled by a merge_step control signal 151 that selects merge_in 152 during merge operations.

(49) The logic cells of first stage (leftmost) of the even LFSR 110 will be coupled to a more complex logic subset than 30(1)FIG. 9 illustrates such a logic subset 30(1) according to an embodiment of the invention.

(50) Now we want to calculate the residue Rem[R(x)x.sup.nk].sub.g(x).

(51) At this stage the fourth stream is stored in even and odd LFSRs 110 and 120.

(52) The following stage (termed additional encoding) includes encoding the fourth stream to provide a fifth stream.

(53) The encoding of the fourth stream includes concatenating the multiple LFSRs (to form a virtual single LFSR) while bypassing feedback circuits of some of the multiple LFSRs. In FIG. 8 the feedback circuit of the odd LFSR 120 is bypassed and it is used only to shift bits to the even LFSR 110that encodes the fourth stream to provide the fifth stream.

(54) The Odd LFSR 120 shifts zeros in and the Even LFSR 110 is driven by the Odd LFSR 120 output while calculating the fifth stream.

(55) This step ends when the last bit of the first fourth stream R(x) enters the Even LFSR 110.

(56) This step takes

(57) t ADDITIONAL _ ENCODE = .Math. r E ( x ) .Math. 16 = .Math. g ( x ) .Math. 16 = n - k 16 = length of the even LFSR ( 10 cycles in this example ) .

(58) At the end of this step the Even LFSR holds the value: Rem[R(x)].sub.g(x) and the odd LFSR stores only zeroesas illustrated in (FIG. 10).

(59) If we want to complete the calculation and get: [R(x)x.sup.nk].sub.g(x), we need to shift in |r.sub.E(x)|=|g(x)|=nk additional zero cycles.

(60) By the end of the previous stage the Odd LFSR is loaded with zero.

(61) In this step the LFSRs switches stays as in Additional Encoding step.

(62) Pushing nk additional zero cycles into it does not change the Odd LFSR state, but lets the Even LFSR roll nk cycles whilst getting the desired result:
Rem[R(x)x.sup.nk].sub.g(x)

(63) This step also consumes

(64) t ZEROS = .Math. r E ( x ) .Math. 16 = .Math. g ( x ) .Math. 16 = n - k 16 clock cycles .

(65) Zero Shifting time reduction

(66) The overall calculation time of the suggested basic solution time is:

(67) t ENCODE + t MERGE + t ADDITIONAL_ENCODE + t ZEROS = .Math. D ( X ) .Math. 32 + O ( 1 ) + .Math. R ( X ) .Math. 16 + .Math. R ( X ) .Math. 16 clock cycles

(68) Any additive time besides t.sub.ENCODE is an overhead. This section deals with saving some of the t.sub.ZEROS time.

(69) We can mathematically state that:

(70) Rem [ r e 2 ( x ) x n - k + xr o 2 ( x ) x n - k ] g ( x ) = Rem [ ( r e ( x ) x n - k 2 ) 2 + x ( r o ( x ) x n - k 2 ) 2 ] g ( x )

(71) Let's define (1):

(72) 0 r ~ e ( x ) = r e ( x ) x n - k 2 ; r ~ o ( x ) = r o ( x ) x n - k 2

(73) We can get {tilde over (r)}.sub.e (x) by shifting r.sub.e(x) we got after Din step by

(74) n - k 2 bits .
That is

(75) n - k 2 * 16 clock cycles .
By that we enlarge Din step by

(76) n - k 2 * 16 clock cycles
but skip Zeros step of

(77) n - k 16 clock cycles .

(78) Overall

(79) n - k 2 * 16 clock cycles
spared.

(80) Not Aligned Merged LFSRs Outcome

(81) We assume here the payload data is aligned to 32 bits (each cycle the input bus drives all bits), so calculating r.sub.e(x) and r.sub.o(x) is easy. However {tilde over (r)}.sub.e(x) and {tilde over (r)}.sub.o(x) are calculated on a payload that is not 32 bits aligned. Moreover, supporting any LFSR length (any generating polynomial degree) means the Additional Encoding step data in i.e. the merged {tilde over (R)}(x)={tilde over (r)}.sub.E.sup.2(x)+x{tilde over (r)}.sub.0.sup.2(x) is not necessarily aligned to 16 bits. The concatenated LFSR input bus is of 16 bits, so apparently driving in the exact required data is an obstacle.

(82) Having an LFSR length of nk, we can define the 16 bits aligned register chain length REG.sub.CH=nk+t where Rem[REG.sub.CH].sub.16=0.

(83) Previously it has been shown that zero input shifting by X bits in ENCODE step is equal to 2 zero input shifted bits in the ADDITIONAL_ENCODE step. The following procedure describes how maneuvering the zero shifting between the steps results in the desired outcome when the LFSR is of any length.

(84) The amount of zero input cycle in ENCODE step according to equation (1) is (nk)/2.

(85) We shift only T+(16t) zero cycles (into the polynomial defined effective LFSR) where T is the largest native number that meets the requirements:

(86) Rem [ T ] 16 = 0 & T < n - k 2 .

(87) We define Zero Debt ZD=(nk)/2(T+(16t)) that is the amount of zero cycles that still needs to be shifted on the original Even and Odd LFSR. We can then respectively define Additional encode Zero Debt:
CZD=2*ZD=nk2T32+2t

(88) That is the amount of zero cycles that still needs to be shifted during the ADDITIONAL_ENCODE step through the odd and even LFSRs.

(89) In the ADDITIONAL_ENCODE step we now shift in zero cycles:
nk+CZD=2*(nk)2T32+2t

(90) This amount of zero cycles is a multiplicand of 16 and at the end the Even LFSR holds the required final result.

(91) Support for any LFSR Length

(92) As described before the invention supports a modulus operation on a generating polynomial g(x) with any desired taps positions. It is noted that any length of the generating polynomial can be supported as well (up to a maximal length implemented).

(93) The nave way is to place taps only for relevant register cells. All other register cells will operate as a shift register.

(94) FIG. 11 shows an example of 16 bits parallel LFSR 110 of a maximal length of 160 bits. It has ten logics 130(0)-130(9) and ten stages 140(0)-140(9) of logical cells that are configured in an interleaved manner. Stage 140(9) is followed by feedback circuit 111.

(95) If for example the LFSR needs to be configured to an actual length of 28 bits, only taps that are connected to logics 130(8)-130(9) will be set. The other 128 bits will operate as a shift register meaning data will stream in on the input bus and only after 8 clock cycles the calculation will actually start. This delay lowers the throughput of the calculation module.

(96) In order to save this time we suggest bypassing the delay cause.

(97) FIG. 12 shows an example of 80 bits maximal LFSR 110 with bypass options. The input data is fed to each one of logics 130(0)-130(4) and each one of logics has a bypass circuit that allows it to feed the logical cells that follow it with either information from a previous logical cells or to receive (bypass) Din.

(98) If for example the LFSR needs to be configured to an actual length of 28 bits, the circuit is configured to drive din directly through bypass path 151. According to an embodiment of the invention lower LFSR registers left side to path 151 may be driven with constant (zeros for example) in order not to consume data transition power.

(99) FIG. 13 illustrates a logic subset 130(1) for allowing data bypasses and three memory cells 110(s,t), 110(s1,t) and 120(a,b) according to an embodiment of the invention.

(100) Memory cells 110(s,t) and 110(s1,t) belong to the sth and (s1)th stages of even LFSR 110 of FIG. 12. Memory cell 120(a,b) belongs to another LFSR that has bypass capabilities. During a merge operation the content of memory cell 120(a,b) should be provided to memory cell 110(s,t).

(101) A first multiplexer 191 receives prev_stage_output 181 from previous memory cell 110(s1,t), an input bit LFSR Din 182, and zero 183 and is controlled by control signal input_cnrl 162.

(102) A second multiplexer 192 receives a merge_in 152 signal from memory cell 120(a,b) and a odd_lfsr_out 184which is the output port from a previous LFSR. It is controlled by merge_step 151 control signal.

(103) The output of first multiplexer 191 and feedback 153 are fed to logic subset 30(1). The output of logic subset 30(1) and the output of second multiplexer 192 are provided to third multiplexer 193 that is controlled by merge_step 151 or Addition Encoding step 161. The output of the third multiplexer 193 is provided to memory cell 110(s,t).

(104) FIG. 14 illustrates method 200 according to an embodiment of the invention.

(105) Method 200 may start by stage 210 of receiving a first stream of bits.

(106) Stage 210 may be followed by stage 220 of splitting a first stream of bits to multiple second streams.

(107) The number of the multiple second streams may be a power of two.

(108) Stage 220 may be followed by stage 230 of encoding, in parallel and by using multiple linear feedback shift registers (LFSRs), the multiple second streams to provide third streams, wherein each second stream of the multiple second streams may be encoded using an LFSR of the multiple LFSRs. The encoding may include feeding the multiple second streams to the multiple LFSRs.

(109) Stage 230 may include performing M/K shift operations on each second stream, wherein K may be a number of the multiple LFSRs.

(110) Stage 230 may include performing multiple (Q) zero shifting operation after feeding the multiple second streams to the multiple LFSRs. This may occur, for example, when the size of the second streams differs from the length of the LFSRs. Q may be a positive integer. In this case stage 250 may include performing (M-J) shifting operations, wherein J may be a positive integer and may be responsive to Q and wherein M equals an aggregate length of the multiple LFSRs. J may equal Q*2. Q may be selected in response to a relationship between a length of each LFSR and a length of each second stream.

(111) Stage 230 may include concatenating sets of bits, wherein each set of bits may include bits that may be located at a same respective location in each one of the different third streams, wherein an order of the sets of bits corresponds to respective locations of bits of the sets of bits.

(112) Stage 230 may be executed during a single clock cycle.

(113) Stage 230 may be followed by stage 240 of merging the third streams to provide a fourth stream. The fourth stream may be stored in the multiple LFSR.

(114) Stage 240 may be followed by stage 250 of encoding the fourth stream to provide a fifth stream. The encoding of the fourth stream may include concatenating the multiple LFSRs while bypassing feedback circuits of some of the multiple LFSRs and shifting the fourth stream through the multiple LFSRs.

(115) Stage 250 may include performing multiple (M) shift operations, wherein M may be a positive integer and equals an aggregate length of the multiple LFSRs.

(116) According to an embodiment of the invention method 200 may include stage 205 of determining whether to bypass at least one stage of each LFSR in response to a relationship between a length of each LFSR and a length of each second stream. Step 210 is responsive to the determination (see, for example, FIG. 12).

(117) The invention may also be implemented in a computer program for running on a computer system, at least including code portions for performing steps of a method according to the invention when run on a programmable apparatus, such as a computer system or enabling a programmable apparatus to perform functions of a device or system according to the invention. The computer program may cause the storage system to allocate disk drives to disk drive groups.

(118) A computer program is a list of instructions such as a particular application program and/or an operating system. The computer program may for instance include one or more of: a subroutine, a function, a procedure, an object method, an object implementation, an executable application, an applet, a servlet, a source code, an object code, a shared library/dynamic load library and/or other sequence of instructions designed for execution on a computer system.

(119) The computer program may be stored internally on a non-transitory computer readable medium. All or some of the computer program may be provided on computer readable media permanently, removable or remotely coupled to an information processing system. The computer readable media may include, for example and without limitation, any number of the following: magnetic storage media including disk and tape storage media; optical storage media such as compact disk media (e.g., CD-ROM, CD-R, etc.) and digital video disk storage media; nonvolatile memory storage media including semiconductor-based memory units such as flash memory, EEPROM, EPROM, ROM; ferromagnetic digital memories; MRAM; volatile storage media including registers, buffers or caches, main memory, RAM, etc.

(120) A computer process typically includes an executing (running) program or portion of a program, current program values and state information, and the resources used by the operating system to manage the execution of the process. An operating system (OS) is the software that manages the sharing of the resources of a computer and provides programmers with an interface used to access those resources. An operating system processes system data and user input, and responds by allocating and managing tasks and internal system resources as a service to users and programs of the system.

(121) The computer system may for instance include at least one processing unit, associated memory and a number of input/output (I/O) devices. When executing the computer program, the computer system processes information according to the computer program and produces resultant output information via I/O devices.

(122) In the foregoing specification, the invention has been described with reference to specific examples of embodiments of the invention. It will, however, be evident that various modifications and changes may be made therein without departing from the broader spirit and scope of the invention as set forth in the appended claims.

(123) Moreover, the terms front, back, top, bottom, over, under and the like in the description and in the claims, if any, are used for descriptive purposes and not necessarily for describing permanent relative positions. It is understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in other orientations than those illustrated or otherwise described herein.

(124) The connections as discussed herein may be any type of connection suitable to transfer signals from or to the respective nodes, units or devices, for example via intermediate devices. Accordingly, unless implied or stated otherwise, the connections may for example be direct connections or indirect connections. The connections may be illustrated or described in reference to being a single connection, a plurality of connections, unidirectional connections, or bidirectional connections. However, different embodiments may vary the implementation of the connections. For example, separate unidirectional connections may be used rather than bidirectional connections and vice versa. Also, plurality of connections may be replaced with a single connection that transfers multiple signals serially or in a time multiplexed manner. Likewise, single connections carrying multiple signals may be separated out into various different connections carrying subsets of these signals. Therefore, many options exist for transferring signals.

(125) Although specific conductivity types or polarity of potentials have been described in the examples, it will be appreciated that conductivity types and polarities of potentials may be reversed.

(126) Each signal described herein may be designed as positive or negative logic. In the case of a negative logic signal, the signal is active low where the logically true state corresponds to a logic level zero. In the case of a positive logic signal, the signal is active high where the logically true state corresponds to a logic level one. Note that any of the signals described herein may be designed as either negative or positive logic signals. Therefore, in alternate embodiments, those signals described as positive logic signals may be implemented as negative logic signals, and those signals described as negative logic signals may be implemented as positive logic signals.

(127) Furthermore, the terms assert or set and negate (or deassert or clear) are used herein when referring to the rendering of a signal, status bit, or similar apparatus into its logically true or logically false state, respectively. If the logically true state is a logic level one, the logically false state is a logic level zero. And if the logically true state is a logic level zero, the logically false state is a logic level one.

(128) Those skilled in the art will recognize that the boundaries between logic blocks are merely illustrative and that alternative embodiments may merge logic blocks or circuit elements or impose an alternate decomposition of functionality upon various logic blocks or circuit elements. Thus, it is to be understood that the architectures depicted herein are merely exemplary, and that in fact many other architectures may be implemented which achieve the same functionality.

(129) Any arrangement of components to achieve the same functionality is effectively associated such that the desired functionality is achieved. Hence, any two components herein combined to achieve a particular functionality may be seen as associated with each other such that the desired functionality is achieved, irrespective of architectures or intermedial components. Likewise, any two components so associated can also be viewed as being operably connected, or operably coupled, to each other to achieve the desired functionality.

(130) Furthermore, those skilled in the art will recognize that boundaries between the above described operations merely illustrative. The multiple operations may be combined into a single operation, a single operation may be distributed in additional operations and operations may be executed at least partially overlapping in time. Moreover, alternative embodiments may include multiple instances of a particular operation, and the order of operations may be altered in various other embodiments.

(131) Also for example, in one embodiment, the illustrated examples may be implemented as circuitry located on a single integrated circuit or within a same device. Alternatively, the examples may be implemented as any number of separate integrated circuits or separate devices interconnected with each other in a suitable manner.

(132) Also for example, the examples, or portions thereof, may implemented as soft or code representations of physical circuitry or of logical representations convertible into physical circuitry, such as in a hardware description language of any appropriate type.

(133) Also, the invention is not limited to physical devices or units implemented in non-programmable hardware but can also be applied in programmable devices or units able to perform the desired device functions by operating in accordance with suitable program code, such as mainframes, minicomputers, servers, workstations, personal computers, notepads, personal digital assistants, electronic games, automotive and other embedded systems, cell phones and various other wireless devices, commonly denoted in this application as computer systems.

(134) However, other modifications, variations and alternatives are also possible. The specifications and drawings are, accordingly, to be regarded in an illustrative rather than in a restrictive sense.

(135) In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word comprising does not exclude the presence of other elements or steps then those listed in a claim. Furthermore, the terms a or an, as used herein, are defined as one or more than one. Also, the use of introductory phrases such as at least one and one or more in the claims should not be construed to imply that the introduction of another claim element by the indefinite articles a or an limits any particular claim containing such introduced claim element to inventions containing only one such element, even when the same claim includes the introductory phrases one or more or at least one and indefinite articles such as a or an. The same holds true for the use of definite articles. Unless stated otherwise, terms such as first and second are used to arbitrarily distinguish between the elements such terms describe. Thus, these terms are not necessarily intended to indicate temporal or other prioritization of such elements. The mere fact that certain measures are recited in mutually different claims does not indicate that a combination of these measures cannot be used to advantage.

(136) While certain features of the invention have been illustrated and described herein, many modifications, substitutions, changes, and equivalents will now occur to those of ordinary skill in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the invention.