Movatterモバイル変換


[0]ホーム

URL:


CN103164314B - PCIe interface chip hardware verification method based on asynchronous physical layer interface - Google Patents

PCIe interface chip hardware verification method based on asynchronous physical layer interface
Download PDF

Info

Publication number
CN103164314B
CN103164314BCN201310057124.9ACN201310057124ACN103164314BCN 103164314 BCN103164314 BCN 103164314BCN 201310057124 ACN201310057124 ACN 201310057124ACN 103164314 BCN103164314 BCN 103164314B
Authority
CN
China
Prior art keywords
interface
physical layer
pci express
frequency
message
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
CN201310057124.9A
Other languages
Chinese (zh)
Other versions
CN103164314A (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.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense TechnologyfiledCriticalNational University of Defense Technology
Priority to CN201310057124.9ApriorityCriticalpatent/CN103164314B/en
Publication of CN103164314ApublicationCriticalpatent/CN103164314A/en
Application grantedgrantedCritical
Publication of CN103164314BpublicationCriticalpatent/CN103164314B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention discloses a peripheral component interface express (PCIe) interface chip hardware verification method based on an asynchronous physical layer interface. The implementing steps are as follows: 1), establishing a field programmable gata array (FPGA) hardware platform provided with a standard PCIe interface; 2), inserting the asynchronous physical layer interface used for matching a frequency difference between a physical layer and a PCIe soft core in a PCIe interface chip application specific integrated circuit (ASIC) code to be verified; 3), migrating the PCIe interface chip ASIC code to be verified to the FPGA hardware platform to achieve synthesization, and setting a work frequency of the Physical interface of PCIe (PIPE) according to a synthesized highest frequency of a PCIe interface chip; and 4), using a test program to perform functional tests on the PCIe soft core of the PCIe interface chip and user logic through the FPGA hardware platform. The PCIe interface chip hardware verification method based on the asynchronous physical layer interface can achieve the underclocking hardware verification of the PCIe interface chip, and has the advantages of being capable of being compatible with an existing test code, easy and convenient to achieve, good in generality, and low in resource occupancy rate.

Description

PCIe interface chip hardware verification method based on asynchronous physical layer interface
Technical field
The present invention relates to the hardware verification field of asic chip, be specifically related to a kind of PCIe interface chip hardware verification method based on asynchronous physical layer interface.
Background technology
PCI Express (PCIe) is the I/O bus standard being most widely used at present, and the asic chip structure based on PCI Express interface as shown in Figure 1, mainly consists of Physical layer, the soft core of PCI Express and user logic three parts.Physical layer is responsible for data encoding and string conversion, PCI Express is soft examines existing PCI Express bus protocol, between Physical layer and the soft core of PCI Express, it is an industry standard interface, be called PCI Express physical layer interface (PHY Interface of PCI Express, be called for short PIPE interface), user logic is realized the data processing function of asic chip on PCI Express user interface.
The checking of asic chip mainly contains two kinds of methods: software simulation and hardware verification.Software simulation carries out emulated execution based on simulator to code, but simple and convenient speed is slower, is difficult to the profound mistake in discovery logic design.Hardware verification is comprehensively carried out code on Hardware Verification Platform in real environment, and verifying speed is very fast, but comparatively complicated.In ASIC proof procedure, common two kinds of methods can complement one another, and finally realize all standing to chip functions.
ASIC code does not comprehensively reach the frequency of operation of ASIC reality conventionally to time in FPGA, therefore generally all adopts the mode of frequency reducing checking, FPGA frequency of operation is reduced to the part of ASIC frequency of operation.The frequency reducing of internal logic code is on functional verification not impact conventionally, external interface generally need to communicate (for example PCI Express end node devices need to be connected the PCI Express root node equipment on mainboard) with the equipment beyond FPGA verification platform, if the interface rate of FPGA verification platform and the interface rate of miscellaneous equipment are inconsistent, just cannot carry out normal data transmission.Between the frequency of operation of the soft core of PCI Express and physical layer interface speed, there is strict relation, the frequency of operation that directly reduces soft core will cause physical layer interface rate reduction, cause cannot connection standard speed PCI Express equipment, so this kind of method that just needs hardware verification PCI Express interface is to realize the soft core of PCI Express after frequency reducing and the communication between Standard PC I Express equipment.
For above-mentioned technical matters, the solution of prior art mainly contains following two kinds:
(1) the stone Shift Method of Xilinx/Altera company.The soft core of PCI Express designing for ASIC is replaced with to the soft core of PCI Express or the stone that can realize in FPGA, then on the PCI Express user interface after replacement, insert asynchronous FIFO and realize frequency reducing checking.The shortcoming of this method first is that the soft core of PCI Express self and interrelated logic cannot be verified, the second user interface due to every kind of PCI Express IP is all different, adopt the mode of replacing to change user interface, therefore user logic must be made corresponding modification, cause ASIC code and FPGA code inconsistent, not only increase checking complicacy, and reduced the confidence level of checking.
(2) SpeedBridge technology.The SpeedBridge technology of Cadence is to insert a special PCI Express bridge device between the PCI Express interface of frequency reducing in the PCI of standard Express interface and Hardware Verification Platform, this bridge device has the port of two different rates, after the packet buffer that it receives Standard PC I Express interface, be transmitted to the PCI Express interface of frequency reducing, thereby realize the transparent communication of frequency reducing PCI Express equipment and Standard PC I Express equipment.Card extender and the bridge chip of SpeedBridge Technology Need design specialized, realize very complicatedly, and SpeedBridge can only, for the Palladium verification platform of Cadence, cannot be applied on general FPGA verification platform at present.
In sum, the frequency reducing that how to realize PCI Express interface in general FPGA Hardware Verification Platform verifies it is the technical matters that those skilled in the art very pay close attention to.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind ofly can realize PCI Express interface chip frequency reducing hardware verification, compatible existing test code, realize the PCIe interface chip hardware verification method based on asynchronous physical layer interface simple and convenient, versatility good, resources occupation rate is low.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is:
A PCIe interface chip hardware verification method for asynchronous physical layer interface, implementation step is as follows:
1) build the FPGA hardware platform with Standard PC I Express interface, described FPGA hardware platform is connected with the main frame with PCI Express root node equipment by Standard PC I Express interface;
2) between the soft core of PCI Express in PCI Express interface chip ASIC code to be verified and Physical layer, insert for the poor asynchronous physical layer interface of matching frequency, described asynchronous physical layer interface comprises transmission buffer zone, reception buffer zone, frequency reducing PIPE interface and standard P IPE interface, and described asynchronous physical layer interface is connected with FPGA hardware platform, by standard P IPE interface, is connected with Physical layer by frequency reducing PIPE interface;
3) described PCI Express interface chip ASIC code to be verified is moved to described FPGA hardware platform and comprehensively realize, and according to PCI Express interface chip, the frequency of operation of frequency reducing PIPE interface is set by comprehensive highest frequency;
4) use test program is carried out functional test by described FPGA hardware platform to the soft core of PCI Express and the user logic of PCI Express interface chip, when the soft core of PCI Express sends PCI Express message by asynchronous physical layer interface to Physical layer, the soft core of PCI Express writes PCI Express message by frequency reducing PIPE interface the transmission buffer zone of asynchronous physical layer interface, asynchronous physical layer interface sends to Physical layer by transmission buffer cache PCI Express message by standard P IPE interface, simultaneously when the transmission buffer zone of asynchronous physical layer interface is sky, asynchronous physical layer interface detects the state of shaking hands of link, unsuccessful if shaken hands, on standard P IPE interface, insert SKP ordered set message and compensate the difference on the frequency between the soft core of PCI Express and Physical layer, if shake hands success, on standard P IPE interface, insert the empty message of LIDLE logic and compensate the difference on the frequency between the soft core of PCIExpress and Physical layer, when Physical layer sends PCI Express message by asynchronous physical layer interface to the soft core of PCI Express, asynchronous physical layer interface detects the state of shaking hands of link, unsuccessful if shaken hands, the PCIExpress message receiving is abandoned according to the ratio between the frequency of operation of frequency reducing PIPE interface and the frequency of operation of standard P IPE interface, and the PCI Express message not abandoning is write to the reception buffer zone of asynchronous physical layer interface, if shake hands success, the type of the PCI Express message that judgement receives, when being link layer message or transaction layer message, PCI Express message writes the reception buffer zone of asynchronous physical layer interface, when being the empty message of logic, PCI Express message all abandons, asynchronous physical layer interface sends to Physical layer by reception buffer zone buffer memory PCI Express message by frequency reducing PIPE interface.
Further improvement as technique scheme of the present invention:
While the frequency of operation of frequency reducing PIPE interface being set according to PCI Express interface chip by comprehensive highest frequency described step 3), the frequency of operation value rule of frequency reducing PIPE interface is suc as formula shown in (1);
fl/fs=1,4/5,3/4,7/10,2/3,3/5,1/2,2/5 (1)
In formula (1), flfor the frequency of operation of frequency reducing PIPE interface, fsfrequency of operation for standard P IPE interface.
The reception buffer zone capacity of described asynchronous physical layer interface meets the funtcional relationship of formula (2);
Cfifo>Ctlp*(1-(fl-fdllp)/fs) (2)
In formula (2), Cfifofor the capacity of reception buffer zone, Ctlpfor the transaction layer message reception buffer zone capacity (concrete numerical value and soft caryogamy are equipped with pass, are generally no more than 32KB) of the soft core of PCI Express, fdllpfor the maximum renewal frequency (concrete numerical value and soft caryogamy are equipped with pass, are generally no more than 1MHz) of data link layer message, flfor the frequency of operation of frequency reducing PIPE interface, fsfrequency of operation for standard P IPE interface.
When the PCI Express message receiving is abandoned according to the ratio between the frequency of operation of frequency reducing PIPE interface and the frequency of operation of standard P IPE interface described step 4), the ratio of abandoning meets the funtcional relationship of formula (3);
M/(M+N)=fl/fs (3)
In formula (3), M is the message number receiving continuously, the message number of N for abandoning continuously, flfor the frequency of operation of frequency reducing PIPE interface, fsfrequency of operation for standard P IPE interface;
Simultaneously, abandon the funtcional relationship that ratio also meets formula (4) and (5):
fl/fs=M/(M+N)>8/(delaytx+delaylink+delayrx+16) (4)
fl/fs>1/3 (5)
In formula (4), delaytxdelay, the delay of transmit leglinkdelay, the delay of physical linkrxtake over party's delay, delaytx, delaylink, delayrxbe all using on standard P IPE interface, send an ordered set message time as the unit interval.
The PCI Express interface chip verification method that the present invention is based on asynchronous physical layer interface has following advantage:
(1) the present invention can realize and the communicating by letter of Standard PC I Express equipment, the soft core of PCIExpress of realizing by asynchronous physical layer interface mates with the difference on the frequency between Physical layer, after employing the present invention, the transmission receiving velocity of serial link does not all change, asynchronous physical layer interface has guaranteed the compatibility with PCI Express agreement to the deletion insertion process of data, therefore can with the proper communication of PCIExpress equipment, can realize PCI Express interface chip frequency reducing hardware verification.
(2) the present invention is based on standard P IPE interface, do not increase or reduce any signal, FPGA code to be verified can directly be connected with it, do not need to do any change, therefore the soft core of PCI Express and user logic code to be verified do not need to make any modification, has advantages of and realizes simple and convenient, compatible existing test code.
(3) the present invention does not need the support of special hardware, can directly comprehensively be implemented in general FPGA verification platform with code to be verified as a module, has advantages of that versatility is good, it is simple to realize, resources occupation rate is low.
Accompanying drawing explanation
Fig. 1 is the structural representation of PCI Express interface chip in prior art.
Fig. 2 is the method flow schematic diagram of the embodiment of the present invention.
Fig. 3 is that in the embodiment of the present invention, PCI Express interface chip inserts the structural representation after asynchronous physical layer interface.
Fig. 4 is the syndeton schematic diagram that FPGA card authentication in the embodiment of the present invention (frequency reducing PCI Express equipment) is connected with PCI Express slot by PCI Express golden finger with server (Standard PC I Express equipment).
Fig. 5 is the framed structure schematic diagram of asynchronous physical layer interface in the embodiment of the present invention.
Embodiment
As shown in Figures 2 and 3, the implementation step of the PCIe interface chip hardware verification method of the present embodiment based on asynchronous physical layer interface is as follows:
1) build the FPGA hardware platform with Standard PC I Express interface, PGA hardware platform is connected with the main frame with PCI Express root node equipment by Standard PC IExpress interface;
2) between the soft core of PCI Express in PCI Express interface chip ASIC code to be verified and Physical layer, insert for the poor asynchronous physical layer interface (as shown in Figure 3) of matching frequency, asynchronous physical layer interface comprises transmission buffer zone, reception buffer zone, frequency reducing PIPE interface and standard P IPE interface, and asynchronous physical layer interface is connected with FPGA hardware platform, by standard P IPE interface, is connected with Physical layer by frequency reducing PIPE interface;
3) PCI Express interface chip ASIC code to be verified is moved to FPGA hardware platform and comprehensively realize, and according to PCI Express interface chip, the frequency of operation of frequency reducing PIPE interface is set by comprehensive highest frequency;
4) use test program is carried out functional test by FPGA hardware platform to the soft core of PCI Express and the user logic of PCI Express interface chip, when the soft core of PCI Express sends PCI Express message by asynchronous physical layer interface to Physical layer, the soft core of PCI Express writes PCI Express message by frequency reducing PIPE interface the transmission buffer zone of asynchronous physical layer interface, asynchronous physical layer interface sends to Physical layer by transmission buffer cache PCI Express message by standard P IPE interface, simultaneously when the transmission buffer zone of asynchronous physical layer interface is sky, asynchronous physical layer interface detects the state of shaking hands of link, unsuccessful if shaken hands, on standard P IPE interface, insert SKP ordered set message and compensate the difference on the frequency between the soft core of PCI Express and Physical layer, if shake hands success, on standard P IPE interface, insert the empty message of LIDLE logic and compensate the difference on the frequency between the soft core of PCI Express and Physical layer, when Physical layer sends PCIExpress message by asynchronous physical layer interface to the soft core of PCI Express, asynchronous physical layer interface detects the state of shaking hands of link, unsuccessful if shaken hands, the PCIExpress message receiving is abandoned according to the ratio between the frequency of operation of frequency reducing PIPE interface and the frequency of operation of standard P IPE interface, and the PCI Express message not abandoning is write to the reception buffer zone of asynchronous physical layer interface, if shake hands success, the type of the PCI Express message that judgement receives, when being link layer message or transaction layer message, PCI Express message writes the reception buffer zone of asynchronous physical layer interface, when being the empty message of logic, PCI Express message all abandons, asynchronous physical layer interface sends to Physical layer by reception buffer zone buffer memory PCI Express message by frequency reducing PIPE interface.
The present embodiment is (PHY Interface of PCI Express on PCI Express physical layer interface, abbreviation PIPE interface) realize frequency-dropping function, do not need to revise the soft core of PCI Express and user logic code, PCI Express after frequency reducing end equipment can and PCI Express root device between proper communication, adopt the mode of soft core to realize, resources occupation rate is low, can directly comprehensively to FPGA verification platform, realize with code to be verified.
As shown in Figure 4, the FPGA hardware platform with Standard PC I Express interface in the present embodiment is FPGA card authentication, FPGA card authentication is inserted on the PCI Express slot of server, thereby be connected with the Standard PC I Express equipment on server (with the main frame of PCI Express root node equipment) mainboard, form the FPGA hardware platform of a PCI Express interface chip FPGA verification system, so that the function of checking PCIExpress interface chip.
While the frequency of operation of frequency reducing PIPE interface being set according to PCI Express interface chip by comprehensive highest frequency in the present embodiment, step 3), the frequency of operation value rule of frequency reducing PIPE interface is suc as formula shown in (1);
fl/fs=1,4/5,3/4,7/10,2/3,3/5,1/2,2/5 (1)
In formula (1), flfor the frequency of operation of frequency reducing PIPE interface, fsfrequency of operation for standard P IPE interface.In the present embodiment, the frequency of operation f of standard P IPE interfacesfor 125MHz, fl/ fsvalue be 3/5,1/2,2/5 o'clock respectively the frequency of corresponding frequency reducing PIPE interface be 75MHz, 62.5MHz, 50MHz, can meet the soft core of PCI Express and use FPGA to carry out the frequency requirement of hardware verification.PCI Express interface chip ASIC code to be verified is moved to FPGA hardware platform while comprehensively realizing, can adopt synthesis tool comprehensively to realize, the highest frequency that can be aggregated into according to PCI Express arranges the frequency of operation of frequency reducing PIPE interface.
In the present embodiment, the reception buffer zone capacity of asynchronous physical layer interface meets the funtcional relationship of formula (2);
Cfifo>Ctlp*(1-(fl-fdllp)/fs) (2)
In formula (2), Cfifofor the capacity of reception buffer zone, Ctlpfor the transaction layer message reception buffer zone capacity (concrete numerical value and soft caryogamy are equipped with pass, are generally no more than 32KB) of the soft core of PCI Express, fdllpfor the maximum renewal frequency (concrete numerical value and soft caryogamy are equipped with pass, are generally no more than 1MHz) of data link layer message, flfor the frequency of operation of frequency reducing PIPE interface, fsfrequency of operation for standard P IPE interface.After the success of PCIe link handshake, on PIPE interface, only send the message of two types: transaction layer message (Transaction Layer Packet, be called for short TLP) and data link layer message (Data Link Layer Packet, be called for short DLLP), these two kinds of messages all write reception buffer zone as valid data, and the frequency writing is fs, by the soft core of the PCIe of frequency reducing, to be read again simultaneously, the frequency of reading is fl, because the speed that the velocity ratio of reading writes is slow, therefore have part message buffering in asynchronous PIPE interface.Data link layer message is periodically to send, and maximum renewal frequency is fdllp, therefore the speed for actual treatment TLP message is (fl-fdllp), and the transaction layer message total volume that the soft core of PCI Express can receive is received buffer capacity Ctlpas long as restriction, therefore the capacity C of reception buffer zonefifo> Ctlp* (1-(fl-fdllp)/fs), just can prevent that reception buffer zone from overflowing.
When the PCI Express message receiving is abandoned according to the ratio between the frequency of operation of frequency reducing PIPE interface and the frequency of operation of standard P IPE interface in the present embodiment, step 4), the ratio of abandoning meets the funtcional relationship of formula (3);
M/(M+N)=fl/fs (3)
In formula (3), M is the message number receiving continuously, the message number of N for abandoning continuously, flfor the frequency of operation of frequency reducing PIPE interface, fsfrequency of operation for standard P IPE interface;
The ratio that simultaneously abandons also meets the funtcional relationship of formula (4) and (5):
fl/fs=M/(M+N)>8/(delaytx+delaylink+delayrx+16) (4)
fl/fs>1/3 (5)
In formula (4), delaytxdelay, the delay of transmit leglinkdelay, the delay of physical linkrxtake over party's delay, delaytx, delaylink, delayrxbe all using on standard P IPE interface, send an ordered set message time as the unit interval.
In the present embodiment, when transmission buffer zone is sky, asynchronous physical layer interface can insert the idle message of some PCIExpress normalized definitions on standard P IPE interface: asynchronous physical layer interface is at link handshake unsuccessful front insertion SKP ordered set message also, after link handshake success, insert the empty message of LIDLE logic, with this, compensate the difference on the frequency on asynchronous physical layer interface both sides, guarantee that the data on standard asynchronous physical layer interface are not interrupted; According to PCI Express protocol specification, Standard PC I Express equipment can be abandoned after receiving idle message, and therefore inserting these messages can not affect the normal operation of Standard PC I Express equipment.Asynchronous physical layer interface writes asynchronous physical layer interface reception buffer zone by the PCI Express message receiving by standard P IPE interface.According to PCI Express standard, the PCI Express message of receiving before link handshake success is all ordered set message, in order to mate the difference on the frequency on asynchronous PIPE interface both sides, need to according to the ratio between the frequency of frequency reducing PIPE interface and the frequency of standard P IPE interface, abandon the ordered set message receiving, the ratio of abandoning meets the funtcional relationship of formula (3).Abandon the handshake procedure that part message can have influence on PCI Express agreement, according to PCI Express protocol specification, in link handshake process, state transitions need to meet two conditions: (1) receives 8 continuous handshake message, and (2) have sent 16 same messages after receiving first handshake message of the other side continuously.In order to make to abandon the handshake procedure that part message does not affect link, the highest ratio that can dropping packets meets the funtcional relationship of formula (4), in formula (4), and delaytx, delaylink, delayrxbeing respectively transmit leg, physical link, take over party's delay, is all to take on standard P IPE interface, to send an ordered set message as unit interval (the standard P IPE interface unit interval for 16bit/125MHz is 64ns).Delaylinkand delayrxbe the receive delay of link delay and Standard PC I Express equipment, conventionally unadjustable, delaytxbe the delay (comprising the delay of asynchronous PIPE module) of transmit leg, therefore by control lag umber of beats, can change lowest operating frequency.Consider the factors such as the overtime and retransmission time out of the credit of PCI Express agreement, fl/ fsminimum value should be greater than 1/3 (the corresponding minimum frequency reducing frequency of standard P IPE interface of 16bit/125MHz is 41.67MHz), has enough met the frequency requirement of the soft veritification card of PCI Express.
After link handshake success, the PCIExpress message that asynchronous physical layer interface receives has three kinds: the empty message of link layer message, transaction layer message and logic, wherein link layer message and transaction layer message are effective PCI Express data, the empty message of logic is just in order to fill the free time on link, the message that guarantees the continuity of data and send, abandoning the empty message of logic can not affect the correctness of PCIExpress data transmission.Asynchronous physical layer interface writes inner reception buffer zone by the link layer message receiving and transaction layer message, the empty message of logic all abandons, the control that the link layer message that can send due to transmit leg and transaction layer message amount are received credit, in order to prevent that receiving FIFO overflows, reception buffer zone capacity meets the funtcional relationship of formula (2).Asynchronous physical layer interface is read link layer message and transaction layer message from reception buffer zone, and sends to the soft core of PCI Experss by frequency reducing PIPE interface, when reception buffer zone is sky, sends the empty message of logic to the soft core of PCI Experss.Regulate in this way the ratio of the empty message of logic of filling between PCI Express link layer and transaction layer message, thus the difference on the frequency on asynchronous physical layer interface both sides when compensation receives.
As shown in Figure 5, in the present embodiment, asynchronous physical layer interface upwards connects the soft core of PCIExpress by frequency reducing PIPE interface, connects physical layer block downwards by standard P IPE interface, and asynchronous PLIM consists of four parts.
(1) clock module
Clock module carries out frequency division by the clock of inputting on standard P IPE interface by frequency synthesizer PLL, and the frequency reducing clock obtaining is used to the soft core of PCIExpress to be verified, and asynchronous PIPE both sides clock ratio can be got following value:
Frequency reducing PIPE clock fl/ standard P IPE clock fs=Isosorbide-5-Nitrae/5,3/4,7/10,2/3,3/5,1/2,2/5
The selection of these values is can to insert uniformly and delete message according to ratio of integers in PCI Express handshake procedure in order to guarantee, prevents that the message amount of insert continually and deletion from too much affecting PCI Express link handshake process.
(2) state and control module
State and control module realize the collection to the control of physical layer block and status signal, in PIPE interface standard, defined signal is except PHYSTATUS and RXSTATUS signal, to following signal (TXDETECTRX, POWERDOWN, TXELECIDLE, RXELECIDLE, RXPOLARITY, TXCOMPLIANCE, RXVLAID) be left intact, frequency reducing PIPE interface is directly connected with signal corresponding on standard P IPE interface; PHYSTATUS and RXSTATUS signal demand are expanded phystatus and the rxstatus signal of Physical layer output, to guarantee can to adopt this signal at clock zone at a slow speed, after expansion deration of signal ratio after rounding, should meet following relation (by phystatus and rxstatus postpone four clap or together with can meet this condition): [Tl/ Ts] > [fs/ fl], Tlthe cycle of PHYSTATUS and RXSTATUS on expression frequency reducing interface, Tsrepresent the phystatus of physical layer interface output and the cycle of rxstatus.
(3) sending module
Sending module sends to quick clock territory by the soft caryogenic data of PCI Express from clock zone at a slow speed, and sending module is divided into again following three submodules:
A) FIFO writing module: for input data being write to transmission fifo module when the TXELECIDLE invalidating signal, the distinguishing mark of input data and PCI Express type of message is compared to (ordered set is designated COM symbol simultaneously, data link layer message be designated SDP/ENDB/ENDG symbol, transaction layer message be designated STP/ENDB/ENDG symbol, the empty message of logic is complete zero), obtain the type of message PKT_TYPE of current data, according to PKT_TYPE, can judge beginning and the end of message, while running into message trailer sign, message total counter PKT_NUM adds 1 at every turn, after being converted to gray code (Gray code), PKT_NUM sends to quick clock territory for transmit control device module.
B) send fifo module: send the transmission buffer zone that fifo module is preceding method, for preserving data to be sent, sending fifo module has an empty sign prog_empty, and this empty sign prog_empty is set to 1 when remaining data bulk is less than 16 (maximum lengths of 2 ordered sets) in sending fifo module.First the data that transmit control device module is read from send fifo module also compare with the distinguishing mark of PCI Express type of message, obtain the type of message pkt_type of current data, according to beginning and the end of pkt_type judgement message, while running into message trailer sign, message total counter pkt_num adds 1 at every turn.
C) transmit control device module: for from FIFO sense data and send to Physical layer.
The course of work of transmit control device module is divided into following step:
The first step: will read useful signal and set to 0 (being rd_en=0), message is skipped total counter and set to 0 (skp_num=0);
Second step: when TXELECIDLE invalidating signal and when sending the empty sign of fifo module prog_empty and equaling 0, transmit control device module enables to send reading useful signal (rd_en equals 1) beginning sense data and sending of fifo module, until prog_empty equal 1 and the data of current output be the head (type of message pkt_type equals ordered set sign COM) of an ordered set, will read useful signal and set to 0 (rd_en equals 0) and turn the 3rd step; Or run into LIDL message and forward the 4th step to.
The 3rd step: send continuously SKP ordered set message, until prog_empty equals 0, forward second step to;
The 4th step: (sending fifo module is asynchronous FIFO if pkt_num is less than PKT_NUM, packet counting will be carried out at the end that writes and read of asynchronous FIFO simultaneously, writing end packet counting represents with PKT_NUM, reading end packet counting represents with pkt_num, by comparing the size of these two counters, can know in asynchronous FIFO and whether to also have message, so these two identical names for counter, by capital and small letter, distinguish) rd_en equal 1, sense data send to Physical layer continuously from send FIFO, when pkt_hum equals PKT_NUM, rd_en equals 0 and forwards the 5th step to,
The 5th step: send continuously LIDL message, LIDL message skp_num of every transmission adds 1 is inserted a SKP ordered set message skp_num is clear 0 when skp_num is greater than 1000, until pkt_num turns the 4th step while being less than PKT_NUM;
Once TXELECIDLE signal effectively, is got back to the first step in above-mentioned steps.
(4) receiver module
Receiver module is divided into following three submodules:
A) receive controller module: receive after controller module (RECV_CONTROLLER) filters the data that receive and write reception fifo module.
The course of work that receives controller module is divided into following step:
The first step: the distinguishing mark that receives data and type of message is compared to (ordered set is designated COM symbol, DLLP is designated SDP/ENDB/ENDG symbol, TLP is designated STP/ENDB/ENDG symbol, the empty message of logic is complete zero), thereby obtain the type of message rxpkt_type of current data, according to rxpkt_type, can judge that the current data that receive are start of message (SOM), end or in the middle of message;
Second step: the data of receiving if current are ordered set heading (being rxpkt_type=COM), start to receiving in fifo module, to write M ordered set message (write enable signal wt_en and equal 1) continuously, then abandon N ordered set message (write enable signal wt_en and equal 0), if the data of receiving are logic sky messages, forward the 3rd step to;
The 3rd step: write continuously the empty message (write enable signal wt_en and equal 1) of M logic in reception FIFO, then abandon the empty message (write enable signal wt_en and equal 0) of N logic, until current data is data link layer heading, forward the 4th step to;
The 4th step: if what receive is that ordered set message forwards second step to, if data link layer message or transaction layer message write reception fifo module, if the empty message of logic and current data are not that DLLP or transaction layer message abandon;
Once the rxelecidle of Physical layer output effectively, directly gets back to the first step in above-mentioned steps implementation.
B) receive fifo module: receive the reception buffer zone that fifo module is preceding method, receiving fifo module is the asynchronous FIFO of standard, receive fifo module correspondence and be provided with one for recording the sky sign empty of storage dummy status, after the total data in receiving fifo module is read out, sky is indicated to empty puts 1.
C) FIFO reads module: when sky sign empty equals 0, receive FIFO to read enable signal effective, the data of reading from receive fifo module are directly exported, the empty message LIDL of output logic when sky sign empty equals 1.
The above is only the preferred embodiment of the present invention, and protection scope of the present invention is also not only confined to above-described embodiment, and all technical schemes belonging under thinking of the present invention all belong to protection scope of the present invention.It should be pointed out that for those skilled in the art, some improvements and modifications without departing from the principles of the present invention, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (4)

Translated fromChinese
1.一种基于异步物理层接口的PCIe接口芯片硬件验证方法,其特征在于实施步骤如下:1. a kind of PCIe interface chip hardware verification method based on asynchronous physical layer interface, it is characterized in that implementation steps are as follows:1)构建具有标准PCI Express接口的FPGA硬件平台,将所述FPGA硬件平台通过标准PCI Express接口与带有PCI Express根节点设备的主机相连;1) build the FPGA hardware platform with standard PCI Express interface, described FPGA hardware platform is connected with the host computer that has PCI Express root node device by standard PCI Express interface;2)在待验证的PCI Express接口芯片ASIC代码中的PCI Express软核与物理层之间插入用于匹配频率差的异步物理层接口,所述异步物理层接口包含发送缓冲区、接收缓冲区、降频PIPE接口和标准PIPE接口,所述异步物理层接口通过降频PIPE接口与FPGA硬件平台相连、通过标准PIPE接口与物理层相连;2) Insert between the PCI Express soft core and the physical layer in the PCI Express interface chip ASIC code to be verified and be used for matching the asynchronous physical layer interface of frequency difference, described asynchronous physical layer interface comprises sending buffer, receiving buffer, A frequency reduction PIPE interface and a standard PIPE interface, the asynchronous physical layer interface is connected to the FPGA hardware platform through the frequency reduction PIPE interface, and is connected to the physical layer through the standard PIPE interface;3)将所述待验证的PCI Express接口芯片ASIC代码迁移到所述FPGA硬件平台综合实现,并根据PCI Express接口芯片被综合的最高频率设置降频PIPE接口的工作频率;3) the PCI Express interface chip ASIC code to be verified is migrated to the integrated realization of the FPGA hardware platform, and the operating frequency of the down-frequency PIPE interface is set according to the integrated highest frequency of the PCI Express interface chip;4)使用测试程序通过所述FPGA硬件平台对PCI Express接口芯片的PCI Express软核和用户逻辑进行功能测试;当PCI Express软核通过异步物理层接口向物理层发送PCI Express报文时,PCI Express软核通过降频PIPE接口将PCI Express报文写入异步物理层接口的发送缓冲区,异步物理层接口将发送缓冲区缓存PCI Express报文通过标准PIPE接口发送给物理层,同时当异步物理层接口的发送缓冲区为空时,异步物理层接口检测链路的握手状态,如果握手未成功则在标准PIPE接口上插入SKP有序集报文来补偿PCI Express软核与物理层之间的频率差,如果握手已经成功则在标准PIPE接口上插入LIDLE逻辑空报文来补偿PCIExpress软核与物理层之间的频率差;当物理层通过异步物理层接口向PCI Express软核发送PCI Express报文时,异步物理层接口检测链路的握手状态,如果握手未成功则将接收到的PCIExpress报文按照降频PIPE接口的工作频率和标准PIPE接口的工作频率之间的比值进行丢弃,并将未丢弃的PCI Express报文写入异步物理层接口的接收缓冲区,如果握手已经成功则判断接收到的PCI Express报文的类型,当PCI Express报文是链路层报文或者事务层报文时写入异步物理层接口的接收缓冲区,当PCI Express报文是逻辑空报文时全部丢弃,异步物理层接口将接收缓冲区缓存PCI Express报文通过降频PIPE接口发送给物理层。4) use test program to carry out function test to the PCI Express soft core and user logic of PCI Express interface chip by described FPGA hardware platform; When PCI Express soft core sends PCI Express message to physical layer by asynchronous physical layer interface, PCI Express The soft core writes the PCI Express message into the sending buffer of the asynchronous physical layer interface through the down-frequency PIPE interface, and the asynchronous physical layer interface buffers the PCI Express message in the sending buffer and sends it to the physical layer through the standard PIPE interface. When the sending buffer of the interface is empty, the asynchronous physical layer interface detects the handshake status of the link. If the handshake is unsuccessful, an SKP ordered set message is inserted on the standard PIPE interface to compensate for the frequency between the PCI Express soft core and the physical layer. Poor, if the handshake is successful, insert a LIDLE logical empty message on the standard PIPE interface to compensate for the frequency difference between the PCIExpress soft core and the physical layer; when the physical layer sends a PCI Express message to the PCI Express soft core through the asynchronous physical layer interface , the asynchronous physical layer interface detects the handshake status of the link. If the handshake is unsuccessful, the received PCIExpress packets are discarded according to the ratio between the working frequency of the down-clocked PIPE interface and the working frequency of the standard PIPE interface, and unused The discarded PCI Express message is written into the receiving buffer of the asynchronous physical layer interface. If the handshake is successful, the type of the received PCI Express message is judged. When the PCI Express message is a link layer message or a transaction layer message Write to the receiving buffer of the asynchronous physical layer interface. When the PCI Express message is a logical empty message, all are discarded. The asynchronous physical layer interface buffers the PCI Express message in the receiving buffer and sends it to the physical layer through the down-frequency PIPE interface.2.根据权利要求1所述的基于异步物理层接口的PCIe接口芯片硬件验证方法,其特征在于,所述步骤3)中根据PCI Express接口芯片被综合的最高频率设置降频PIPE接口的工作频率时,降频PIPE接口的工作频率取值规则如式(1)所示;2. the PCIe interface chip hardware verification method based on the asynchronous physical layer interface according to claim 1, it is characterized in that, in described step 3) according to the integrated highest frequency setting of PCI Express interface chip, the operating frequency of down-frequency PIPE interface When , the working frequency value selection rule of the down-frequency PIPE interface is shown in formula (1);fl/fs=1,4/5,3/4,7/10,2/3,3/5,1/2,2/5    (1)fl /fs = 1, 4/5, 3/4, 7/10, 2/3, 3/5, 1/2, 2/5 (1)式(1)中,fl为降频PIPE接口的工作频率,fs为标准PIPE接口的工作频率。In the formula (1), fl is the working frequency of the down-frequency PIPE interface, and fs is the working frequency of the standard PIPE interface.3.根据权利要求1所述的基于异步物理层接口的PCIe接口芯片硬件验证方法,其特征在于,所述异步物理层接口的接收缓冲区容量满足式(2)的函数关系;3. the PCIe interface chip hardware verification method based on asynchronous physical layer interface according to claim 1, is characterized in that, the receiving buffer capacity of described asynchronous physical layer interface satisfies the functional relation of formula (2);Cfifo>Ctlp*(1-(fl-fdllp)/fs)    (2)Cfifo >Ctlp *(1-(fl -fdllp )/fs ) (2)式(2)中,Cfifo为接收缓冲区的容量,Ctlp为PCI Express软核的事务层报文接收缓冲区容量,fdllp为数据链路层报文的最大更新频率,fl为降频PIPE接口的工作频率,fs为标准PIPE接口的工作频率。In the formula (2), Cfifo is the capacity of the receiving buffer, Ctlp is the transaction layer message receiving buffer capacity of the PCI Express soft core, fdllp is the maximum update frequency of the data link layer message, and fl is the drop rate frequency PIPE interface operating frequency, fs is the operating frequency of the standard PIPE interface.4.根据权利要求1或2或3所述的基于异步物理层接口的PCIe接口芯片硬件验证方法,其特征在于:所述步骤4)中将接收到的PCI Express报文按照降频PIPE接口的工作频率和标准PIPE接口的工作频率之间的比值进行丢弃时,丢弃比例满足式(3)的函数关系;4. according to the PCIe interface chip hardware verification method based on the asynchronous physical layer interface described in claim 1 or 2 or 3, it is characterized in that: the PCI Express message that will receive in described step 4) according to down-frequency PIPE interface When the ratio between the operating frequency and the operating frequency of the standard PIPE interface is discarded, the discarding ratio satisfies the functional relationship of formula (3);M/(M+N)=fl/fs    (3)M/(M+N)=fl /fs (3)式(3)中,M为连续接收的报文个数,N为连续丢弃的报文个数,fl为降频PIPE接口的工作频率,fs为标准PIPE接口的工作频率;In formula (3), M is the number of messages received continuously, N is the number of messages discarded continuously, fl is the operating frequency of the down-frequency PIPE interface, and fs is the operating frequency of the standard PIPE interface;同时所述丢弃比例还满足式(4)和(5)的函数关系:Simultaneously described discard ratio also satisfies the functional relationship of formula (4) and (5):fl/fs=M/(M+N)>8/(delaytx+delaylink+delayrx+16)    (4)fl /fs =M/(M+N)>8/(delaytx +delaylink +delayrx +16) (4)fl/fs>1/3    (5)fl/fs >1/3 (5)式(4)中,delaytx是发送方的延迟、delaylink是物理链路的延迟、delayrx是接收方的延迟,delaytx、delaylink、delayrx都是以在标准PIPE接口上发送一个有序集报文的时间作为单位时间。In formula (4), delaytx is the delay of the sender, delaylink is the delay of the physical link, and delayrx is the delay of the receiver. Delaytx , delaylink , and delayrx are based on sending an effective link on the standard PIPE interface. The time of the sequenced message is taken as the unit time.
CN201310057124.9A2013-02-222013-02-22 PCIe interface chip hardware verification method based on asynchronous physical layer interfaceExpired - Fee RelatedCN103164314B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310057124.9ACN103164314B (en)2013-02-222013-02-22 PCIe interface chip hardware verification method based on asynchronous physical layer interface

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310057124.9ACN103164314B (en)2013-02-222013-02-22 PCIe interface chip hardware verification method based on asynchronous physical layer interface

Publications (2)

Publication NumberPublication Date
CN103164314A CN103164314A (en)2013-06-19
CN103164314Btrue CN103164314B (en)2014-02-19

Family

ID=48587421

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310057124.9AExpired - Fee RelatedCN103164314B (en)2013-02-222013-02-22 PCIe interface chip hardware verification method based on asynchronous physical layer interface

Country Status (1)

CountryLink
CN (1)CN103164314B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10054636B2 (en)2015-10-232018-08-21Intel IP CorporationDevice, system and method to support communication of test, debug or trace information with an external input/output interface
CN105591844B (en)*2016-03-082019-03-08烽火通信科技股份有限公司The method for realizing OAM automatic Verification based on PTN chip frequency reducing
US10198394B2 (en)2016-05-242019-02-05Intel CorporationReduced pin count interface
CN112711503B (en)*2020-12-282024-03-26北京同有飞骥科技股份有限公司Memory test method based on Feiteng 2000+CPU
CN113821463A (en)*2021-09-232021-12-21深圳忆联信息系统有限公司 FPGA-based PCIE controller verification method, device and computer equipment
CN116303189A (en)*2023-02-212023-06-23芯启源(上海)半导体科技有限公司 PCIe Speed Bridge System for FPGA Prototyping and Simulation
CN116955026B (en)*2023-06-132025-03-11芯启源(上海)半导体科技有限公司PCIE SWITCH test method, system and FPGA device based on PIPE interface
CN116737606B (en)*2023-08-152023-12-05英诺达(成都)电子科技有限公司Data caching method, device, equipment and medium based on hardware simulation accelerator
CN118821689B (en)*2024-09-202024-11-19中电科申泰信息科技有限公司 Asynchronous PCIE interface verification module and method based on FPGA

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5535331A (en)*1987-09-041996-07-09Texas Instruments IncorporatedProcessor condition sensing circuits, systems and methods
CN1205788A (en)*1995-12-211999-01-20艾利森电话股份有限公司Method for setting operating mode of an integrated circuit and integrated circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5535331A (en)*1987-09-041996-07-09Texas Instruments IncorporatedProcessor condition sensing circuits, systems and methods
CN1205788A (en)*1995-12-211999-01-20艾利森电话股份有限公司Method for setting operating mode of an integrated circuit and integrated circuit

Also Published As

Publication numberPublication date
CN103164314A (en)2013-06-19

Similar Documents

PublicationPublication DateTitle
CN103164314B (en) PCIe interface chip hardware verification method based on asynchronous physical layer interface
CN102708086B (en)Elastic buffer structure and method applied to universal serial bus 3.0 (USB 3.0)
US7353300B2 (en)Apparatus to improve the firmware efficiency for a multiframe serial interface
CN101018179A (en)Data bus bridge and its working method
CN102819512A (en)Full-duplex communication device based on SPI and method thereof
CN102023956A (en)Serial peripheral slave device interface structure in integrated circuit chip and data reading and writing method
CN106292409A (en)A kind of real-time emulation system based on FPGA multi tate optical-fibre communications and emulation mode thereof
CN115699668B (en)Wide elastic buffer
CN101232522B (en) A kind of network card driving method
CN110445585A (en)Based on PPP information frame framing and frame decoding hardware accelerator
CN103516627B (en)The method and apparatus that data packet sends, receives in multi-chip communication
CN116185924A (en)Baud rate clock generation method and electronic device
CN110795369A (en)Method and terminal for realizing MIDO slave function based on GPIO pin
CN202904568U (en)Elastic buffer structure applied to universal serial bus (USB) 3.0
CN117440068B (en) Communication board, cascade communication protocol system, chip tester and communication method thereof
Pham-Thai et al.A novel multichannel UART design with FPGA-based implementation
Jusoh et al.An FPGA implementation of shift converter block technique on FIFO for RS232 to universal serial bus converter
CN100462952C (en) Universal Serial Bus controller with configurable interface
CN111522770A (en)FPGA (field programmable Gate array) -based parameterized configured SPI (Serial peripheral interface) controller and use method
CN110309086A (en) A data interaction method between a multi-channel low-speed port and a single-channel high-speed port
CN115934596A (en) A circuit and method for non-concurrent peripheral interface direct storage access
CN104267925B (en)Elastic push-up storage and storage method
CN100365639C (en) FIFO simulation unit and logic verification simulation system
CN203071936U (en)Data recording and playback device and system
Afsin et al.C 3: configurable can fd controller: architecture, design and hardware implementation

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20140219


[8]ページ先頭

©2009-2025 Movatter.jp