CN109960674A - A kind of USB interface interconnected method and system based on FPGA - Google Patents

A kind of USB interface interconnected method and system based on FPGA Download PDF

Info

Publication number
CN109960674A
CN109960674A CN201910274084.0A CN201910274084A CN109960674A CN 109960674 A CN109960674 A CN 109960674A CN 201910274084 A CN201910274084 A CN 201910274084A CN 109960674 A CN109960674 A CN 109960674A
Authority
CN
China
Prior art keywords
usb interface
data
module
fpga
usb
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.)
Pending
Application number
CN201910274084.0A
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.)
Jinan Inspur Hi Tech Investment and Development Co Ltd
Original Assignee
Jinan Inspur Hi Tech Investment and Development Co Ltd
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 Jinan Inspur Hi Tech Investment and Development Co Ltd filed Critical Jinan Inspur Hi Tech Investment and Development Co Ltd
Priority to CN201910274084.0A priority Critical patent/CN109960674A/en
Publication of CN109960674A publication Critical patent/CN109960674A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Systems (AREA)

Abstract

The present invention relates to field of data transmission, specifically provide a kind of USB interface interconnected method and system based on FPGA.The system includes FPGA and several chips with USB interface, and USB interface sending/receiving module, usb protocol parsing module, FIFO, message analysis module and arbitration Switching Module are arranged in FPGA;Several chips with USB interface are connect with USB interface sending/receiving module, realize the transmission of data, according to the parameter in data, by the forward-path of arbitration Switching Module selection data.Compared with prior art, some data sharings and interconnection of each chip chamber not only may be implemented in the present invention, and the system is also made to have higher flexibility and better performance, have good promotional value.

Description

A kind of USB interface interconnected method and system based on FPGA
Technical field
The present invention relates to technical field of data transmission, specifically provide a kind of USB interface interconnected method based on FPGA and are System.
Background technique
FPGA (Field Programmable Gate Array), i.e. field programmable gate array have very high flexible Property, while FPGA has I/O pin abundant, short relative to the ASIC development cycle, reliability is higher.
USB is an external bus standard, for being connected and communicate with for specification computer and external equipment.USB interface is supported The plug and play and warm connection function of equipment.USB interface can be used for connect up to 127 kinds of peripheral hardwares, as mouse, modem and Keyboard etc..USB is to be proposed in the end of the year 1994 by Intel, Compaq, IBM, Microsoft Deng Duo company joint, from 1996 After year releasing, successfully substitute serial ports and parallel port, and become current PC and a large amount of smart machines the interface that must match it One.
At present in field of data transmission, when generally existing multiple interfaces connect multiple ports the larger transmission speed of data volume it is slow and The problem of data are easily lost, it is on the other hand, lower there is also the online configurability of priority and flexibility ratio is not high enough, data it Between transmission and forwarding flexibility ratio also not high enough disadvantage, be further improved.
Summary of the invention
The present invention be directed to above-mentioned the deficiencies in the prior art, provide a kind of practical USB interface interconnection based on FPGA Method.
The further technical assignment of the present invention be to provide it is a kind of design rationally, the safe and applicable USB interface based on FPGA Interacted system.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of USB interface interconnected method based on FPGA, the equipment that this method is related to have FPGA and several with USB interface Chip, USB interface sending/receiving module, usb protocol parsing module, FIFO, message analysis module and arbitration are set in FPGA Switching Module.The transmission mode of this method are as follows: data are respectively sent to USB interface and sent by several chips with USB interface Receiving module, the CRC that USB interface sending/receiving module receives data and accounting counts in, judges according to the CRC in data Whether data are correct;If receiving the wrong chip for just informing opposite end of data retransmits data, if errorless, USB interface transmission is connect It receives module and these data is sent to message analysis module through usb protocol parsing module, message analysis module is by parameter in data It extracts, is sent to arbitration Switching Module, the parameter selection number that arbitration Switching Module is extracted according to message analysis module According to forward-path.
Further, several chips with USB interface refer to that n block has the chip of USB interface, and n is more than or equal to 1 Natural number less than or equal to 10.
Further, the USB interface sending/receiving module simulates the Read-write Catrol of USB according to the interface sequence of USB.
Preferably, several chips with USB interface send number to USB interface sending/receiving module simultaneously According to the format of above-mentioned data is heading+data+message trailer, wherein the heading includes header indicatingjhe number, source ID, mesh ID and priority, the message trailer include tail portion indication signal and CRC.
Further, the parameter that the message analysis module extracts includes source ID, purpose ID and priority.
Further, it is extracted when the forward-path of the arbitration Switching Module selection data depending on message analysis module Purpose ID.
Preferably, according to arriving first the principle first handled when the arbitration modules carry out data processing.
Further, when first handling the data that one group of chip with USB interface is sent, other have the core of USB interface The data that piece is sent, which can be buffered in FIFO, to be waited.
Further, if having the data of the chip transmission of not homologous ID in the data stored in FIFO while reaching, The mode of arbitration Switching Module priority processing has 3 kinds, as follows:
1. determining preferential forwarding according to the priority screened in message analysis module;
2. determining the data of priority processing according to the numerical values recited of data source ID if priority is identical, source ID is small High priority data processing;
3. the size of source ID is also identical if priority is identical, then using the method for timesharing slice, pass through one in each time The data packet of a source ID, the next period by the data packet of another source ID, and so on interact the transmissions of data.
A kind of system of the USB interface interconnection based on FPGA, includes FPGA and several chips with USB interface, wherein USB interface sending/receiving module, usb protocol parsing module, FIFO, message analysis module and arbitration interchange mode are set in FPGA Block.
Several chips with USB interface are connect with USB interface sending/receiving module, USB interface sending/receiving Block receives above-mentioned data and can calculate the CRC in message;Usb protocol parsing module by from USB interface sending/receiving module come Data are further parsed;FIFO is used to store the data of usb protocol parsing module;Message analysis module is by USB interface Source ID, purpose ID and priority extract in the data message head that sending/receiving module is sent;Switching Module is arbitrated according to report The forward-path for the purpose ID selection data that literary analysis module is extracted.Several chips with USB interface refer to that n block has The chip of USB interface, n are the natural number for being less than or equal to 10 more than or equal to 1.
Compared to the prior art a kind of USB interface interconnected method and system based on FPGA of the invention, has following prominent Out the utility model has the advantages that some data of each chip chamber not only may be implemented in USB interface interconnected method and system based on FPGA Shared and interconnection also makes the system have higher flexibility and better performance, meanwhile, the USB interface based on FPGA Interconnected method and system also have data transmission bauds fast, and the feature that priority can configure online and flexibility ratio is high has good Good promotion and use value.
Detailed description of the invention
Attached drawing 1 is a kind of system block diagram of USB interface interacted system based on FPGA;
Specific embodiment
In order to make those skilled in the art better understand the solution of the present invention, below with reference to specific embodiment pair The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than complete The embodiment in portion.Based on the embodiments of the present invention, those of ordinary skill in the art are without making creative work Every other embodiment obtained shall fall within the protection scope of the present invention.
A most preferred embodiment is given below:
As shown in Figure 1, a kind of system of the USB interface interconnection based on FPGA, comprising FPGA and several with USB interface Chip, several chips with USB interface refer to that n block has the chip of USB interface, and wherein n is to be less than or equal to more than or equal to 1 10 natural number.In FPGA be arranged USB interface sending/receiving module, usb protocol parsing module, FIFO, message analysis module and Arbitrate Switching Module.
Several chips with USB interface are connect with USB interface sending/receiving module, USB interface sending/receiving Block receives above-mentioned data and can calculate the CRC in message;Usb protocol parsing module by from USB interface sending/receiving module come Data are further parsed;FIFO is used to store the data of usb protocol parsing module;Message analysis module is by USB interface Source ID, purpose ID and priority extract in the data message head that sending/receiving module is sent;Switching Module is arbitrated according to report The forward-path for the purpose ID selection data that literary analysis module is extracted.Above-mentioned several chips with USB interface, USB interface hair Sending between receiving module, usb protocol parsing module, FIFO, message analysis module and arbitration Switching Module data is all mutually to pass It send.
For the chip and FPGA by 5 with USB interface carry out data transmission below, transmission mode are as follows: 5 have The chip of USB interface is respectively chip 0, chip 1, chip 2, chip 3, chip 4, and said chip is sent data to simultaneously respectively USB interface sending/receiving module simulates the Read-write Catrol of USB, USB interface sending/receiving module according to the interface sequence of USB The data CRC that simultaneously accounting counts in is received, above-mentioned received data all meet heading+data+message trailer format.Its In, heading includes header indicatingjhe number, source ID, purpose ID and priority, and message trailer includes tail portion indication signal and CRC.Root Judge whether data are correct according to the CRC in message;If receiving the wrong chip for just informing opposite end of data retransmits data, if Errorless, these data are sent to message analysis module, message point through usb protocol parsing module by USB interface sending/receiving module Analysis module comes out the parameter extractions such as source ID, purpose ID and priority in message, is sent to arbitration Switching Module, arbitration exchange The forward-path for the purpose ID selection data that module is extracted according to message analysis module.
Wherein, one group is first handled with USB according to the principle first handled is arrived first when arbitration Switching Module progress data processing When the data that the chip of interface is sent, the data that other chips with USB interface are sent, which can be buffered in FIFO, to be waited.With core For piece 0 to chip 4, if the data of chip 0 to chip 4 successively reach, arbitrates Switching Module and first handle the transmission of chip 0 Data, the data that chip 1, chip 2, chip 3 and chip 4 are sent, which can be buffered in FIFO, to be waited;If chip 0 and chip 1 are sent Data simultaneously when reaching, according to the different source ID of chip 0 and chip 1, the mode for arbitrating Switching Module priority processing has 3 kinds, It is as follows:
1. determining preferential forwarding according to the priority screened in message analysis module;
2. determining the data of priority processing according to the numerical values recited of data source ID if priority is identical, source ID is small High priority data processing;
3. the size of source ID is also identical if priority is identical, then using the method for timesharing slice, pass through one in each time The data packet of a source ID, the next period by the data packet of another source ID, and so on interact the transmissions of data.
It is waited at this point, chip 2 can be all buffered in FIFO to the data that chip 4 is sent.
Above-mentioned specific embodiment is only the specific case of the present invention, and scope of patent protection of the invention includes but unlimited In above-mentioned specific embodiment, any method and system right for meeting the USB interface interconnection of the invention based on FPGA is wanted Ask book and any technical field those of ordinary skill appropriate variation or replacement that it is made, it should all fall into the present invention Scope of patent protection.

Claims (10)

1. a kind of USB interface interconnected method based on FPGA, which is characterized in that
The equipment that this method is related to has FPGA and several chips with USB interface, and USB interface sending/receiving is arranged in FPGA Block, usb protocol parsing module, FIFO, message analysis module and arbitration Switching Module;
The transmission mode of this method are as follows: several chips with USB interface send data to USB interface sending/receiving respectively Block, the CRC that USB interface sending/receiving module receives data and accounting counts in, judges that data are according to the CRC in data It is no correct;If receiving the wrong chip for just informing opposite end of data retransmits data, if errorless, USB interface sending/receiving module These data are sent to message analysis module through usb protocol parsing module, message analysis module goes out parameter extraction in data Come, be sent to arbitration Switching Module, the parameter selection data that arbitration Switching Module is extracted according to message analysis module turn Send out path.
2. a kind of USB interface interconnected method based on FPGA according to claim 1, it is characterised in that described several to have The chip of USB interface refers to that n block has the chip of USB interface, and n is the natural number for being less than or equal to 10 more than or equal to 1.
3. a kind of USB interface interconnected method based on FPGA according to claim 1, it is characterised in that the USB interface Sending/receiving module simulates the Read-write Catrol of USB according to the interface sequence of USB.
4. a kind of USB interface interconnected method based on FPGA according to claim 1, it is characterised in that several bands There is the chip of USB interface to send data to USB interface sending/receiving module simultaneously, the formats of above-mentioned data be heading+data+ Message trailer, wherein the heading includes header indicatingjhe number, source ID, purpose ID and priority, and the message trailer includes tail portion Indication signal and CRC.
5. a kind of USB interface interconnected method based on FPGA according to claim 4, it is characterised in that the message analysis The parameter that module extracts includes source ID, purpose ID and priority.
6. a kind of USB interface interconnected method based on FPGA according to claim 5, it is characterised in that the arbitration exchange Module selects the purpose ID extracted when the forward-path of data depending on message analysis module.
7. a kind of USB interface interconnected method based on FPGA according to claim 6, it is characterised in that the arbitration exchange According to arriving first the principle first handled when module carries out data processing.
8. a kind of USB interface interconnected method based on FPGA according to claim 7, it is characterised in that the arbitration exchange When the data that one group of the resume module chip with USB interface is sent, the data that other chips with USB interface are sent can be delayed There are wait in FIFO.
9. a kind of USB interface interconnected method based on FPGA according to claim 8, it is characterised in that described in FIFO If there are the data of the chip transmission of not homologous ID in the data of storage while reaching, the mode of Switching Module priority processing is arbitrated There are 3 kinds, as follows:
1. determining preferential forwarding according to the priority screened in message analysis module;
2. determining the data of priority processing, source ID small data according to the numerical values recited of data source ID if priority is identical Priority processing;
3. the size of source ID is also identical if priority is identical, then using the method for timesharing slice, pass through a source in each time The data packet of ID, the next period by the data packet of another source ID, and so on interact the transmissions of data.
10. a kind of system of the USB interface interconnection based on FPGA, which is characterized in that comprising FPGA and several with USB interface Chip, wherein USB interface sending/receiving module, usb protocol parsing module, FIFO, message analysis module and secondary are set in FPGA Cut out Switching Module;
Several chips with USB interface are connect with USB interface sending/receiving module, and USB interface sending/receiving module connects It receives above-mentioned data and the CRC in message can be calculated;The data that usb protocol parsing module will come from USB interface sending/receiving module Further parsed;FIFO is used to store the data of usb protocol parsing module;Message analysis module sends USB interface Source ID, purpose ID and priority extract in the data message head that receiving module is sent;Switching Module is arbitrated according to message point Analyse the forward-path for the purpose ID selection data that module is extracted.
CN201910274084.0A 2019-04-08 2019-04-08 A kind of USB interface interconnected method and system based on FPGA Pending CN109960674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910274084.0A CN109960674A (en) 2019-04-08 2019-04-08 A kind of USB interface interconnected method and system based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910274084.0A CN109960674A (en) 2019-04-08 2019-04-08 A kind of USB interface interconnected method and system based on FPGA

Publications (1)

Publication Number Publication Date
CN109960674A true CN109960674A (en) 2019-07-02

Family

ID=67025732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910274084.0A Pending CN109960674A (en) 2019-04-08 2019-04-08 A kind of USB interface interconnected method and system based on FPGA

Country Status (1)

Country Link
CN (1) CN109960674A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274180A (en) * 2020-01-17 2020-06-12 济南浪潮高新科技投资发展有限公司 Aurora and Rapid IO interface conversion device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005262A1 (en) * 2006-06-16 2008-01-03 Henry Wurzburg Peripheral Sharing USB Hub for a Wireless Host
US20090006699A1 (en) * 2007-06-28 2009-01-01 Broadcom Corporation Universal serial bus dongle device with global positioning and system for use therewith
CN203191970U (en) * 2013-04-12 2013-09-11 浪潮电子信息产业股份有限公司 Switchable USB port design
CN103530245A (en) * 2013-10-31 2014-01-22 武汉邮电科学研究院 SRIO interconnection exchanging device based on field programmable gate array (FPGA)
CN105553883A (en) * 2014-10-28 2016-05-04 江苏绿扬电子仪器集团有限公司 Multi-DSP data exchange apparatus based on FPGA
CN105978778A (en) * 2016-07-01 2016-09-28 南京理工大学 Ethernet and serial port/CAN protocol conversion device based on STM32
US20160321200A1 (en) * 2015-04-28 2016-11-03 Liqid Inc. Enhanced initialization for data storage assemblies
CN207869252U (en) * 2017-12-28 2018-09-14 天津益华微电子有限公司 4K direct-broadcasting code stream transmission control unit (TCU)s based on high resolution audio and video live broadcast system
US20180285308A1 (en) * 2017-04-03 2018-10-04 Futurewei Technologies, Inc. Universal serial bus network switch

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005262A1 (en) * 2006-06-16 2008-01-03 Henry Wurzburg Peripheral Sharing USB Hub for a Wireless Host
US20090006699A1 (en) * 2007-06-28 2009-01-01 Broadcom Corporation Universal serial bus dongle device with global positioning and system for use therewith
CN203191970U (en) * 2013-04-12 2013-09-11 浪潮电子信息产业股份有限公司 Switchable USB port design
CN103530245A (en) * 2013-10-31 2014-01-22 武汉邮电科学研究院 SRIO interconnection exchanging device based on field programmable gate array (FPGA)
CN105553883A (en) * 2014-10-28 2016-05-04 江苏绿扬电子仪器集团有限公司 Multi-DSP data exchange apparatus based on FPGA
US20160321200A1 (en) * 2015-04-28 2016-11-03 Liqid Inc. Enhanced initialization for data storage assemblies
CN105978778A (en) * 2016-07-01 2016-09-28 南京理工大学 Ethernet and serial port/CAN protocol conversion device based on STM32
US20180285308A1 (en) * 2017-04-03 2018-10-04 Futurewei Technologies, Inc. Universal serial bus network switch
CN207869252U (en) * 2017-12-28 2018-09-14 天津益华微电子有限公司 4K direct-broadcasting code stream transmission control unit (TCU)s based on high resolution audio and video live broadcast system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙利刚: ""机间数据链设计与仿真"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274180A (en) * 2020-01-17 2020-06-12 济南浪潮高新科技投资发展有限公司 Aurora and Rapid IO interface conversion device

Similar Documents

Publication Publication Date Title
CN106612141B (en) A kind of fiber channel protocol common simulation test card and its data interactive method
CN102495920B (en) Integrated logic analysis module based on PCIe (peripheral component interconnection express) for FPGA (field programmable gate array)
CN101320361B (en) Multi-CPU communication method and system
CN104348673B (en) A kind of method of commissioning, master control borad and business board
CN101789889A (en) Method and system for automatic testing communication equipment
CN207718364U (en) A kind of multichannel RS-422 serial ports expansion interfaces based on FPGA
CN114297124B (en) Communication system of SRIO high-speed bus based on FPGA
CN111800226B (en) Sideband management circuit and method based on hardware arbitration
CN103595627A (en) NoC router based on multicast dimension order routing algorithm and routing algorithm thereof
US6842792B2 (en) Method and/or apparatus to sort request commands for SCSI multi-command packets
CN102185833A (en) Fiber channel (FC) input/output (I/O) parallel processing method based on field programmable gate array (FPGA)
CN103823785B (en) Multi-way ARINC429 data transmit-receive circuit structure based on development of DSP and CPLD
CN102937944B (en) A kind of based on Arcnet serial server
CN109960674A (en) A kind of USB interface interconnected method and system based on FPGA
CN102761488A (en) High-speed full duplex switched Ethernet controller
CN109597777A (en) A kind of MCBSP interface inter-link device and method based on FPGA
CN103106177B (en) Interconnect architecture and method thereof on the sheet of multi-core network processor
CN104598430A (en) Network interface interconnection design and control system of CPU interconnection expansion system
CN110517419A (en) Interception serial ports cash register print data and the method and system for pursuing and attacking additional information
CN110533848A (en) Interception parallel port cash register print data and the method and system for pursuing and attacking additional information
CN102214155A (en) Serial server
CN116074406A (en) Instruction sending method and device
CN101488910A (en) Method and device for communication between several connection interfaces
CN109189711A (en) Serial console interface and its application method based on Ethernet
CN204597989U (en) Based on the AFDX terminal test equipment of CPCI interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190702