许霁航, 杨靓, 娄冕, 张海金. 基于RISC-V调试协议的片上调试系统设计与实现[J]. 微电子学与计算机, 2022, 39(12): 86-92. DOI: 10.19304/J.ISSN1000-7180.2022.0313
引用本文: 许霁航, 杨靓, 娄冕, 张海金. 基于RISC-V调试协议的片上调试系统设计与实现[J]. 微电子学与计算机, 2022, 39(12): 86-92. DOI: 10.19304/J.ISSN1000-7180.2022.0313
XU Jihang, YANG Liang, LOU Mian, ZHANG Haijin. Design and implementation of on-chip debugging system based on RISC-V debugging protocol[J]. Microelectronics & Computer, 2022, 39(12): 86-92. DOI: 10.19304/J.ISSN1000-7180.2022.0313
Citation: XU Jihang, YANG Liang, LOU Mian, ZHANG Haijin. Design and implementation of on-chip debugging system based on RISC-V debugging protocol[J]. Microelectronics & Computer, 2022, 39(12): 86-92. DOI: 10.19304/J.ISSN1000-7180.2022.0313

基于RISC-V调试协议的片上调试系统设计与实现

Design and implementation of on-chip debugging system based on RISC-V debugging protocol

  • 摘要: 为满足RISC-V架构生态中对RISC-V平台软件调试的需求,设计并实现了一种基于RISC-V调试协议的片上调试系统.该系统通过调试传输模块实现并隐藏调试模块内部寄存器访问逻辑,将其简化为JTAG串行信号实现与宿主机的交互,并通过调试模块实现了调试所必需的处理器全面监控与存储访问功能.在基本调试功能的基础上,进一步实现了总线直接访问、程序缓存和基于触发模块的触发功能,并在兼容RISC-V调试协议的情况下实现了事件序列触发功能.该片上调试系统依托于自研RISC-V处理器硬件平台,通过GDB与OpenOCD构成的宿主机软件环境进行功能测试.经过与其他RISC-V架构处理器对比和FPGA测试表明,该片上调试系统功能丰富,能够满足目前RISC-V平台调试的功能需求.

     

    Abstract: In order to meet the needs of RISC-V platform software debugging in the RISC-V architecture ecosystem, an on-chip debugging system based on the RISC-V debugging protocol is designed and implemented. The system implements and hides the internal register access logic of the debug module through the debug transport module, and simplifies it into a JTAG serial signal to implements the interaction with the host computer. On the basis of the basic debugging function, the direct bus access, program buffer and trigger function based on the trigger module are further implemented, and implements the event sequence trigger function while being compatible with the RISC-V debugging protocol. The on-chip debugging system relies on the self-developed RISC-V processor hardware platform, and performs functional testing through the host software environment composed of GDB and OpenOCD. The comparison with other RISC-V architecture processors and FPGA tests show that the on-chip debugging system is rich in functions and can meet the functional requirements of the current RISC-V platform debugging.

     

/

返回文章
返回