• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2024, Vol. 46 ›› Issue (02): 224-231.

• 高性能计算 • 上一篇    下一篇

软硬件混合的高效CHI协议分析

赵祉乔1,2,周理2,荀长庆2,潘国腾2,铁俊波2,王伟征1    

  1. (1.长沙理工大学计算机与通信工程学院,湖南 长沙 410114;2.国防科技大学计算机学院,湖南 长沙 410073) 
  • 收稿日期:2023-01-04 修回日期:2023-03-27 接受日期:2024-02-25 出版日期:2024-02-25 发布日期:2024-02-24

Efficient analysis of coherent hub interface protocol mixturing hardware and software

ZHAO Zhi-qiao1,2,ZHOU Li2,XUN Chang-qing2,PAN Guo-teng2,TIE Jun-bo2,WANG Wei-zheng1   

  1. (1.School of Computer and Communication Engineering,Changsha University of Science & Technology,Changsha 410114;
    2.College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China)
  • Received:2023-01-04 Revised:2023-03-27 Accepted:2024-02-25 Online:2024-02-25 Published:2024-02-24

摘要: 在片上系统SoC开发过程中,如何高效准确地进行功能验证与性能分析,是亟待解决的难题。针对目前在FPGA原型平台上对片上网络协议监测手段有限的问题,提出了一种软硬件混合的高效CHI协议监测和分析方法,通过SystemVerilog的直接编程接口DPI连接C代码,由可综合的硬件部分提供共享函数体,不可综合的软件部分通过共享函数体从片上网络协议的各个通道捕捉待测SoC中的CHI报文,进行离线保存或在线检查。实验结果表明,该方法具有硬件资源占用少、可重用性高的优点,离线模式对仿真速率影响不大,在线模式可以在待测SoC运行的同时发现问题,能够实现在原型平台上对CHI协议报文的高效监测,有效加速SoC问题的定位和性能分析。

关键词: CHI协议, FPGA, 芯片验证, 软硬件混合

Abstract: In the development process of SoC, how to efficiently and accurately perform functional verification and performance analysis is an urgent problem to be solved. Aiming at the current limited monitoring means of Network-on-Chip protocols on FPGA prototype platforms, this paper proposes an efficient monitoring and analysis method with hardware-software mixture for CHI  protocols. By connecting C code through the DPI of SystemVerilog, the synthesizable hardware part provides a shared function body, while the non-synthesizable software part captures CHI messages in the SoC under test from various channels of the Network-on-Chip protocol through the shared function body for offline storage or online inspection. Experimental results show that this method has the advantages of low hardware resource occupation and high reusability. The offline mode has little impact on simulation speed, while the online mode can detect problems while the SoC under test is running, enabling efficient monitoring of CHI protocol mes- sages on the prototype platform and effectively accelerating the localization and performance analysis of SoC problems.

Key words: coherent hub interface (CHI) protocol, FPGA, verification of chip, hardware-software mixture ,