Method and device for calculating CRC encoding
A coding and sequence technology, applied in the information field, can solve the problems of consuming large computing resources, affecting the efficiency and performance of CRC coding, a large number of shift operations and XOR operations, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0084] As an example and not limitation, the at least one polynomial includes a first polynomial, the first polynomial Q 1 (x) satisfy:
[0085] Q 1 (x)=(x^369+x^31+1) x^a (2)
[0086] Wherein, x^a is an adjustment coefficient, a is determined according to the capacity of a register, and a is an integer greater than or equal to 0, and the register is used to store the first sequence.
[0087] Specifically, for example, the length of the first sequence is 4096, and the multiple (for example, the first polynomial) Q of the primitive polynomial 1 (x) satisfy:
[0088] Q 1 (x)=(x^369+x^31+1) (3)
[0089] At this time, the value of a in formula (2) is 0.
[0090] When calculating the CRC encoding of the first sequence, it mainly includes the following steps:
[0091] a. When calculating the CRC code of the first sequence, 16 bits "0" are added after the first sequence, that is, the length of the first sequence after adding "0" is 4112;
[0092] b. Divide the first sequence ...
Embodiment 2
[0103] The difference between embodiment 2 and embodiment 1 is that step c to step e, in embodiment 2, step c is:
[0104] Such as Figure 9 As shown, the first data segment is shifted left by 31 bits and left by 0 bits respectively, and the data segment obtained by shifting the first data segment by 31 bits to the left and the data segment obtained by shifting the first data segment to the left by 0 bits are subjected to an exclusive OR operation, and the exclusive OR operation The obtained data segment is divided into two parts, respectively data segment C and data segment D, data segment C includes 31 high-order bits, and data segment D includes 369 bits other than the upper 31 bits.
[0105] The data segment C is shifted left by 31 bits and 0 bit to the left respectively, and the data segment obtained by shifting 31 bits to the left and the data segment obtained by shifting 0 bits to the left are subjected to an exclusive OR operation, and the data segment E obtained by th...
Embodiment 3
[0113] As an example and not limitation, the at least one polynomial includes a second polynomial, the second polynomial Q 2 (x) satisfy:
[0114] Q 2 (x)=(x 65535 +1) x b (5)
[0115] where x b To adjust the coefficient, b is determined according to the capacity of the register, and b is an integer greater than or equal to 0, and the register is used to store the first sequence.
[0116] Specifically, for example, the length of the first sequence is 4194304, and the multiple of the primitive polynomial (for example, the first polynomial) Q 1 (x) satisfy:
[0117] Q 2 (x)=(x 65535 +1) (6)
[0118] At this time, the value of b in formula (5) is 0.
[0119] When calculating the CRC encoding of the first sequence, it mainly includes the following steps:
[0120] a. When calculating the CRC code of the first sequence, add 16 bits "0" after the first sequence, that is, the length of the first sequence after adding "0" is 4194320;
[0121] b. Divide the first sequence a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


