太赫兹科学与电子信息学报, 2022, 20 (4): 385, 网络出版: 2022-08-12  

基于FPGA的PCIe 接口逻辑设计与实现

Design and implementation of PCIe interface logic based on FPGA
作者单位
南京信息工程大学电子与信息工程学院,江苏南京210044
摘要
为了提升高速串行计算机扩展总线标准(PCIe)总线互联设备在高速通信过程中的系统性能,减少对中央处理器(CPU)资源的占用,基于Kintex-7 系列现场可编程逻辑门阵列(FPGA)平台进行总线主控式直接存储访问(DMA)设计,通过PCIe 接口实现了主机设备(PC)与FPGA 设备之间的高性能数据传输。同时,基于Root Port 仿真平台设计DMA 读写测试用例,仿真结果验证PCIe 接口逻辑的正确性。通过连接上位机和配置驱动进行实际传输速率测试,结果表明,DMA 写速率最高可达1 620 MB/s,DMA 读速率最高可达1 427 MB/s,带宽最大值能够达到PCIe 接口理论带宽值的84%。设计方案成本低,可靠性高,能够满足高性能、低延时的数据采集要求。
Abstract
The bus master Direct Memory Access(DMA) controller is implemented based on the Kintex-7 series Field Programmable Gate Array(FPGA) platform in order to improve the system performance of Peripheral Component Interconnect express(PCIe) bus interconnection devices in the process of high-speed communication and reduce the consumption of Central Processing Unit(CPU) resources. The high performance data transmission between Personal Computer(PC) and FPGA via PCIe is realized. DMA test cases are designed through the Root Port simulation platform, and the simulation results verify the correctness of the PCIe interface logic. The actual transmission rate is tested through the master computer and driver, and the experimental results show that the measured highest transfer rates are 1 620 MB/s on write and 1 427 MB/s on read, which reaches 84% of the theoretical maximum. The design scheme bears the advantages of low cost and high reliability, and can meet the requirements of data acquisition with high performance and low delay.
参考文献

[1] BITTNER R,RUF E,FORIN A. Direct GPU/FPGA communication via PCI express[J]. Cluster Comput, 2014,17:339-348.

[2] 赵赫,黄志洪,余乐,等. 适用于FPGA 的浮点型DSP 硬核结构设计[J]. 太赫兹科学与电子信息学报, 2019, 17(3):524-530.(ZHAO He, HUANG Zhihong, YU Le, et al. A suitable design of floating-point DSP hard core structure in FPGA[J]. Journal of Terahertz Science and Electronic Information Technology, 2019,17(3):524-530.)

[3] ROTA L,CASELLE M,CHILINGARYAN S,et al. A PCIe DMA architecture for multi-gigabyte per second data transmission[J].IEEE Transactions on Nuclear Science, 2015,62(3):972-976.

[4] 李胜蓝,姜宏旭,符炜剑,等. 基于PCIe 的多路传输系统的DMA 控制器设计[J]. 计算机应用, 2017,37(3):691-694,716. (LI Shenglan,JIANG Hongxu,FU Weijian,et al. Design of DMA controller for multi-channel transmission system based on PCIe[J].Journal of Computer Applications, 2017,37(3):691-694,716.)

[5] JIANG H X,LI S L,LI H Y,et al. A high-performance and hardware-efficient PCIe transmission for a multi-channel video using command caching and dynamic splicing on FPGA[J]. Journal of Circuits,Systems and Computers, 2018,27(4):1-19.

[6] 王齐. PCI express 体系结构导读[M]. 北京:机械工业出版社, 2010. (WANG Qi. Introduction to PCI express architecture[M].Beijing:China Machine Press, 2010.)

[7] 马鸣锦,朱剑冰,何红旗. PCI、PCI-X 和PCI express 的原理及体系结构[M]. 北京:清华大学出版社, 2007. (MA Mingjin,ZHU Jianbing,HE Hongqi. The principle and architecture of PCI,PCI-X and PCI express[M]. Beijing:Tsinghua University Press, 2007.)

[8] KAVIANIPOUR H, MUSCHTER S, BOHM C, et al. High performance FPGA-based DMA interface for PCIe[J]. IEEE Transactions on Nuclear Science, 2014,61(2):1-3.

[9] 李晓宁,姚远程,秦明伟. 基于PCIe 的高速接口设计[J]. 信息技术与网络安全, 2016, 35(1): 27-29, 32. (LI Xiaoning, YAO Yuancheng,QIN Mingwei. Design of high-speed interface based on PCIe[J]. Information Technology and Network Security, 2016,35(1):27-29,32.)

[10] 蒲恺,唐庆,田园. 基于IP 核的PCIe 总线接口逻辑的设计和实现[J]. 航空计算技术, 2017,47(1):116-120. (PU Kai,TANG Qing,TIAN Yuan. Designing and implementation based on IP core of interface logic for PCI express[J]. Aeronautical Computing Technique, 2017,47(1):116-120.)

[11] 何广亮. 基于PCIe 总线的DMA 控制器设计与实现[J]. 信息技术与网络安全, 2018,37(4):131-135. (HE Guangliang. Design and implementation of DMA controller based on PCIe bus[J]. Information Technology and Network Security, 2018, 37(4):131-135.)

[12] 秦固平,毛瑞娟,杨小勇,等. 一种PCIe 接口逻辑的FPGA 实现[J]. 无线电工程, 2019, 49(4): 351-356. (QIN Guping, MAO Ruijuan,YANG Xiaoyong,et al. An FPGA implementation of PCIe interface logic[J]. Radio Engineering, 2019,49(4):351-356.)

[13] ZHAO Y X,LIU X,YANG J. A resource and timing optimized PCIe DMA architecture using FPGA internal data buffer[J]. IEICE Electronics Express, 2019,16(1):1-12.

[14] 李木国,黄影,刘于之. 基于FPGA 的PCIe 总线接口的DMA 传输设计[J]. 计算机测量与控制, 2013,21(1):233-235,249. (LI Muguo, HUANG Ying, LIU Yuzhi. Design of DMA transmission with PCIe bus interface based on FPGA[J]. Computer Measurement and Control, 2013,21(1):233-235,249.)

[15] 陈刚,张京,唐建. 一种基于FPGA 的PCIe 总线及其DMA 的设计方法[J]. 兵工自动化, 2014, 33(5): 75-77. (CHEN Gang,ZHANG Jing, TANG Jian. A design of PCIe bus and DMA based on FPGA[J]. Ordnance Industry Automation, 2014, 33(5):75-77.)

[16] MBAKOYIANNIS D, TOMOUTZOGLOU O, KORNAROS G. Energy-performance considerations for data offloading to FPGAbased accelerators over PCIe[J]. ACM Transactions on Architecture and Code Optimization, 2018,15(1):1-24.

[17] SHIM C, SHINDE R, CHOI M. Compatibility enhancement and performance measurement for socket interface with PCIe interconnections[J]. Human-centric Computing and Information Sciences, 2019,9(10):1-18.

[18] PCI-SIG. PCI express 2.0 base specification revision 0.9[S/OL]. [2020-07-16]. Peripheral Component Interconnect Special Interest Group(PCI-SIG), 2006. http://www.pcisig.com/specications/pciexpress/base2/.

李龙乾, 方华, 冯姣, 李鹏. 基于FPGA的PCIe 接口逻辑设计与实现[J]. 太赫兹科学与电子信息学报, 2022, 20(4): 385. LI Longqian, FANG Hua, FENG Jiao, LI Peng. Design and implementation of PCIe interface logic based on FPGA[J]. Journal of terahertz science and electronic information technology, 2022, 20(4): 385.

关于本站 Cookie 的使用提示

中国光学期刊网使用基于 cookie 的技术来更好地为您提供各项服务,点击此处了解我们的隐私策略。 如您需继续使用本网站,请您授权我们使用本地 cookie 来保存部分信息。
全站搜索
您最值得信赖的光电行业旗舰网络服务平台!