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

计算机工程与科学 ›› 2023, Vol. 45 ›› Issue (03): 411-419.

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

OpenEmulator:一种面向TSN芯片验证的联合仿真平台

汪铮,黄容,吴茂文,孙寅涵,孙志刚   

  1. (国防科技大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2022-10-24 修回日期:2022-12-10 接受日期:2023-03-25 出版日期:2023-03-25 发布日期:2023-03-22
  • 基金资助:
    基础加强计划技术领域基金(2020-JCJQ-JJ-108)

OpenEmulator: A co-emulation platform based on TSN chip verification

WANG Zheng,HUANG Rong,WU Mao-wen,SUN Yin-han,SUN Zhi-gang   

  1. (College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China)
  • Received:2022-10-24 Revised:2022-12-10 Accepted:2023-03-25 Online:2023-03-25 Published:2023-03-22

摘要: 硬件仿真器是加快时间敏感网络TSN芯片验证的重要手段。由于TSN芯片复杂性远低于SoC芯片,基于CPU的硬件仿真器可满足TSN芯片验证的需求。为满足TSN芯片设计需求,设计实现了一个面向TSN芯片验证的硬件仿真器OpenEmulator。针对TSN系统仿真的特点,提出了一种应用于OpenEmulator的时间同步互锁机制,实现了运行芯片HDL设计代码的硬件仿真域与运行真实TSN软件的物理域之间的精确时间同步。OpenEmulator已经在OpenTSN芯片设计中得到应用,基于普通PC机,可在20 min内仿真包含6个节点的TSN网络初始化和首次时间同步功能,大大提升了TSN芯片仿真验证的效率。目前OpenEmulator已经开源并集成到最新发布的OpenTSN开源项目3.4版本中。

关键词: 时间敏感网络, 芯片验证, 联合仿真, 时间同步, 时间互锁 ,  ,

Abstract: Hardware emulator is an important means to speed up the verification of Time-Sensitive Networking (TSN) chips. Since TSN chips are far less complex than SoCs (System on Chips), CPU-based hardware emulators can already meet the performance requirements of TSN chip verification. To meet the needs of the TSN chip design, a hardware emulator called OpenEmulator (abbreviated as OE) for the verification of TSN chips is designed and implemented. According to the characteristics of TSN system emulation, a time synchronization mechanism applied to OpenEmulator, called time interlock, is proposed, which realizes precise time synchronization between the physical domain running the real TSN application and the emulation domain running the hardware logic programed by the hardware description language (HDL). At present, OpenEmulator has been applied in the design process of OpenTSN chips. Based on a common PC, OpenEmulator can emulate the initialization of a 6-node TSN network and the subsequent first clock synchronization process in 20 minutes, greatly improving the efficiency of TSN chip emulation verification. Now, OpenEmulator has been open-sourced and integrated into the newly released version of the OpenTSN open source project (version 3.4).

Key words: time-sensitive networking (TSN), chip verification, co-emulation, time synchronization, time interlock

中图分类号: