CN101707592A - Method for processing SPI4 interface data packet - Google Patents

Method for processing SPI4 interface data packet Download PDF

Info

Publication number
CN101707592A
CN101707592A CN200910093988A CN200910093988A CN101707592A CN 101707592 A CN101707592 A CN 101707592A CN 200910093988 A CN200910093988 A CN 200910093988A CN 200910093988 A CN200910093988 A CN 200910093988A CN 101707592 A CN101707592 A CN 101707592A
Authority
CN
China
Prior art keywords
data
spi4
protocol
interface
burst
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.)
Granted
Application number
CN200910093988A
Other languages
Chinese (zh)
Other versions
CN101707592B (en
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.)
Dawning Information Industry Beijing Co Ltd
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN 200910093988 priority Critical patent/CN101707592B/en
Publication of CN101707592A publication Critical patent/CN101707592A/en
Application granted granted Critical
Publication of CN101707592B publication Critical patent/CN101707592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for processing an SPI4 interface data packet. The method comprises the following steps of: adding PPP frame format data according to the requirement of an SPI4 protocol to obtain data brust; carrying out protocol conversion on the data brust, and sending the data brust subjected to the protocol conversion through an SPI4 interface. By the method, a data packet according with the SPI4 interface protocol can be generated and sent and a common interface of 10Gbps, WAN, LAN, MAN and SAN is realized, so that the interface protocol design is easier for engineering realization, the amount and the functions of pins are reduced, the integrality of signals is enhanced, and the cost of the SPI4 interface is reduced.

Description

The processing method of SPI4 interface data bag
Technical field
The present invention relates to the communications field, and especially, relate to a kind of processing method of SPI4 interface data bag.
Background technology
SPI4 (system's packet switch interface, Level 4) is a new system-level interface standard, and the designer can be according to this standard for data and the communications service concentrated are developed flexibly, upgradeable system.The SPI4 interface is supported the high rate data transmission of a plurality of agreements to have nothing in common with each other, and these agreements comprise packets of information (POS frame), OC-192, Ethernet, Fast Ethernet, megabit Ethernet, 10 megabit Ethernets and the 10 megabit optical-fibre channel SAN etc. on the SONET/SDH.
At present, the SPI4 interface generally is to realize by special ASIC or expensive IP core, form is subjected to bigger constraint, cost is higher, and can not compatible 10Gbps wide area network (Wide AreaNetwork abbreviates WAN as), local area network (LAN) (Local Area Network abbreviates LAN as), metropolitan area network (Metropolitan Area Network, abbreviate MAN as) and storage area network procotols such as (StorageArea Network abbreviate SAN as).
Summary of the invention
Consider the problem of SPI4 interface cost height, poor compatibility in the correlation technique, the object of the present invention is to provide a kind of processing scheme of SPI4 interface data bag, with in addressing the above problem one of at least.
Processing method according to SPI4 interface data bag of the present invention comprises:
Add according to the protocol requirement PPP frame format data of SPI4 and to obtain data burst;
Protocol conversion is carried out in burst to data, by the data burst after the SPI4 interface transmission protocol conversion.
Wherein, PPP frame format data being added the processing that obtains data burst comprises: PPP frame format data are added 16 bit protocol heads obtain data burst.
And the processing of PPP frame format data being added protocol header comprises: the head to PPP frame format data adds packet start information, and the afterbody of PPP frame format data is added end-of-packet information, thereby obtains data burst.
Wherein, the length of the data burst that obtains after the interpolation is 32 bytes.
In addition, the processing that protocol conversion is carried out in data bursts comprises: by data burst is converted to two data of prolonging and comes that burst realizes the protocol conversion of 32 bit fields to 16 bit fields to data by singly prolonging data.
By means of technical scheme of the present invention, can generate and send the packet that meets the SPI4 interface protocol, realize the common interface of 10Gbps WAN, LAN, MAN and SAN, make the interface protocol design be easier to Project Realization, reduce number of pin and power consumption, the enhancing signal integrality, the cost of reduction SPI4 interface.
Description of drawings
Fig. 1 is the flow chart according to the processing method of the SPI4 interface data bag of the embodiment of the invention;
Fig. 2 is the schematic diagram according to the I/O interface model that processing method adopted of the SPI4 interface data bag of the embodiment of the invention;
Fig. 3 is the state machine diagram that is adopted when sending data burst in the processing method of the SPI4 interface data bag of the embodiment of the invention.
Embodiment
Problem at SPI4 interface cost height, poor compatibility in the correlation technique, the present invention proposes to realize by FPGA the processing of SPI4 interface data, make the SPI4 interface compatibility improve greatly by protocol conversion, make that the SPI4 interface can be as the common interface of 10Gbps WAN, LAN, MAN and SAN, and can effectively reduce cost.
The present invention can be by multiple FPGA as carrier, with LX110T FPGA is example, the present invention can application device inside OBUFDS (being used to realize the buffer memory of dateout) and ODDR (be used for list along data or clock be converted to two along) etc. resource handle, describe embodiments of the invention in detail below in conjunction with accompanying drawing.
Fig. 1 is the flow chart according to the processing method of the SPI4 interface data bag of the embodiment of the invention.As shown in Figure 1, the processing method according to the SPI4 interface data bag of the embodiment of the invention comprises:
Step S102 adds to obtain data burst (burst) to point-to-point protocol (Point to Point Protocol abbreviates PPP as) frame format data according to the protocol requirement of SPI4;
Step S104, protocol conversion is carried out in burst to data, and by the burst after the SPI4 interface transmission protocol conversion.
Wherein, in step S 102, need add 16 bit protocol heads to PPP frame format data and obtain burst.In the process of adding, need add the head of PPP frame format data and unwrap the beginning (StartOf Packet, abbreviate SOP as) information, and PPP frame format data are got afterbody add end-of-packet (EndOf Packet, abbreviate EOP as) information, thereby obtain burst, the length of this burst is 32 bytes, makes the recipient can discern this burst.
In step S104, when burst is carried out protocol conversion process, can by the ODDR technology burst be converted to two data of prolonging by singly prolonging data in the I/O part, thereby burst is realized the protocol conversion of 32bit territory to the 16bit territory, standard compliant SPI4 agreement.
By above-mentioned processing, can generate and send the packet that meets the SPI4 protocol requirement, realize the common interface of 10Gbps WAN, LAN, MAN and SAN, reduce the cost that the SPI4 interface is realized, can be applied in the communication equipments such as line interface, switching backplane of router LINK to the descending connection of PHY.
Particularly, in step S102, can adopt ODDR0, ODDR1 in the I/O interface model shown in Figure 2 ..., ODDR15 to the 32bytes data of having added SOP and EOP (SpiTData[0] [16], SpiTData[1] [17] ..., SpiTData[15] [31]) singly prolong the conversion of prolonging to two;
By the control signal SpiTCtrl[1:0 of ODDR16 to input] singly prolong the conversion of prolonging to two;
Clock signal iSpiTStartClk for input then can carry out the clock signal buffer memory by BUFIO and BUFER (1/4);
In addition, for ODDR0 ..., the signal of ODDR15, ODDR16, BUFIO and BUFER output, can before transmission, carry out buffer memory by OBUFDS respectively.Particularly, for ODDR0, ODDR1 ..., the data of ODDR15 after handling, behind buffer memory, can export the ovSpiTData_P/N[0 that satisfies the SPI4 protocol requirement], ovSpiTData_P/N[1] ..., ovSpiTData_P/N[15]; For control signal, can export the control signal oSpiTCtrl_P/N that satisfies the SPI4 protocol requirement behind the buffer memory; For clock signal, after by the OBUFDS buffer memory, can export the clock signal oSpiTClk_P/N that satisfies the SPI4 protocol requirement, receive data for receiving terminal.
In addition, in processing method, can carry out the transmission of packet according to state machine shown in Figure 3 according to the SPI4 interface data bag of the embodiment of the invention.
As shown in Figure 3, as follows according to the state machine that processing method adopted of the SPI4 interface data bag of the embodiment of the invention:
At first, need between transmitting terminal and the receiving terminal to train control by training data (Training data), the length of training can define as required, for example, 5 cycles (cycle), do not match (not match) if training result is transmitting terminal and receiving terminal, then need to restart training;
If transmitting terminal and receiving terminal mate (match) each other, then can enter the wait state of SOP, at this moment, when not detecting SOP,, should transmit empty bag (IDEL) between transmitting terminal and the receiving terminal according to the requirement of agreement, that is the wait sop﹠amp shown in Fig. 3; Send IDEL state;
Detecting SOP and do not detecting as yet under the situation of EOP, transmitting terminal needs per 8 cycles to send detected data burst (burst), empty bag and C control word (C ctrl word);
If detect EOP in 8 cycles, then transmitting terminal need send EOP and empty bag, and returns and wait for next SOP again, and current burst sends and finishes.
In sum, by means of technical scheme of the present invention, can generate and send the packet that meets the requirement of SPI4 interface protocol, make the interface protocol design be easier to Project Realization, reduce number of pin and power consumption, the enhancing signal integrality has realized the common interface of 10Gbps WAN, LAN, MAN and SAN; For needing the 10Gbps flow and, can transplant by simple logic and be applied to the scene fast based on the mega project of FPGA, and can be at different application, simple modification fifo interface and handshake can be used, and have good transplantability.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. the processing method of a SPI4 interface data bag is characterized in that, comprising:
Is that PPP frame format data are added and obtained data burst according to the protocol requirement of SPI4 to point-to-point protocol;
Described data burst is carried out protocol conversion, and by the described data burst after the SPI4 interface transmission protocol conversion.
2. method according to claim 1 is characterized in that, described PPP frame format data is added the processing that obtains described data burst comprise:
Described PPP frame format data are added 16 bit protocol heads obtain described data burst.
3. method according to claim 2 is characterized in that, the processing that described PPP frame format data are added described protocol header comprises:
Head to described PPP frame format data adds packet start information, and the afterbody of described PPP frame format data is added end-of-packet information, thereby obtains described data burst.
4 according to each described method in the claim 1 to 3, it is characterized in that the length of the described data burst that obtains after the interpolation is 32 bytes.
5. method according to claim 1 is characterized in that, the processing of described data burst being carried out described protocol conversion comprises:
By described data burst is converted to and two prolong data and come described data burst is realized the protocol conversion of 32 bit fields to 16 bit fields by singly prolonging data.
CN 200910093988 2009-09-25 2009-09-25 Method for processing SPI4 interface data packet Active CN101707592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910093988 CN101707592B (en) 2009-09-25 2009-09-25 Method for processing SPI4 interface data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910093988 CN101707592B (en) 2009-09-25 2009-09-25 Method for processing SPI4 interface data packet

Publications (2)

Publication Number Publication Date
CN101707592A true CN101707592A (en) 2010-05-12
CN101707592B CN101707592B (en) 2013-07-10

Family

ID=42377784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910093988 Active CN101707592B (en) 2009-09-25 2009-09-25 Method for processing SPI4 interface data packet

Country Status (1)

Country Link
CN (1) CN101707592B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100518140C (en) * 2005-06-15 2009-07-22 华为技术有限公司 SPI4II interface remote transmission realizing method and apparatus
CN100499666C (en) * 2006-04-13 2009-06-10 杭州华三通信技术有限公司 System and method for inter connecting SP14 equipment and PCI Express equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HONG CHEN ETC.: "Design of the SPI interface of 10-Gigabit Ethernet with FPGA", 《PROCEEDINGS OF THE SPIE - THE INTERNATIONAL SOCIETY FOR OPTICAL ENGINEERING》 *
范红永等: "SPI-4.2接口的FPGA实现 ", 《计算机工程》 *

Also Published As

Publication number Publication date
CN101707592B (en) 2013-07-10

Similar Documents

Publication Publication Date Title
KR100795441B1 (en) Communications bus having low latency interrupts and control signals, hotpluggability error detection and recovery and bandwidth allocation
US10348408B2 (en) Method and apparatus for transmitting frame data between near-end device and remote device
CN101022405A (en) Universal framing rule packaging method
CN106717111A (en) Method, device, and system for receiving CPRI data stream and ethernet frame
EP2993914A1 (en) Data transmission method, device and system
KR102450095B1 (en) Data transmission method, transmission device, and reception device
JP6126600B2 (en) Circuit apparatus and method for transmitting signals
EP2579513B1 (en) Node device, integrated circuit and control method in ring transmission system
CN102143185A (en) Data transmission method and data transmission device
CN110838892B (en) High-reliability merging and forwarding method for multi-path full-duplex serial port
CN108988977B (en) Method, device and system for transmitting service flow in flexible Ethernet protocol
US8867538B2 (en) Ethernet media converter supporting high-speed wireless access
CN101707592B (en) Method for processing SPI4 interface data packet
CN111342929A (en) Information sending and receiving method and device and information processing system
CN109639713B (en) IQ data frame and transmission and receiving method
US8798096B2 (en) Method for configuring preamble for communication system, preambler, and apparatus for generating packet using the same
WO2018196833A1 (en) Message sending method and message receiving method and apparatus
CN110865955B (en) High-reliability merging and forwarding system of multi-path full-duplex serial port
EP1798917B1 (en) Method of passing a constant bit rate digital signal through an ethernet interface and system for carrying out the method
CN105323160B (en) Message receiving and sending method and device, channel unit and communication equipment
CN101630996B (en) Ethernet to unframed E1 converter and E1 loopback detection method
CN114846766B (en) Baseband radio frequency interface, communication system and signal receiving method
CN101977186A (en) Device for realizing synchronous transport module level-1 (STM-1) multipath Ethernet over E1 conversion
CN102065395A (en) Method and device for transmitting open base station architecture initiative reference point 3 messages
CN106888173B (en) Universal efficient message communication system and its method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, No. 36

Applicant after: Dawning Information Industry (Beijing) Co.,Ltd.

Address before: 100084 No. 6 South Road, Zhongguancun Academy of Sciences, Beijing, Haidian District

Applicant before: Dawning Information Industry (Beijing) Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing

Patentee after: Dawning Information Industry (Beijing) Co.,Ltd.

Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd.

Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee before: Dawning Information Industry (Beijing) Co.,Ltd.