The technology disclosed herein relates generally to the field of error-detecting codes, and in particular to cyclic redundancy check algorithms.
A cyclic redundancy check (CRC) is an error-detecting code, wherein the algorithm is based on cyclic codes. CRC is used for instance in digital networks for detecting changes to raw data. A sender generates a check value, a CRC checksum, and appends it to a block of data. The CRC checksum is based on a reminder of a polynomial division of the contents of the block of data and a receiver can check the received block of data by repeating the calculation. If, upon a comparison, check values do not match, data corruption is detected.
Common CRC algorithms are expressed as polynomial division on Galois Field of two elements GF(2) (the elements usually denoted 0 and 1) and the calculation is performed bit by bit. A polynomial in GF(2) is a polynomial in a single variable x the coefficients of which are 0 or 1. The calculation of bit by bit requires a high amount of processing time because only one bit can be processed per clock cycle. A method for calculating a number of consecutive bits per clock cycle has therefore been introduced for high speed applications, wherein CRC bits are processed in parallel instead of serially. For example, one byte of data is processed by cycle from the first byte of the message to the last byte of the message.
However, also such parallel processing method entails some drawbacks. The computational complexity of the CRC algorithm, i.e. the logic depth, increases and makes the CRC algorithm more difficult to run at a high clock speed, in particular when the number of parallel bits is increased. If, for example, 1024 bits of data are processed per cycle, then the next state of a CRC generator is determined by a large combinatorial logic which takes 1024 bits of input. Further, in order to process the message sub-blocks on arrival, the bits need to be stored temporarily and they need to be reordered, since this method depends on the input order.
In order to solve these problems, a method to split the CRC calculation into multiple message sub-blocks, also denoted segments, has been introduced. The input data is divided into multiple segments and each segment can be assigned to a respective CRC engine. The CRC checksum can then be assembled using the output results of the CRC engines. This scheme also enables out-of-order calculation method of CRC checksum with sub-block level.
Aside from the above methods, a CRC checking method for the reverse order input of codeword, which comprises a data message and CRC checksum, using a reverse (or reciprocal) polynomial is known.
G(D)=DL+gL-1DL-1+gL-2DL-2+ . . . +g2D2+g1D1+1
Computing with the generator polynomial G(D) over the codeword 1 results in 0 (arrow A), while computing with the polynomial G(D) over the message 2 results in the CRC checksum 3 (arrow A2), which is L bits long.
The reverse generator polynomial GR(D) is given by:
G
R(D)=DL+g1DL-1+g2DL-2+ . . . +gL-2D2+gL-1D1+1
Computing with the reverse polynomial GR(D) over the codeword 1 excluding the first L bits of the message 2 in the reverse order results in the reversing of the first L bits of the message 2 (arrow B1), where L is the CRC checksum length. Computing with the reverse polynomial GR(D) over the codeword 1 in the reverse order results in 0 (arrow B2).
The methods that have been described all entail shortcomings. For instance, when the input data is stored into memory and the computation is performed with a forward order algorithm, this causes an undesired extra latency for the computing of CRC and also entails storage requirements.
When splitting the CRC checksum into small segments, e.g. into segments of 1 bit, and computing partial CRC checksums and combining with phase shift using an out of order incremental CRC scheme, a phase shifted calculation needs to be performed for each sub-block with small length in order to align at the end of the target block by multiplying a power of matrix. A drawback is that the computation of a power of matrix is expensive in terms of processing.
The methods using the properties described in relation to
The drawback of processing intense matrix computations for the earlier described splitting of CRC into small segments has been identified and analyzed by the inventors of the present application. The computationally intensive algorithm results from the scheme being able to shift the phase only forward, not backward.
It would be desirable to compute CRC with mixture of forward and reverse order input but there is no known algorithm to handle this. This would alleviate storage need as well as simplify hardware implementation.
An object of the present disclosure is to solve or at least alleviate at least one of the above mentioned problems.
The object is according to a first aspect achieved by a method performed in a cyclic redundancy check, CRC, device for calculating, based on a generator polynomial, a CRC code for a message block. The method comprises: receiving n segments of the message block in forward order or in reverse order, wherein at least one segment is received in reverse order; calculating for each of the n segments a respective segment CRC code based on the generator polynomial, wherein each segment CRC is calculated according to the received order of the segment; aligning each of the n segment CRC codes; and calculating the CRC code for the message block by adding together each of the aligned n segment CRC codes.
The method enables reverse order CRC generation as well as reverse order CRC check. The method further enables a bit sequence to be received in a mixture of forward and reverse order whereby for instance latency related to temporary storage followed by post-processing of the bit sequence in natural order is avoided.
The object is according to a second aspect achieved by a device for calculating, based on a generator polynomial, a CRC code for a message block. The device is configured to: receive n segments of the message block in forward order or in reverse order, wherein at least one segment is received in reverse order; calculate for each of the n segments a respective segment CRC code based on the generator polynomial, wherein each segment is calculated according to the received order of the segment; align each of the n segment CRC codes; and calculate the CRC code for the message block by adding together each of the aligned n segment CRC codes.
The object is according to a third aspect achieved by a computer program for a device for calculating cyclic redundancy check, CRC, codes. The computer program comprises computer program code, which, when executed on at least one processor on the device causes the device to perform the method as above.
The object is according to a fourth aspect achieved by a computer program product comprising a computer program as above and a computer readable means on which the computer program is stored.
Further features and advantages of the present disclosure will become clear upon reading the following description and the accompanying drawings.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular architectures, interfaces, techniques, etc. in order to provide a thorough understanding. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description with unnecessary detail. Same reference numerals refer to same or similar elements throughout the description.
Briefly, the present disclosure provides a method to compute CRC with the reverse order or mixture of forward and reverse order of inputs.
In an aspect of the present disclosure, a target data block is fed to a CRC generator core in a reverse order and unaligned CRC is calculated. In this calculation, the state transition of the CRC generator is expressed with a linear operation with the inverse of the matrix which is used to express the state transition of CRC generator for forward (conventional) order of inputs. This inverse of the matrix may be easily obtained by reordering the elements of the original matrix. Then the phase shift of CRC is performed by multiplying a power of matrix and the alignment of CRC is corrected. The computation of a power of matrix is required only once per target block, reducing processing time and required processing capacity.
By splitting the calculation into multiple segments, calculation with a multi-core engine can be performed. Further, the handling of a mixture of forward and reverse order calculations is enabled. The partial/unaligned CRC is calculated for each segment and the final (aligned) CRC may be combined with the phase shift of partial/unaligned CRCs.
By enabling CRC to be calculated on-the-fly over a bit sequence received in a mixture of forward and reverse order, as allowed by the present disclosure, it is possible to avoid the latency as result of temporary storage followed by post-processing of the bit sequence in natural (forward) order.
As a particular example, in Long Term Evolution (LTE) turbo decoders, the code block CRC can be utilized as an early-stop criterion, reducing power consumption and allowing management of a total iteration budget over several code blocks. High throughput turbo decoder implementations require splitting the code blocks in segments, also known as windows, which are processed in parallel. As the number of windows that is used increases in order to achieve ever higher throughputs, performance losses due to the windowing also increase. Processing for instance even and odd windows in opposite directions, as may be done according to the present disclosure, at least partially mitigates the performance losses. In such turbo decoder, for enabling the partial CRC calculations (one per window) it must be possible to calculate CRC on-the-fly in both natural and reverse order to achieve lowest possible latency.
The latency savings provided according to aspects of the present disclosure, correspond to a quarter-iteration of processing. As a particular example, in worst total power consuming scenarios 4.75% can be saved, assuming a typical 5 iterations per code block in these scenarios. In ideal signal-to-noise ratio (SNR) conditions where only one turbo iteration is needed, a power reduction of 20% can be achieved. Avoiding the latency also allows reducing the peak operating frequency with 4.75% with preserved error correction performance, alternatively gaining in performance at original frequency.
In the above exemplary use case, the (2n+1)-th segment is assumed to be computed in the forward order and the (2n+2)-th segment is assumed to be computed in the reverse order, where n is a non-negative integer.
In the present disclosure, at least the following five methods for CRC calculation are mentioned.
Thus, referring still to
The CRC8 generator to thereby generates an 8-bit CRC checksum. The cyclic generator polynomial GCRC8 for this particular CRC8 for which the circuit diagram illustrated in
G
CRC8(D)=D8+D7+D4+D3+D+1.
The circuit diagram of
A state transition equation in general is an equation whose solution gives the state for a certain time t.
For the CRC8, the state transition equation for the circuit of
where
d(i): Input data at clock cycle #i, wherein the input data may be either a message or a codeword (compare reference numeral 2 and 1, respectively, of
xj(i): The state of CRC generator (shift register) #j at clock cycle #i.
(Equation 1) can be generalized for any CRC algorithm as:
X(i+1)=MX(i)+d(i)V(modulo 2) (Equation 2)
where
V: is a constant vector with length L determined by the CRC algorithm used.
L: is an integer representing CRC size. For 3GPP, L may for instance be 8, 12, 16 or 24.
M: is an L by L constant matrix determined by the CRC algorithm used.
X(i): is a vector representing the state of CRC generator registers at clock cycle #i.
In the case of the above example for CRC8 generator polynomial, the following would be used
With reference still to
If a message (reference numeral 2 of
If the codeword (reference numeral 1 of
If the codeword (reference numeral 1 of
Generally, a recurrence equation is an equation that recursively defines a sequence once one or more initial terms are given. That is, each further term of the sequence is defined as a function of the preceding terms.
The recurrence equation (Equation 2) represents the model of the state transition from clock cycle #i to clock cycle #i+1. This recurrence equation needs to be solved in order to obtain the equivalent model to generate the CRC result X(n), where n is the length of the input data.
The result can be expressed as:
It can be observed that:
X(0) is a null vector since the registers in the CRC generator are zero at the initial state. The final state X(n) represents the result which can be CRC or zero depending on the input data, message 2 (refer to
where:
P: is a vector representing the CRC for the target input data block.
Consider processing of w bits in parallel. That is, bits #wi to #wi+w−1 are processed at clock cycle #i. The following is obtained from (Equation 3).
If the codeword 1 in the reverse order is fed as input data d(i), and further V and M are determined from the reverse generator polynomial, the null vector is obtained by (Equation F) and the CRC check can be performed by verifying this, where multiple input bits are processed in parallel.
Principle of Parallel Calculation with Multi-Core Engines for Forward Order (Method F)
In the following, splitting the block of length n=l+m into sub block #0 of length l and sub block #1 of length m is considered.
The CRC for the original input data block is calculated as:
The calculation for sub blocks is split according to:
where the following are defined:
Pk: The partial CRC vector which represents aligned CRC computed for the sub block #k.
and
A CRC code P for the message block 80 may be calculated for the entire block according to:
A first partial CRC code P0 (also denoted segment CRC code in this disclosure) may be determined for the first sub-block 81 according to:
A second partial CRC code P1 may be determined for the second sub-block 82 according to:
The relationship between the calculation of CRC code for the entire message block and the calculations of partial CRC codes for the sub-blocks can be expressed by:
P=M
m
P
0
+P
1(modulo 2)
From the above equation, it is seen that the first sub-block 81 is phase shifted by the multiplication with Mm, while the second sub-block 82 needs no phase shifting. Thus the CRC calculation can be split as described.
The above is equivalent to calculating CRC code for the entire message block, as has been described, giving P=Q0+Q1 (modulo 2).
Multiplying Mm onto the partial CRC code is equivalent to feeding m bits of zeros to the CRC generator and by this the phase shift of CRC is performed. It is noted that if the last partial sub-block (last segment) is calculated in forward order, then a phase shift for this segment is not needed. Therefore, more generally stated, the partial CRC codes are aligned rather than shifted, wherein bits are shifted if needed, and not shifted if already aligned.
Above, known methods have been described for providing thorough understanding of the present disclosure, i.e. forward order CRC check/generation with generator polynomial, reverse order CRC check with reverse generator polynomial, processing multiple bits in parallel for the forward order, parallel calculation with multi-core engines for the forward order, and processing multiple bits in parallel for the reverse order. Next, an aspect of the present disclosure is described.
The above described method (Method R-0) can be used only for reverse order CRC check and not for CRC generation. In contrast, the following methods may be used for reverse order CRC check or generation. The reverse calculations of Method-F are taken advantage of.
The reverse operation of (Equation-2) (least significant bit input first) is expressed as
X(i)=M−1(X(i+1)+d(i)V)(modulo 2) (Equation 5)
Reordering the expression above as Y(i)=X(n−i) and q(i)=d(n−1−i). It is noted that the first element for {X(i)} is X(0) and last element is X(n), while the first element for {d(i)} is d(0) and last element is d(n−1).
Then the following is obtained:
Y(i+1)=M−1(Y(i)+q(i)V)(modulo 2) (Equation 6)
This recurrence equation (Equation 6) can be solved as shown in
The following is obtained:
It can be assumed that Y (0) is null vector, then
(Equation 4) can be rearranged as follows:
From (Equation 8) and (Equation 9), the CRC result is:
P=M
n
Y(n)(modulo 2) (Equation 10)
The computation in the reverser order by (Equation-8) generates Y(n) which is denoted unaligned CRC. The alignment of the CRC is corrected, i.e. alignment of CRC is obtained, by multiplying the unaligned CRC, i.e. Y(n) with the matrix Mn (CRC phase shift).
Defining a vector U with length L−1 which vector U is created from V by excluding the first element according to:
Then the matrix M can be expressed as
where In is n by n identity matrix and Om,n is m by n null matrix.
The inverse of matrix Min GF(2) can then be obtained as
This can be proved by the multiplication results IL:
The following property is also true:
(Equation 6) can be simplified according the following by using (Equation 12):
In the following, the shift of register state is considered in preparation of making a unified formula with forward CRC calculation.
Define {circumflex over (Y)}(i)=MY(i)(modulo 2) (Equation 14)
Applying (Equation 14) in (Equation 6), (Equation 7), (Equation 8) and (Equation 10), then these formulas are modified as
Here it is noticed that the CRC phase shift is performed by multiplying the unaligned CRC with Mn-1 and not with Mn as in method R-1.
In box 53 the input bits are processed in reverse order according to
{circumflex over (Y)}(i+1)=M−1Y(i)+q(i)V(modulo 2)
In box 54 i is increased by 1, i.e. i is set equal to i+1. Flow then continues to decision box 55, wherein it is determined whether i is smaller than n, if yes then flow reverts to box 53 and the actions of boxes 53, 54 and 55 are repeated. If, in box 55, it is determined that i is not smaller than n, i.e. it is determined that i is larger than n, then flow continues to box 56.
In box 56 a phase shift by Mn-1 is performed according to
P=M
n-1
Ŷ(n)(modulo 2).
The method 50 results in a CRC code generated for an reverse input order of bits and the flow ends at box 57.
The aligning of CRC is performed by multiplying the matrix Mn in the CRC phase shifter 64 and CRC result is obtained.
The formula for the CRC calculations in forward (conventional) order and reverse order can be unified. Defining Z(i), r(i) and H according to:
Assuming Z(0)=OL,1 and applying (Equation 3), (Equation 7) and (Equation 16) gives:
Consider processing of w bits in parallel. That is, bits #wi to #wi+w−1 are processed at clock cycle #i.
(Equation F) for the forward order calculation can be generalized for applying to a segment where the data is fed in either forward or reverse order. This is performed by renaming X to Z, M to H and d to r in (Equation F) as:
The CRC generator core 70 may for instance, as illustrated in
Parallel Calculation with Multi-Core Engines
The method for splitting the CRC calculation by (Equation 24) can be also applied for the calculation with reverse order or mixed order, and the calculation of P0 and P1 can be performed in a reverse order. In the reverse order calculation, the unaligned CRC is obtained and the phase needs to be shifted by multiplying the matrix. The matrix multiplication for the reverse order calculation (Equation 18) and combining the CRCs (Equation 24) can be merged. When the calculation is split into more than two sub blocks, this split of the calculation may be recursively applied.
For the first sub-block #0 a partial CRC code (herein also denoted segment CRC code) is calculated in forward order (Method F), giving P0, which is then phase shifted by multiplying with M3m giving Q0.
For the second sub-block #1 a partial CRC code is calculated in reverse order (Method R-2), giving P1, which is then phase shifted by multiplying with M3m-1 giving Q1.
For the third sub-block #2 a partial CRC code is, as the second sub-block #1, calculated in reverse order (Method R-2), giving P2, which is then phase shifted by multiplying with M2m-1 giving Q2.
Finally, for the fourth sub-block #3 a partial CRC code is calculated in forward order (Method F), giving P3, which does not to be phase shifted (being the last partial CRC code) and thus P3=Q3.
The partial CRC codes are then added giving P=Q0+Q1+Q2+Q3 (modulo 2).
A power of matrix (Mn) is preferably prepared by a CPU or hardware accelerator for each sub-block, because M and n depend on the data format and can be specified before receiving the data.
is computed with matrix register B where the condition
means the bit #i of the binary representation of n is equal to 1. The calculation of Mn will be finished in └log2 n┘+2 cycles. As a particular example, a GF(2) Matrix-Matrix multiplier which supports up to the size of a 24×24 matrix can be built with 13824 AND gates and 13248 XOR gates. The above provides an exemplary hardware accelerator and it is noted that other designs are conceivable.
Method F (a Known Art): Forward Order CRC Check or Generation with Polynomial:
G
CRC 8(D)=D8+D7+D4+D3+D+1
CRC register state after feeding all message bits (see reference numeral 1605) is equivalent to CRC (see reference numeral 1604), and then CRC register state proceeds as if the register data is shifted out (see reference numeral 1609).
Method R-1 (Provided by the Present Disclosure): Reverse Order CRC Check or Generation Method with Pure Reverse Calculation of Method F.
The transition of CRC register state is completely equivalent to the reverse of Method F. For example (1606) is equal to (see reference numeral 1605).
Method R-2 (Provided by the Present Disclosure): Reverse Order CRC Check or Generation Method where the Internal State is Modified from Method R-1.
The CRC register state is equivalent to the CRC register state for method R-1 multiplied by M. For example (see reference numeral 1607) is obtained by multiplying M to (see reference numeral 1606).
Method R-0 (a Known Art): Reverse Order CRC Check Method with Reverse Polynomial:
G
CRC 8
R(D)=D8+D7+D5+D4+D+1
The CRC register state after feeding CRC (see reference numeral 1608) is far different from (see reference numeral 1604) because CRC is convolved. CRC register state after feeding codeword excluding first 8 bits of message (see reference numeral 1603) is equivalent to the first 8 bits of message (see reference numeral 1601), and then CRC register state proceeds as if the register data is shifted out (see reference numeral 1602).
According to this observation, it can be seen that the CRC register state is rewound by Method R-1 or R-2 as the reverse operation of Method F, while another type of calculation is performed by Method R-0.
A method 200 is provided that may be performed in a cyclic redundancy check, CRC, device 300 for calculating, based on a generator polynomial G(x), a CRC code for a message block.
The method 200 comprises receiving 201 n segments of the message block in forward order or in reverse order, wherein at least one segment is received in reverse order.
The method 200 comprises calculating 202 for each of the n segments a respective segment CRC code based on the generator polynomial G(x), wherein each segment CRC is calculated according to the received order of the segment. The calculating in forward order comprises using a forward order generator polynomial G(x) and the calculating in reverse order comprises using the reverse order of the generator polynomial G(x). In the present description, “segment CRC code” and “partial CRC code” are used in an interchangeable manner, both intended to refer to a CRC code for a partial message block based on a generator polynomial.
The method 200 comprises aligning 203 each of the n segment CRC codes. It is noted that “aligning” may by need not entail phase shifting (as also mentioned earlier, e.g. with reference to
The method 200 comprises calculating 204 the CRC code for the message block by adding together each of the aligned n segment CRC codes.
In an embodiment, the receiving 201 comprises receiving n segments of the message block in forward order or in reverse order, wherein n is equal to or larger than 2 and wherein at least one segment is received in forward order and at least one segment is received in reverse order.
In an embodiment, the calculating 202 for each of the n segments a respective segment CRC code, comprises processing input bits of a segment in forward order or reverse order by obtaining a respective pre-computed matrix.
In an embodiment, the aligning 203 of each of the segment CRC code comprises:
In an embodiment, the method 200, comprises calculating 202 and aligning 203 in parallel the n segments.
In an embodiment, the aligning of a segment CRC code calculated in reverse order comprises shifting the phase to negative side.
The device 300 comprises an input device 301 for receiving for instance a message block or a number of segments of a message block. The input device 301 may comprise an interface for receiving data messages. For example, the input device 301 may comprise processing circuitry adapted to receive a message block by using program code stored in a memory.
The device 300 comprises an output device 302 for outputting data, such as for instance a generated CRC code or a message block. The output device 302 may comprise an interface for outputting data messages.
The device 300 comprises one or more CRC cores 3031, . . . 303n, each arranged to receive a segment of a message block. Each CRC core 3031, . . . 303n, may further be arranged to calculate a respective segment CRC code for a segment. Among the CRC cores 3031, . . . 303n at least one CRC core is arranged to receive and calculate in forward order and at least one CRC core is arranged to receive and calculate in reverse order. It is noted that each or some of the CRC core 3031, . . . 303n may be arranged to handle reception and calculation in forward order as well as reverse order. The CRC cores 3031, . . . 303n are arranged to output segments of CRC codes, which may be aligned or unaligned. The output may be provided to a multiplier 305 (described below). The CRC cores 303′, . . . 303n, which may also be denoted CRC engines, may be implemented in hardware and/or software.
The device 300 comprises a register 304, which may be implemented in hardware or software or combinations thereof. The register 304 may for example comprise a linear feedback shift register. Such registers, and in particular function of, are as such well known within the art. However, it is noted that state transitions of the register 304 of the present disclosure differ from prior art.
The device 300 may comprise a multiplier 305, for instance a Galois Field 2 matrix-vector multiplier. Such multiplier 305 may be arranged to receive as input the segment CRC codes from the CRC cores. The output from the multiplier 305 may be input to an adder 306.
The device 300 may comprise one or more adders 306 for vector addition. The adder 306 may for instance be implemented as a digital circuit. The adder 306 may be arranged to receive, as input, the output from the multiplier 305. The adder 306 may provide its output to the register 304.
The device 300 comprises an accumulator register 307 for storing intermediate arithmetic and logic results, e.g. receiving as input the output from the adder 306. Accumulator registers are well known within the art and will not be described in further detail. In this context is noted that the device 300 may comprise additional memory (not illustrated), e.g. a random access memory (RAM) for temporary storage of data processed by the CRC cores. The device 300 may in other embodiments be configured to access an external memory.
The device 300 may be implemented in different ways, i.e. as different embodiments, wherein some embodiments of the device 300 comprises all the described components and other embodiments omits one or more of the described components. In still other embodiments, the device 300 comprises still further components, conventionally used within the field.
It is noted that the device 300 may be arranged to generate CRC codes or to check CRC codes or both generate and check CRC codes.
The device 300 comprises a processor 403 comprising any combination of one or more of a central processing unit (CPU), multiprocessor, microcontroller, digital signal processor (DSP), application specific integrated circuit etc. capable of executing software instructions stored in a memory 404, which can thus be a computer program product 404. The processor 403 can be configured to execute any of the various embodiments of the method 200 as has been described for instance in relation to
A device 300 is provided for calculating, based on a generator polynomial G(x), a CRC code for a message block. The device 300 may be configured to calculating, based on a generator polynomial G(x), a CRC code for a message block e.g. by comprising one or more processors 403 and memory 404, wherein the memory 404 contains instructions executable by the processor 403, whereby the device 300 is operative to perform e.g. the method 200 as described in various embodiments with reference to
The device 300 is configured to:
In an embodiment, the device 300 is configured to receive by receiving n segments of the message block in forward order or in reverse order, wherein n is equal to or larger than 2 and wherein at least one segment is received in forward order and at least one segment is received in reverse order,
In an embodiment, the device 300 is configured to calculate for each of the n segments a respective segment CRC code, by processing input bits of a segment in forward order or reverse order by obtaining a respective pre-computed matrix.
In an embodiment, the device 300 is configured to align each of the segment CRC code by:
In an embodiment, the device 300 is configured to calculate and align in parallel the n segments.
In an embodiment, the device 300 is configured to align a segment CRC code calculated in reverse order by shifting the phase to negative side.
The present disclosure also encompasses a computer program 405 for a device 300 for calculating cyclic redundancy check, CRC, codes, the computer program 405 comprising computer program code, which, when executed on at least one processor 400 on the device 300 causes the device 300 to perform the method 200 as described e.g. in relation to
The present disclosure also encompasses a computer program product 404 comprising a computer program 405 as above and a computer readable means on which the computer program 405 is stored.
In an aspect, the present disclosure provides a device for calculating cyclic redundancy check, CRC, codes for a message block. The device comprises:
The first means may for instance be an input means such as input means 301 as described in relation to
The device 300 may comprise still additional means form implementing the various embodiments of the present disclosure. The device may be implemented as software instructions such as computer program executing in a processor or by using hardware, such as application specific integrated circuits, field programmable gate arrays, discrete logical components etc., or by any combination of software instructions and hardware.
In the present disclosure, the inverse of the matrix for the state transition of CRC generator is considered and this enables rewinding the state of a CRC generator. For computing the CRC in the reverse order, the state of CRC generator is rewound, i.e. the phase is shifted to negative side, each time receiving the block bit(s), and CRC generator results are unaligned CRC segments. Then the phase shift is performed by multiplying a power of matrix at the final stage. This method is quite different from known existing schemes using reverse polynomial e.g. since the state transitions are different.
Out-of-order processing methodology, multi-bit parallel processing in and multi-core parallel processing are known, wherein the phase is shifted to only positive side. The present disclosure expands these methodologies to the negative side by considering the inverse of the matrix and adds freedom for the input data order.
The present disclosure provides, in different embodiments, a generic calculation method of CRC for reverse order, or mixture of forward and reverse order input.
The invention has mainly been described herein with reference to a few embodiments. However, as is appreciated by a person skilled in the art, other embodiments than the particular ones disclosed herein are equally possible within the scope of the invention, as defined by the appended patent claims.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2014/071249 | 10/3/2014 | WO | 00 |