CN103324559A - Speed testing method for data transmitting from PCIExpress master to equipment based on FPGA (field programmable gate array) - Google Patents

Speed testing method for data transmitting from PCIExpress master to equipment based on FPGA (field programmable gate array) Download PDF

Info

Publication number
CN103324559A
CN103324559A CN2013102626890A CN201310262689A CN103324559A CN 103324559 A CN103324559 A CN 103324559A CN 2013102626890 A CN2013102626890 A CN 2013102626890A CN 201310262689 A CN201310262689 A CN 201310262689A CN 103324559 A CN103324559 A CN 103324559A
Authority
CN
China
Prior art keywords
equipment
read
testing
performance counter
data rate
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
CN2013102626890A
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.)
Chengdu Linhai Electronics Co Ltd
Original Assignee
Chengdu Linhai Electronics 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 Chengdu Linhai Electronics Co Ltd filed Critical Chengdu Linhai Electronics Co Ltd
Priority to CN2013102626890A priority Critical patent/CN103324559A/en
Publication of CN103324559A publication Critical patent/CN103324559A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a speed testing method for data transmitting from a PCIExpress master to equipment based on FPGA (field programmable gate array). The speed testing method includes S1, modifying a transmitting layer of the FPGA, and adding speed testing codes for testing the speed of data transmitted between the master and the equipment; S2, arranging a read equipment performance counter; S3, allowing the testing codes to read a counter value of the read equipment performance counter, and calculating transmitting speed: S=V/(C/H=V*H/C. S represents speed for equipment reading data, C represents the counter value of the equipment performance counter, H represents frequency of a clock of the equipment, and V represents the number of bytes of the data read by the device from a driving memory. By the aid of the speed testing method, the counter value can be read after data is read by a driving program arrange equipment every time, the transmission speed can be calculated immediately, calculation is free of affection by the master and other external factors, testing objectivity is good, and testing results are accurate.

Description

Based on the PCI Express main frame of the FPGA data rate method of testing to equipment
Technical field
The present invention relates to a kind of PCI Express main frame based on FPGA to the data rate method of testing of equipment, belong to field of computer technology.
Background technology
FPGA(Field-Programmable Gate Array), it is field programmable gate array, occur as a kind of semi-custom circuit in special IC (ASIC) field, both solved the deficiency of custom circuit, overcome again the limited shortcoming of original programming device gate circuit number.With traditional logic circuit and gate array (such as PAL, GAL and CPLD device) compare, FPGA has different structures, FPGA utilizes small-sized look-up table, and (16 * 1RAM) realize combinational logic, each look-up table is connected to the input end of a d type flip flop, trigger drives other logical circuits again or drives I/O, consisted of thus the basic logic unit module that not only can realize combination logic function but also can realize the sequential logic function, these intermodules utilize metal connecting line to be connected to each other or are connected to the I/O module.The logic of FPGA realizes by loading programming data to inner static storage cell, being stored in value in the memory cell has determined between the logic function of logical block and each module or the connecting mode between module and I/O, and final decision the achieved function of FPGA, FPGA allows unlimited programming.
Utilize FPGA to realize that the maximum reason of PCI Express is its reconfigurability.To this new technology of PCI Express, specification is in the stage of continuous variation.When specification changes, by reconfigurability can be corresponding change, the upgrading that software programming realizes version is carried out in former design.Adopt the built-in high-speed transceiver module of some FPGA and programmable structure, Virtex series such as Xilinx, its built-in high-speed transceiver (Rocket IOTMGTP transceiver) can be supported the 2.5Gbps speed that PCI Express agreement is required, the 8B/10B encoding and decoding can be extracted clock reliably from data, realize clock recovery, cost and difficulty be can reduce, design difficulty and cycle reduced.FPGA supplier tests the module among the FPGA and IP kernel for PCI Express specially, has guaranteed the compatibility of product.
The concrete technology that does not have in the market the speed of swap data between the test PCI Express equipment of standard and the host driver, there is following problem in some known measuring technologies at present:
1, speed is not high, and the exchanges data speed of host driver and equipment room only can reach 150MBytes/s;
2, the Test Host driver is different with the standard of exchanged between equipment speed, does not have at present objective method of testing.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, provide a kind of test speed fast, each driver arranges the value that the equipment read data later on just can read-out counter, can calculate at once the speed of transmission, be not subjected to other external actions such as main frame during the counting, the test objectivity is good, and test result is accurately based on the PCI Express main frame of the FPGA data rate method of testing to equipment.
The objective of the invention is to be achieved through the following technical solutions: based on the PCI Express main frame of the FPGA data rate method of testing to equipment, it may further comprise the steps:
S1: the transport layer to FPGA is made amendment, and adds therein the code that tests the speed of data rate between Test Host and the equipment;
S2: arrange one and read the equipment performance counter;
S3: the described code that tests the speed reads the described count value of reading the equipment performance counter, and by the following method computation host to the data rate of equipment:
S=V/ (C/H)=V*H/C, wherein, S be the speed of equipment read data be main frame to the data rate of equipment, unit is Mbyte/s, C is the count value of equipment performance counter; H is the frequency of the clock of equipment, and unit is MHz; V is equipment from the byte number of the data that drive memory read back, and unit is byte.
The described equipment performance counter of reading adopts hardware language to describe program design.
The described width of reading the equipment performance counter is 32bit.
Read the memory headroom that operates in of equipment performance counter, driver can only be read and can not write.
Read the equipment performance counter to add that 1 operation occurs in be the rising edge of equipment clock signal.
Reading the enabled condition that the equipment performance counter adds 1 operation is that equipment is under the normal running conditions and driver arranges equipment requirement equipment from the moment of host memory read data.
Read end condition that the equipment performance counter adds 1 operation and be equipment and be under the normal running conditions and equipment runs through moment of total data from host memory according to the requirement of driver, read the equipment performance counter and no longer count this moment, keeps count value constant.
The zero clearing condition of reading the equipment performance counter can only be equipment whole when sending and receiving state machine and resetting, and count value all can remain unchanged in other situations.
The invention has the beneficial effects as follows:
1, test speed is fast, and each driver arranges the value that the equipment read data later on just can read-out counter, can calculate at once the speed of transmission;
2, be not subjected to other external actions such as main frame during the counting, the test objectivity is good, and test result is accurate;
3, only need to be at counter of equipment design just, simple to operate, expense is little, does not take the resource of system, does not affect data transmission efficiency.
Embodiment
Further specify technical scheme of the present invention below in conjunction with specific embodiment, but the content that the present invention protects is not limited to the following stated.
Based on the PCI Express main frame of the FPGA data rate method of testing to equipment, it may further comprise the steps:
S1: the transport layer to FPGA is made amendment, and adds therein the code that tests the speed of data rate between Test Host and the equipment;
S2: arrange one and read the equipment performance counter;
S3: the described code that tests the speed reads the described count value of reading the equipment performance counter, and by the following method computation host to the data rate of equipment:
S=V/ (C/H)=V*H/C, wherein, S be the speed of equipment read data be main frame to the data rate of equipment, unit is Mbyte/s, C is the count value of equipment performance counter; H is the frequency of the clock of equipment, and unit is MHz; V is equipment from the byte number of the data that drive memory read back, and unit is byte.
The described equipment performance counter of reading adopts hardware language to describe program design, and the width of counter is 32bit.
The described memory headroom that operates in of reading the equipment performance counter, driver can only be read and can not write.
Read the equipment performance counter to add that 1 operation occurs in be the rising edge of equipment clock signal.
Reading the enabled condition that the equipment performance counter adds 1 operation is that equipment is under the normal running conditions and driver arranges equipment requirement equipment from the moment of host memory read data.
Read end condition that the equipment performance counter adds 1 operation and be equipment and be under the normal running conditions and equipment runs through moment of total data from host memory according to the requirement of driver, read the equipment performance counter and no longer count this moment, keeps count value constant.
The zero clearing condition of reading the equipment performance counter can only be equipment whole when sending and receiving state machine and resetting, and count value all can remain unchanged in other situations.

Claims (8)

1. based on the PCI Express main frame of the FPGA data rate method of testing to equipment, it is characterized in that: it may further comprise the steps:
S1: the transport layer to FPGA is made amendment, and adds therein the code that tests the speed of data rate between Test Host and the equipment;
S2: arrange one and read the equipment performance counter;
S3: the described code that tests the speed reads the described count value of reading the equipment performance counter, and by the following method computation host to the data rate of equipment:
S=V/ (C/H)=V*H/C, wherein, S be the speed of equipment read data be main frame to the data rate of equipment, unit is Mbyte/s, C is the count value of equipment performance counter; H is the frequency of the clock of equipment, and unit is MHz; V is equipment from the byte number of the data that drive memory read back, and unit is byte.
2. the PCI Express main frame based on FPGA according to claim 1 is characterized in that to the data rate method of testing of equipment: the described equipment performance counter of reading adopts hardware language to describe program design.
3. the PCI Express main frame based on FPGA according to claim 1 is to the data rate method of testing of equipment, and it is characterized in that: the described width of reading the equipment performance counter is 32bit.
4. the PCI Express main frame based on FPGA according to claim 1 is to the data rate method of testing of equipment, and it is characterized in that: the described memory headroom that operates in of reading the equipment performance counter, driver can only be read and can not write.
5. the PCI Express main frame based on FPGA according to claim 1 is characterized in that to the data rate method of testing of equipment: described read the equipment performance counter to add that 1 operation occurs in be the rising edge of equipment clock signal.
6. the PCI Express main frame based on FPGA according to claim 1 is characterized in that to the data rate method of testing of equipment: described to read the enabled condition that the equipment performance counter adds 1 operation be that equipment is under the normal running conditions and driver arranges equipment requirement equipment from the moment of host memory read data.
7. the PCI Express main frame based on FPGA according to claim 1 is to the data rate method of testing of equipment, it is characterized in that: described to read end condition that the equipment performance counter adds 1 operation be that equipment is under the normal running conditions and equipment runs through moment of total data from host memory according to the requirement of driver, read the equipment performance counter and no longer count this moment, keeps count value constant.
8. the PCI Express main frame based on FPGA according to claim 1 is to the data rate method of testing of equipment, it is characterized in that: the described zero clearing condition of reading the equipment performance counter can only be equipment whole when sending and receiving state machine and resetting, and count value all can remain unchanged in other situations.
CN2013102626890A 2013-06-27 2013-06-27 Speed testing method for data transmitting from PCIExpress master to equipment based on FPGA (field programmable gate array) Pending CN103324559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102626890A CN103324559A (en) 2013-06-27 2013-06-27 Speed testing method for data transmitting from PCIExpress master to equipment based on FPGA (field programmable gate array)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102626890A CN103324559A (en) 2013-06-27 2013-06-27 Speed testing method for data transmitting from PCIExpress master to equipment based on FPGA (field programmable gate array)

Publications (1)

Publication Number Publication Date
CN103324559A true CN103324559A (en) 2013-09-25

Family

ID=49193318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102626890A Pending CN103324559A (en) 2013-06-27 2013-06-27 Speed testing method for data transmitting from PCIExpress master to equipment based on FPGA (field programmable gate array)

Country Status (1)

Country Link
CN (1) CN103324559A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120092040A1 (en) * 2007-04-19 2012-04-19 Microsoft Corporation Field-Programmable Gate Array Based Accelerator System
CN102521184A (en) * 2011-12-20 2012-06-27 北京遥测技术研究所 Method for achieving data high-speed transmission on component interconnect (PCI) bus
WO2012138111A2 (en) * 2011-04-01 2012-10-11 Taejin Info Tech Co., Ltd. Dynamic random access memory for a semiconductor storage device-based system
CN103176068A (en) * 2011-12-23 2013-06-26 中国人民解放军海军航空仪器计量站 Bus-based test module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120092040A1 (en) * 2007-04-19 2012-04-19 Microsoft Corporation Field-Programmable Gate Array Based Accelerator System
WO2012138111A2 (en) * 2011-04-01 2012-10-11 Taejin Info Tech Co., Ltd. Dynamic random access memory for a semiconductor storage device-based system
CN102521184A (en) * 2011-12-20 2012-06-27 北京遥测技术研究所 Method for achieving data high-speed transmission on component interconnect (PCI) bus
CN103176068A (en) * 2011-12-23 2013-06-26 中国人民解放军海军航空仪器计量站 Bus-based test module

Similar Documents

Publication Publication Date Title
US10318468B2 (en) FPGA-based interface signal remapping method
CN101504692B (en) System and method for validating and testing on-chip system
CN103729307A (en) Data compression apparatus and method and memory system comprising data compression apparatus
CN204086920U (en) A kind of programmable logic controller (PLC)
CN104050068A (en) Method and device for debugging FPGA (field programmable gate array) in MCU (microprogrammed control unit) chip
CN103246588B (en) Controller and implementation method for self-checking serial bus
CN103810521A (en) Digital baseband processor for passive RFID (radio frequency identification) electronic tag
CN105207848A (en) SerDes bit error rate detecting method and system based on embedded chip
CN104461796B (en) JTAG debugging modules and adjustment method for embedded 8051CPU
CN102928004B (en) A kind of code device signal real time processing system and method
CN203250312U (en) Extensible common core processing daughter board with interferences
CN103796009B (en) A kind of FPGA quality diagnosis test macro
WO2024001929A1 (en) Intelligent contract vulnerability detection method and apparatus, and device
CN105608028A (en) EMIF (External Memory Interface) and dual-port RAM (Random Access Memory)-based method for realizing high-speed communication of DSP (Digital Signal Processor) and FPGA (Field Programmable Gate Array)
CN103324559A (en) Speed testing method for data transmitting from PCIExpress master to equipment based on FPGA (field programmable gate array)
US11176018B1 (en) Inline hardware compression subsystem for emulation trace data
CN104572015A (en) FLASH chip combined with FPGA and instruction processing method
CN103150129B (en) PXI e interface Nand Flash data flow table access accelerated method
US20220269642A1 (en) Method and apparatus for eliminating glitch, and state machine
CN112035391B (en) Interface device and method for serial communication and electronic equipment
CN104699555A (en) ECC function verification method and device and product thereof for memory module
CN102662812B (en) Performance testing system for PCI (peripheral Component Interconnect) bus-based single-way reception demodulator
CN203673293U (en) Position measuring and controlling device
CN103455656A (en) Reusable reference model structure, and modeling method and function library for same
CN202372977U (en) Universal serial bus (USB) main equipment interface structure based on field programmable gate array (FPGA)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20170111

AD01 Patent right deemed abandoned