Method and device for generating cyclic redundancy check code

A cyclic redundancy check and generator polynomial technology, which is applied in the field of cyclic redundancy check code generation, can solve the problems affecting data processing efficiency, increase the number of CRC shifts, and increase the amount of calculation, so as to save computational overhead, The effect of reducing the number of shifts and improving the generation efficiency

Active Publication Date: 2021-10-19
CHENGDU TD TECH LTD
View PDF3 Cites 0 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 device for generating cyclic redundancy check code
  • Method and device for generating cyclic redundancy check code
  • Method and device 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 present application discloses a method and device for generating a cyclic redundancy check code, wherein the method includes: converting a preset generator polynomial G(X) into a binary code G(n); converting the cyclic redundancy check code to be generated The information M(X) is converted into binary code M(k); among them, n=0,1,...,N; k=0,1,...,K‑1; N is the order of G(X) , K is the number of digits of M(k); according to the M(k) and the G(n), the preset feedback shift register group is used to calculate M(k)*X by shifting successively N Modulo 2 is divided by the remainder of G(n), and the remainder is used as the cyclic redundancy check code of the M(k); wherein, the feedback shift register group is 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) is constructed; the Q(i-1) represents the quotient of the i-1th shift and division, the + represents the modulo 2 addition operation symbol, and the * represents Multiplication symbol, X ‑n A symbol representing a logical right shift n times, i=1,...,K. By adopting the invention, the calculation cost can be saved, and the generation efficiency of CRC 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 Patents(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