基于Cortex-M3内核的PCIe RP系统设计与实现

徐俊杰, 魏敬和, 刘国柱, 何健, 张正

集成电路与嵌入式系统 ›› 2025, Vol. 25 ›› Issue (8) : 74-80.

PDF(9925 KB)
PDF(9925 KB)
集成电路与嵌入式系统 ›› 2025, Vol. 25 ›› Issue (8) : 74-80. DOI: 10.20193/j.ices2097-4191.2025.0051
新兴计算芯片设计研究专刊

基于Cortex-M3内核的PCIe RP系统设计与实现

作者信息 +

Design and implementation of PCIe RP system based on Cortex-M3 kernel

Author information +
文章历史 +

摘要

外设组件互联快速总线 (Peripheral Component Interconnect Express,PCIe)与串行快速IO (Serial Rapid IO,SRIO)是主流的高速通信接口协议。在以人工智能为代表的大数据量应用场景中,实现上述协议兼容是构建大算力系统、突破存储与算力瓶颈的关键。针对上述需求,芯粒间互联通信协议 (Chiplets Interconnect Protocol,CIP)以统一的路由网络实现了PCIe、SRIO、DDR与NAND FLASH等多协议转换交互。其中,PCIe作为主要的人机交互接口,构建PCIe RP(Root Port,根节点)系统是实现PCIe通信的基础。现有的基于操作系统的PCIe读/写设备存在延迟高、可操作性差等问题。为解决上述问题,基于Cortex-M3处理器搭建了一套PCIe RP系统,并进行了相应的驱动与软件开发,实现了PCIe与各类设备之间高效而精确的数据传输。在实现基本功能的基础上,分别完成了5万次、10万次、15万次的大规模数据交互的稳定性测试。结果表明,该系统在大规模数据交互事件中有较好的稳定性,为处理器与PCIe间的数据交互提供了解决方案。

Abstract

PCIe and SRIO are the mainstream high-speed communication interface protocols. In the large data application scenario represented by artificial intelligence, achieving the compatibility of the above protocols is the key to build a large computing power system to break through the bottleneck of storage and computing power. In view of the above requirements, CIP interconnection core realizes multi-protocol conversion interaction such as PCIe, SRIO, DDR and NAND FLASH with a unified routing network. Among them, PCIe is the main human-computer interaction interface, and the construction of PCIe RP system is the basis of PCIe communication. The existing PCIe reading and writing devices based on operating system have some problems, such as high delay and poor operability. In order to solve the above problems, a PCIe RP system is built based on Cortex-M3 processor, and the corresponding drivers and software are developed, which realizes efficient and accurate data transmission between PCIe and various devices. On the basis of realizing the basic functions, the stability tests of 50 000 times, 100 000 times and 150 000 times of large-scale data interaction were completed respectively. The results show that the system has good stability in large-scale data interaction events. It provides a solution for data interaction between processor and PCIe.

关键词

PCIe / SRIO / DDR / NAND FLASH / 互联标准 / 数据交互 / Cortex-M3 / 驱动开发

Key words

PCIe / SRIO / DDR / NADN FLASH / interconnection standard / data interaction / Cortex-M3 / drive development

引用本文

导出引用
徐俊杰, 魏敬和, 刘国柱, . 基于Cortex-M3内核的PCIe RP系统设计与实现[J]. 集成电路与嵌入式系统. 2025, 25(8): 74-80 https://doi.org/10.20193/j.ices2097-4191.2025.0051
XU Junjie, WEI Jinghe, LIU Guozhu, et al. Design and implementation of PCIe RP system based on Cortex-M3 kernel[J]. Integrated Circuits and Embedded Systems. 2025, 25(8): 74-80 https://doi.org/10.20193/j.ices2097-4191.2025.0051
中图分类号: TN492 (专用集成电路)   

参考文献

[1]
辛艳, 施睿, 赵冬青, 等. 基于自定义重传协议的高速传输接口设计[J]. 单片机与嵌入式系统应用, 2022, 22(11):29-32.
XIN Y, SHI R, ZHAO D Q, et al. Design of high-speed transmission interface based on custom retransmission protocol[J]. Microcontrollers & Embedded Systems, 2022, 22(11):29-32 (in Chinese).
[2]
孙建鑫. 高速串行协议触发及解码功能设计[D]. 成都: 电子科技大学, 2025.
SUN J X. Design of trigger and decoding function of high-speed serial protocol[D]. Chengdu: University of Electronic Science and Technology of China, 2025 (in Chinese).
[3]
李菁灏. 电子通信技术的多领域应用及其研究[J]. 科学与信息化, 2024(2):34-36.
LI J H. Multi-domain application and research of electronic communication technology[J]. Science and Informatization, 2024(2):34-36 (in Chinese).
[4]
柴天佑. 工业人工智能发展方向[J]. 自动化学报, 2020, 46(10):2006-2012.
CHAI T Y. Development direction of industrial artificial intelligence[J]. Acta Automatica Sinica, 2020, 46(10):2006-2012 (in Chinese).
[5]
YIN J, WANG H, XU Z. A reconfigurable rack-scale interconnect architecture based on PCIe fabric[C]// Beijing:IEEE 2nd International Conference on Data Science and Computer Application (ICDSCA), 2022:306-310.
[6]
胡涛. 基于SRIO的多协议实时交换技术研究[D]. 杭州: 浙江大学, 2022.
HU T. Research on multi-protocol real-time switching technology based on SRIO[D]. Hangzhou: Zhejiang University, 2022 (in Chinese).
[7]
刘畅. 面向硬件仿真器的DDR3 SDRAM控制器软核验证平台研究[D]. 天津: 中国民航大学, 2023.
LIU C. Research on soft-core verification platform of DDR3 SDRAM controller for hardware emulator[D]. Tianjin: Civil Aviation University of China, 2023 (in Chinese).
[8]
徐磊, 王保成. 基于地址映射的NAND Flash控制器设计[J]. 计算机测量与控制, 2023, 31(6):109-116.
XU L, WANG B C. Design of NAND Flash controller based on address mapping[J]. Computer Measurement & Control, 2023, 31(6):109-116 (in Chinese).
[9]
刘正强, 洪徐健, 孙卫红. 基于FPGA高速Serdes接口的收发模块握手协议设计[J]. 电子科技, 2025, 38(3):82-87.
LIU Z Q, HONG X J, SUN W H. Handshaking protocol design of transceiver module based on FPGA high-speed serdes interface[J]. Electronic Science and Technology, 2025, 38(3):82-87 (in Chinese).
[10]
ZENG M, CHEN C. Design of High-speed Data Transmission System Based on Fiber-PCIE[J]. Frontiers in Business,Economics and Management, 2023, 7(3):84-89.
[11]
陈立. 嵌入式软件在计算机系统中的应用探析[J]. 电子通信与计算机科学, 2023, 5(1):83-85.
CHEN L. Application of embedded software in computer system[J]. Electronic Communication & Computer Science, 2023, 5(1):83-85 (in Chinese).
[12]
韩国庆. 基于PCIe交换芯片的热插拔控制器设计与验证[D]. 南京: 南京信息工程大学, 2024.
HAN G Q. Design and Verification of Hot Plug Controller Based on PCIe Switch Chip[D]. Nanjing: Nanjing University of Information Science and Technology, 2024 (in Chinese).
[13]
刘佳宁, 单伟, 刘金鹏. PCIe总线DMA高速传输系统的设计与实现[J]. 电子技术应用, 2023, 49(12):85-89.
LIU J N, SHAN W, LIU J P. Design and implementation of high-speed DMA transmission system based on PCIe bus[J]. Electronic application technology, 2023, 49(12):85-89 (in Chinese).

基金

江苏省自然科学基金(BK20232029)
江苏省揭榜挂帅项目(BE2023005)

PDF(9925 KB)

Accesses

Citation

Detail

段落导航
相关文章

/