Method and apparatus for generating cyclic redundancy check code

A technology of cyclic redundancy check and generating polynomials, which is applied in the field of cyclic redundancy check code generation, can solve the problems of increasing the calculation of CRC shift times, increasing the amount of calculation, and affecting the efficiency of data processing, etc., so as to reduce the shift The effect of reducing the number of times, saving computing costs, and improving generation efficiency

Active Publication Date: 2018-11-13
CHENGDU TD TECH LTD
View PDF9 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] The inventor finds that: in the above-mentioned traditional CRC check code generation method, because the number of times of shifting is equal to the original binary code information stream M (k) adds the bit number of M ' (k) after N zeros, make when CRC generates When the order N of the polynomial is high, it will significantly increase the number of shifts when calculating the CRC, thereby increasing the amount of calculation, which in turn affects the efficiency of data processing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for generating cyclic redundancy check code
  • Method and apparatus for generating cyclic redundancy check code
  • Method and apparatus for generating cyclic redundancy check code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0031] The core idea of ​​the present invention is to transform the feedback shift register group to reduce the number of shifts of the feedback shift register group during the CRC generation process, so as to save calculation expenses and improve the generation efficiency of the CRC.

[0032] In order to clearly set forth the present invention, the order of generating polynomial G (X) equals 4 as an example below, and the realization principle of the present invention is described as follows:

[0033] The quotient Q(i-1) of the i-1th division can be expressed as:

[0034] [[[[(M′(i-1)+G(0)*Q(i-1)]*X -1 +G(1)*Q(i-1)]*X -1 +G(2)*Q(i-1)]*X -1 +G(3)*Q(i-1)]*X -1 +G(4)=Q(i-1)

[0035]

[0036]

[0037] In the above formula, i=1,......

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and apparatus for generating a cyclic redundancy check code. The method comprises the following steps: converting a preset generation polynomial G(X) into a binary code G(n); converting the information M(X) of a cyclic redundancy check code to be generated into a binary code M(k), where n=0, 1, .....,N; k=0,1,..... , K-1, N is the order of G(X), and K is the digitof M(k); and according to the M(k) and the G(n), calculating a remainder of M(k)*XN modulo 2 divided by G(n) by using a preset feedback shift register group and by using a successive shifting method,and using the remainder as the cyclic redundancy check code of the M(k),wherein the feedback shift register group is constructed according to Q(i-1)=G(0)*Q(i-1)*X-N+G(1)*Q(i-1)*X-(N-1)+... +G(N-1)*Q(i-1)*X-1+M(i-1)+G(N), the Q(i-1) represents a quotient of the (i-1)th shifting division, the + represents a modulo 2 addition operation symbol, the * represents a multiplication operation symbol, X-n represents a symbol that is logically shifted rightward for n times, i = 1, ....., K. By adoption of the method and apparatus disclosed by the invention, the calculation overhead can be reduced, and the CRC generation efficiency can be effectively improved.

Description

technical field [0001] The present invention relates to mobile communication technology, in particular to a method and device for generating a cyclic redundancy check code (Cyclic Redundancy Check, CRC). Background technique [0002] The cyclic redundancy check code is the most commonly used error check code in the field of data communication, and its characteristic is that the lengths of the information field and the check field can be selected arbitrarily. When sending, the sender calculates the CRC check code of the sent data according to the CRC generator polynomial, and attaches the CRC check code to the sent data and sends it out. When receiving, the receiver also calculates the CRC check code of the received data according to the CRC generator polynomial, and compares it with the received CRC check code to detect the correctness of data transmission. Specifically, the binary polynomial that generates the CRC check code is defined as follows: [0003] M(X)*X N =G(X)...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H03M13/03H03M13/09
CPCH03M13/033H03M13/09
Inventor 张永伟
Owner CHENGDU TD TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products