CN201846342U - Rate self-adaptive CRC implementation device - Google Patents

Rate self-adaptive CRC implementation device Download PDF

Info

Publication number
CN201846342U
CN201846342U CN2010205536440U CN201020553644U CN201846342U CN 201846342 U CN201846342 U CN 201846342U CN 2010205536440 U CN2010205536440 U CN 2010205536440U CN 201020553644 U CN201020553644 U CN 201020553644U CN 201846342 U CN201846342 U CN 201846342U
Authority
CN
China
Prior art keywords
crc
sign indicating
indicating number
unit
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2010205536440U
Other languages
Chinese (zh)
Inventor
冯志华
高社生
王党辉
薛丽
王建超
杨可
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN2010205536440U priority Critical patent/CN201846342U/en
Application granted granted Critical
Publication of CN201846342U publication Critical patent/CN201846342U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Error Detection And Correction (AREA)

Abstract

The utility model relates to a rate self-adaptive CRC (Cyclic Redundancy Code) implementation device. The implementation device is technically characterized in that the output end of a rate detector is connected with the rate input ends of a plurality of identical XOR units in a CRC check unit and the rate input end of a data selector, the data input ends of the plurality of identical XOR units are connected with input data, the CRC output end of each XOR unit is connected with the CRC input end of the next-stage XOR unit, and the output end of the data selector is in feedback connection with the CRC input end of the first XOR unit. The implementation device has the benefits of remarkably improving the calculation performance during implementation of CRC and solving the problem of fast checking during communication data transmission of a serial bus. The method adopted by the utility model can effectively improve the transmission rate of the serial bus, and save the logical resource of chips. Besides, when the implementation device runs at low speed, the resource consumption is low, and the power consumption of the chips is reduced.

Description

A kind of implement device of adaptation rate CRC sign indicating number
Technical field
The utility model relates to a kind of implement device of adaptation rate CRC sign indicating number, relates in particular to a kind of implement device of adaptation rate CRC sign indicating number of IEEE1394 standard high speed serial bus.
Background technology
Cyclic redundancy code (CRC) is a check code commonly used in the serial bus communication, generates the CRC sign indicating number at transmitting terminal, at receiving terminal then according to the CRC sign indicating number to the error detection of transmission data, to determine in data transmission procedure whether wrong generation.
IEEE1394 claims FireWire (live wire) again, is a kind of high speed of Apple company issue in 1987, real-time serial bus standard.It is the center with the computer, and collection calculating, amusement, communication and various multimedia application are one, and microcomputer industry and electrical appliance industry are connected.IEEE1394 has 100Mbps, 200Mbps, speed that 400Mbps, 800Mbps are different.The IEEE1394 bus communication adopts CRC-32 proper polynomial: X 32+ X 26+ X 23+ X 22+ X 16+ X 12+ X 11+ X 10+ X 8+ X 7+ X 5+ X 4+ X 2+ X+1.
In the prior art, before the verification of carrying out CRC, earlier serial data is converted to the data of same widths, adopt the linear feedback XOR unit of fixing input width to realize the CRC sign indicating number then.Because the IEEE1394 high-speed serial bus in transmission speed physics/LI(link interface) data width difference simultaneously not, adopts fixing input width C RC sign indicating number can not cause treatment effeciency high or take more logical resource.
Summary of the invention
The technical problem that solves
For fear of the deficiencies in the prior art part, the utility model proposes a kind of implement device of adaptation rate CRC sign indicating number, be specially adapted to the CRC check in the IEEE1394 standard high speed serial bus links layer controller.
Technical scheme
A kind of implement device of adaptation rate CRC sign indicating number is characterized in that comprising rate detector, CRC check unit and data selector; Described CRC check unit comprises several same XOR unit; The speed input of several same XOR unit connects in the output of rate detector and the CRC check unit, and connect with the speed input of data selector, the data input pin of several same XOR unit connects with the input data, the CRC sign indicating number output of each XOR unit connects with the CRC sign indicating number input of next stage XOR unit, and the output feedback of data selector connects the CRC sign indicating number input of first XOR unit; Message transmission rate is 100Mbps, 200Mbps, during 400Mbps/800Mbps, the bit wide of input data is respectively two, four and eight, promptly the CRC sign indicating number output of the second level, the fourth stage and the 8th grade of XOR unit is connected with the CRC sign indicating number input of data selector.
When message transmission rate is 400Mbps, and the input data width be eight, in the CRC check unit in several same XOR unit be eight.
When message transmission rate is 800Mbps, and the input data width be eight, in the CRC check unit in several same XOR unit be eight.
When message transmission rate 200Mbps, and the input data width be four, in the CRC check unit in several same XOR unit be four.
When message transmission rate is 100Mbps, and the input data width be two, in the CRC check unit in several same XOR unit be two.
The transmission rate detector is used for the bus data sequence of input is detected, and obtains the message transmission rate of bus, and the speed result is sent to CRC check unit and data strobe device;
Eight identical XOR unit are arranged in the CRC check unit, can be according to the number of the inner XOR unit that uses of the adaptive configuration of the detected message transmission rate of transmission rate detector:, use eight XOR cell processing eight bit wides to import data in the CRC check unit when message transmission rate during as 400Mbps; When message transmission rate 800Mbps, the bus data width still is eight, and frequency is doubled, and therefore also adopts eight inputs of eight XOR cell processing data; When message transmission rate is 200Mbps, four XOR cell processing four bit wides input data have been used in the CRC check unit; When message transmission rate is 100Mbps, use two XOR cell processing two bit wides input data in the CRC check unit, same device can obtain the CRC sign indicating number operation result under the different rates, at last CRC sign indicating number operation result is sent to data strobe device;
Data strobe device, the CRC sign indicating number operation result under four kinds of speed that are used for sending from the CRC check unit is selected the CRC sign indicating number that is complementary with the detected message transmission rate of transmission rate detector as final CRC sign indicating number output.
Beneficial effect
The implement device of the adaptation rate CRC sign indicating number that the utility model proposes has been realized the CRC hardware check of adaptation rate.It discerns the universal serial bus message transmission rate under the effect of transmission rate detector, dispose CRC check unit number automatically, by the final CRC sign indicating number of data strobe device output.The utility model method can effectively improve the universal serial bus transmission rate, saves the chip logic resource, and the resource of using during low speed is few, has reduced the power consumption of chip.
Description of drawings
Fig. 1 is the CRC sign indicating number implement device structural representation of adaptation rate.
Fig. 2 is the CRC sign indicating number implement device XOR element circuit schematic diagram of adaptation rate.
Fig. 3 is that the CRC sign indicating number of adaptation rate produces circuit diagram.
Fig. 4 is the CRC code check circuit diagram of adaptation rate.
Embodiment
Now in conjunction with the embodiments, accompanying drawing is further described the utility model:
CRC sign indicating number implementation structure figure when as shown in Figure 1, being 800Mbps for the maximum data transmission rate.
A kind of implement device of adaptation rate CRC sign indicating number comprises transmission rate detector 10 and CRC check unit 20, also comprise data strobe device 30, wherein CRC check unit 20 comprises eight XOR unit: XOR unit 21, XOR unit 22, XOR unit 23, XOR unit 24, XOR unit 25, XOR unit 26, XOR unit 27, XOR unit 28.
The speed input of eight identical XOR unit and data strobe device 30 is connected in the speed output of transmission rate detector 10 and the CRC check unit 20, each of the eight bit data of input is connected with the data input pin of XOR unit 21 to XOR unit 28 in the CRC check unit 20 respectively according to the order from a high position to the low level, the CRC sign indicating number output of each the XOR unit in the CRC check unit 20 except that XOR unit 28 is connected with the CRC sign indicating number input of next XOR unit, XOR unit 22 in the CRC check unit 20,24,28 CRC sign indicating number output is connected with three CRC sign indicating number inputs of data strobe device 30 respectively, and the CRC sign indicating number input of the XOR unit 21 in the CRC sign indicating number output of data strobe device 30 and the CRC check unit 20 is connected.
Transmission rate detector 10 is used for the bus data sequence of input is detected, and obtains the message transmission rate of bus, and the speed result is sent to CRC check unit 20 and data strobe device 30.
Eight XOR unit have been comprised in the CRC check unit 20.Be illustrated in figure 3 as the structural representation of XOR unit 22, the structure of each the XOR unit all structure with XOR unit 22 is the same, and difference is the comparison value difference of speed comparator: in XOR unit 21,22, the comparison value of speed comparator is 2 ' b01; In XOR unit 23,24, the comparison value of speed comparator is 2 ' b10; In XOR unit 25,26,27,28, the comparison value of speed comparator is 2 ' b11.In the CRC of this programme sign indicating number device for carrying out said, the XOR element circuit will be imported the highest order of the CRC sign indicating number of data and input and carry out XOR, if 0, then Shu Ru CRC sign indicating number moves to left one, otherwise, the CRC sign indicating number of input moves to left after one and generator polynomial sign indicating number 32 ' h04C11DB7 XOR, the CRC sign indicating number that obtains exporting again.Data follow-up everybody carry out XOR, the CRC sign indicating number that obtains exporting with the highest order of the CRC sign indicating number of a last output successively.The CRC sign indicating number that is input as data strobe device 30 feedbacks of first XOR unit 21CRC sign indicating number in the CRC check unit 20, its initial value is 32 ' hFFFFFFFF; The input CRC sign indicating number of the XOR unit 22 of back to XOR unit 28 is the output CRC sign indicating number of a last XOR unit.Each XOR unit obtains exporting the CRC sign indicating number after correspondence is imported data bit and the computing of input CRC sign indicating number, and XOR unit 21 to XOR unit 27 will be exported the CRC sign indicating number and send to next XOR unit.The output CRC sign indicating number of XOR unit 22,24,28 sends to data strobe device 30, selects back output CRC sign indicating numbers to carry out computing as new initial CRC sign indicating number with follow-up through data strobe device 30.The CRC check unit is according to the inner employed XOR of the transmission rate detector adaptive configuration of 10 detected message transmission rates unit number: when message transmission rate is 400Mbps, whole eight XOR unit have been used in the CRC check unit 20, each eight bit data of handling repeats four coprocessing and finishes 32 bit data and obtain the CRC check result; When message transmission rate 800Mbps, the bus data width still is eight, and frequency is doubled, and therefore also adopts eight XOR unit; Message transmission rate has been used four XOR unit (XOR unit 21,22,23,24) during for 200Mbps, handles the four figures certificate at every turn, repeats eight coprocessing and finishes 32 bit data and obtain the CRC check result; Message transmission rate is used two XOR unit (XOR unit 21,22) during for 100Mbps, handles two bits at every turn, repeats 16 coprocessing and finishes 32 bit data and obtain the CRC check result.
Data strobe device 30, the CRC sign indicating number under four kinds of speed that are used for sending from CRC check unit 20 are selected the CRC sign indicating number that is complementary with transmission rate detector 10 detected message transmission rates as final CRC sign indicating number output.
Adopt the CRC of IEEE1394 bus transmitting element of the implement device of this adaptation rate CRC sign indicating number to produce circuit as shown in Figure 4, with the CRC sign indicating number negate that calculates as the output result.
Adopt this adaptation rate CRC sign indicating number implement device IEEE1394 bus receiving element the CRC check circuit as shown in Figure 5, according to the CRC sign indicating number that calculates and 32 ' hC704_DD7B relatively, the identical data that show are passed through CRC check.

Claims (5)

1. the implement device of an adaptation rate CRC sign indicating number is characterized in that comprising rate detector, CRC check unit and data selector; Described CRC check unit comprises several same XOR unit; The speed input of several same XOR unit connects in the output of rate detector and the CRC check unit, and connect with the speed input of data selector, the data input pin of several same XOR unit connects with the input data, the CRC sign indicating number output of each XOR unit connects with the CRC sign indicating number input of next stage XOR unit, and the output feedback of data selector connects the CRC sign indicating number input of first XOR unit; Message transmission rate is 100Mbps, 200Mbps, during 400Mbps/800Mbps, the bit wide of input data is respectively two, four and eight, promptly the CRC sign indicating number output of the second level, the fourth stage and the 8th grade of XOR unit is connected with the CRC sign indicating number input of data selector.
2. the implement device of adaptation rate CRC sign indicating number according to claim 1 is characterized in that: when message transmission rate is 400Mbps, and the input data width be eight, in the CRC check unit in several same XOR unit be eight.
3. the implement device of adaptation rate CRC sign indicating number according to claim 1 is characterized in that: when message transmission rate is 800Mbps, and the input data width be eight, in the CRC check unit in several same XOR unit be eight.
4. the implement device of adaptation rate CRC sign indicating number according to claim 1 is characterized in that: when message transmission rate 200Mbps, and the input data width be four, in the CRC check unit in several same XOR unit be four.
5. the implement device of adaptation rate CRC sign indicating number according to claim 1 is characterized in that: when message transmission rate is 100Mbps, and the input data width be two, in the CRC check unit in several same XOR unit be two.
CN2010205536440U 2010-09-30 2010-09-30 Rate self-adaptive CRC implementation device Expired - Fee Related CN201846342U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010205536440U CN201846342U (en) 2010-09-30 2010-09-30 Rate self-adaptive CRC implementation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010205536440U CN201846342U (en) 2010-09-30 2010-09-30 Rate self-adaptive CRC implementation device

Publications (1)

Publication Number Publication Date
CN201846342U true CN201846342U (en) 2011-05-25

Family

ID=44041217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010205536440U Expired - Fee Related CN201846342U (en) 2010-09-30 2010-09-30 Rate self-adaptive CRC implementation device

Country Status (1)

Country Link
CN (1) CN201846342U (en)

Similar Documents

Publication Publication Date Title
CN103716137A (en) Method and system for identifying reasons of ZigBee sensor network packet loss
CN103647777A (en) Safety certificate method and bidirectional forwarding detection BFD equipment
CN102546089B (en) Method and device for implementing cycle redundancy check (CRC) code
US20120102382A1 (en) Method and Device for Fast Cyclic Redundancy Check Coding
CN101702639A (en) Check value calculation method and device of cyclic redundancy check
CN110943762A (en) Direct-current power line carrier communication method based on differential Manchester coding and air conditioner
CN111930666A (en) High-speed configurable industrial protocol converter
CN105322973A (en) RS code coder and coding method
CN104767828A (en) Inter-chip high-speed interconnection link layer design method and system
CN101976214B (en) Self-adaptive rate cyclic redundancy check (CRC) code implementation method and device
CN105721107B (en) A kind of piecemeal calculates device and method of the CRC to improve clock frequency
CN201846342U (en) Rate self-adaptive CRC implementation device
CN102130744B (en) Method and device for computing Cyclic Redundancy Check (CRC) code
CN114500605A (en) Industrial Internet of things data transmission method based on 5G and intelligent gateway
CN107733568B (en) Method and device for realizing CRC parallel computation based on FPGA
CN103795443A (en) Novel power line power frequency communication method and device
CN108233944A (en) A kind of cyclic redundancy check method, equipment and storage medium
CN206003086U (en) A kind of high-speed data acquiring device based on descriptor
CN103763064A (en) CRC code generating method and circuit applicable to ultra-high-speed communication system
CN103841047A (en) Link aggregation method and device
CN204615911U (en) A kind of modem chip of low-voltage powerline carrier communication and device
CN104242956B (en) Based on the random high-performance low complex degree ldpc decoder for calculating
CN106209307A (en) Interconnected method and system between many FPGA sheets
CN102487282A (en) Circuit for realizing variable length CRC operation
CN204347817U (en) The pseudorandom number generator of integrated CRC check circuit

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110525

Termination date: 20120930