- 无标题文档
查看论文信息

中文题名:

 某基带芯片故障定位系统的设计与验证    

姓名:

 鲍道川    

学号:

 17111212718    

保密级别:

 公开    

论文语种:

 chi    

学科代码:

 085212    

学科名称:

 工学 - 工程 - 软件工程    

学生类型:

 硕士    

学位:

 工程硕士    

学校:

 西安电子科技大学    

院系:

 微电子学院    

专业:

 电子信息    

研究方向:

 数字IC设计与验证    

第一导师姓名:

 娄利飞    

第一导师单位:

 西安电子科技大学    

第二导师姓名:

 刘洁    

完成日期:

 2020-03-10    

答辩日期:

 2020-05-24    

外文题名:

 Design and verification of a baseband chip fault location system    

中文关键词:

 片上调试 ; 系统冻结 ; 调试模式 ; 悬挂模式    

外文关键词:

 On-chip debug ; system to freeze ; debug mode ; suspend mode    

中文摘要:

在目前飞速发展的片上系统中,SoC上集成的IP核越来越多,结构越来越复杂,使得多核片上系统面临着巨大的调试压力。Intel基带芯片作为一种复杂的异构多核处理器系统,虽然内部实现了JTAG扫描技术和Coresight调试系统,但是已经不能满足对于庞大的芯片系统在单一点出现错误,需要抓住整个系统的现场状态,实现芯片内部资源完全可观测的需求。尤其是特定的内部存储、特殊的硬件加速器以及外设的寄存器值的可视化,对于快速定位故障位置,顺利开展调试工作愈发重要。

为解决上述问题,本文对不同的芯片内部资源进行研究,设计了一种多核处理器抓取故障现场的片上调试方法,通过对不同的模块以及子系统的设计,使得整个芯片系统可以进入特殊的调试模式并且保持冻结状态,最终通过唯一可活动的主处理器来获取整个芯片各个模块的状态信息,达到抓取故障现场的目的。论文的主要工作如下:首先基于四种不同处理器的调试模式和调试方法的分析对比,选定通过驱动外部调试接口的方式控制所有子系统的处理器进入调试模式,以避免对芯片现场产生干扰;其次,通过分析NoC与总线共同搭建的通信系统的特点,利用多核调试模块的输出信号驱动网络接口单元的Stall信号,使NoC不再接收来自所有其他发起者新的总线请求,同时清空NoC内部数据,使NoC处于空闲状态,达到截断芯片内部数据通路的目的;然后对于外设,采用TOPSPIN专利生成的外设支持特殊的悬挂模式,通过关闭外设主时钟的方式冻结外设,从而保证不对故障现场产生影响;最后,整个芯片的主处理器获得芯片唯一的访问权,实现故障现场的可视化,进一步开展调试工作,待锁定发生错误的模块后,就可以结合系统检测器具体分析错误模块相关的内部信号。

本文最终完成了基于基带芯片的故障定位系统的设计,运用UVM验证方法学编写了23个测试用例对本文的设计展开定向随机验证,通过覆盖率的收集来确保调试系统功能的完备性,最终验证结果表明代码覆盖率和功能覆盖率均达到100%,满足设计的要求。并且在流片之后,采用劳特巴赫硬件调试器的典型片上测试环境,对封装后的芯片进行了流片后测试,结合示波器对158个关键信号的状态进行近30次分组抽样监测,监测结果表明关键信号的状态正确,故障定位系统的功能达到预期。该调试系统的成功实现为调试人员提供了新的调试方案选择,大幅度降低了片上调试工作定位错误的时间。

外文摘要:

In the current rapid development of system-on-chips, more and more IP cores are integrated into SoC and the structure is becoming more and more complex, which makes the multi-core SoC face huge debugging pressure. As a complex heterogeneous multi-core processor system, the Intel baseband chip implements JTAG scanning technology and Coresight debugging system inside the chip. However, these debugging methods can no longer meet the needs of a large-scale chip system at a single point of error, which need to grasp the on-site state of the entire system and achieve fully observable chip internal resources. In particular, the visualization of specific memory values and peripheral register values is increasingly important for quickly locating the location of a fault for debugging.

 

In order to solve the above problems, we have studied different internal resources of the chip and designed a method of on-chip debugging for multi-core processors to capture the fault scene. This debugging system enables the entire chip system to enter a special debugging mode and maintain a frozen state through the design of different modules and subsystems. And then, This system obtains the status information on each module of the entire chip through the only active main processor to achieve the purpose of capturing the fault scene. The main work of the paper are as follows:First of all, based on the analysis and comparison of the debugging modes and debugging methods of the four different processors, I chose to control all processors to enter the debugging mode by driving the external debugging interface to avoid affecting the state of the chip. Secondly, by analyzing the characteristics of the communication system formed by the NoC and the bus, I use the output signal of the multi-core debugging module to drive the Stall signal of the network interface unit, so that the NoC no longer receives new bus requests from other initiators and clears the internal data of the NoC. Such a design can keep the NoC in an idle state to intercept the internal data path of the chip. And then, I use TOPSPIN IP to generate peripherals that support special suspend mode. It freezes the peripherals by turning off the peripheral kernel clock to ensure that it does not affect the fault scene. Finally, the main processor of the chip obtain the unique access right of the chip to realize the visualization inside the chip. After the error module is locked, we can use the embedded system monitor to analyze the internal signals related to the error module.

 

I finally completed the design of the fault location system based on the baseband chip and used UVM verification methodology to write 23 testcases for directed functional test and random test of the design. The final code coverage and feature coverage collection results reached 100%, it shows that the debugging system meets the design requirements.After tapeout, I performed a post-silicon test on the packaged chip using the typical post-silicon tests environment of the Lauterbach hardware debugger and combined with an oscilloscope to monitor the status of 158 key signals for nearly 30 group samplings. The monitoring results show that the status of the key signals is correct and the function of the fault location system is as expected. The successful implementation of this debugging system provides debuggers with a new choice of debugging schemes and greatly reduces the time for on-chip debugging.

参考文献:
[1]沈休垒. 复杂多核系统的调试系统设计与研究[D]. 合肥工业大学, 2017.
[2]张立超. 数字电视信源解码系统架构设计与总线分析[D]. 北京工业大学, 2008.
[3]孟李林. 从SoC到NoC的集成电路设计技术发展[J]. 半导体技术, 2008(03): 190-192.
[4]石泽文. 多核处理器的容错路由与粒度建模研究[D]. 复旦大学, 2011.
[5]王立炜. 片上网络架构下多核处理器系统的设计[D]. 太原理工大学, 2010.
[6]Kai Liu, Huize Fan, Shuiqing Huang, et al. A pair of integrated optoelectronic transceiving chips for optical interconnects[J]. Chinese Optics Letters, 2018, 16(09): 50-54.
[7]Qunyong Zhang, Ping Xu, Shining Zhu. Quantum photonic network on chip[J]. Chinese Physics B,2018,27(05):63-77.
[8]李胜. WiNoC中无线节点拥塞避免与故障容错方法研究[D]. 合肥工业大学, 2018.
[9]周培园, 施慧彬. MPSoC上的NoC通信架构的实现[J]. 电子产品世界, 2012, 19(5): 39-41.
[10]许钊. 动态自适应片上网络的设计与评估[D]. 西安电子科技大学, 2014
[11]高浩雄. 基于TNoC的追踪调试系统在基带芯片中的应用[D]. 西安电子科技大学, 2018.
[12]Kexin Zhang, Jian Yu. Architecture of the on-chip debug module for a multiprocessor system[C]. 中国科技大学(台湾)、台湾营建工程学会, 2016.
[13]Wang G, Zhang Shengbing. On-chip Debug Architecture for MCU-DSP Core Based SoC[C]. Pudong New Area Association for Computer, China, 2011.
[14]高瑛珂, 王琪, 李泉泉, 等. 一种基于JTAG接口的片上调试与性能分析方法[J]. 微电子学与计算机, 2012, 29(07): 68-71.
[15]Q Xu, X Liu. On Signal Tracing in Post-Silicon Validation[C]. IEEE Design Automation Conference, 2010: 262-267.
[16]K Basu, P Mishra. Efficient trace signal selection for post silicon validation and debug[C]. Internatioal Conference on Vlsi Design, 2011: 352-357.
[17]高建良, 韩银和. 多核处理器硅后调试技术研究最新进展[J]. 计算机应用研究, 2013, 30(02): 321-324.
[18]ARM CoreSight System-on-Chip SoC-600M Technical Reference Manual[EB/OL]. [2020]. UK: ARM Ltd, 2020.
[19]李萍萍. 异构多核系统调试技术的研究与实现[D]. 合肥工业大学, 2015.
[20]Synopsys, Inc. Patent Issued for System and Method of Debugging Multi-Threaded Processes (USPTO 9459992)[J]. Computer Weekly News, 2016.
[21]Stollon, Neal. On-chip instrumentation: Design and Debug for Systems on Chip[M]. Springer, 2011.
[22]Anonymous. Wind River Introduces Workbench On-Chip Debugging 3.1.1[J]. Wireless News, 2009.
[23]Anonymous. Wind River Rolls Out New Version of Workbench On-Chip Debugging[J]. Wireless News, 2011.
[24]王阳赞. ARM CoreSight跟踪调试技术的研究与应用[D]. 武汉理工大学, 2009.
[25]王哲宇. 基于CoreSight接口的ARM跨平台调试系统的研究与实现[D]. 华东师范大学, 2015.
[26]张鹏, 樊晓桠, 黄小平. 基于总线访问的片上调试方法研究[J]. 计算机测量与控制, 2014, 22(02): 510-512.
[27]熊殿飞. 多核架构下JTAG调试的研究与设计[D]. 哈尔滨工业大学, 2012.
[28]徐文昌. SoC调试跟踪系统的设计与实现[D]. 西安电子科技大学, 2012.
[29]Nikil Dutt, Sudeep Pasricha. On-chip communication architectures: System on chip interconnect[M]. O’ REILLY, 2010.
[30]李丽, 许居衍. 片上网络技术发展现状及趋势浅析[J]. 电子产品世界, 2009, 16(01): 32-37.
[31]胡伟. 片上网络的拓扑结构研究[J]. 黄山学院学报, 2010, 12(05): 83-86.
[32]Guerrier P, Greiner A. A generic architecture for on-chip packet-switched interconnections[C]. Conference on design, 2000: 250-256.
[33]JP Soininen, Kumar S, Jantsch A, et al. A network-on-chip architecture and design methodology[C]. Proceedings of the computer society annual symposium on VLSI (ISVLSI), Pittsburgh, 2002: 117-124.
[34]Osso M D, Biccari G, Giovannini L, et al. Xpipes: A latency insensitive parameterized network-on-chip architecture for multi-processor SoCs[C]. international conference on computer design (ICCD), San Jose, 2003: 536–539.
[35]侯宁, 卢亚鹏, 张多利. 基于片上网络的多核芯片组通讯方案[J]. 计算机代, 2014(10): 17-18.
[36]唐杉. 基于片上网络互联的SoC调试技术研究[D]. 北京邮电大学, 2008.
[37]H Yi, S Park, S Kundu. On-chip support for NoC-based SoC debugging[J]. IEEE Transaction on Circuits and Systems | Regular Papers, 2010, 57(7): 1605-1614.
[38]侯翔云. 片上网络接口可靠性设计研究[D]. 电子科技大学, 2018.
[39]王智利. 基于网络架构的片上调试系统研究[D]. 西安电子科技大学, 2017.
[40]ARM Cortex-R8 MPcore Processor Technical Reference Manual[EB/OL]. [2019]. UK: ARM Ltd, 2016.
[41]Synopsys, Inc. DesignWave ARCv2 ISA Programmer’s Reference Manual for ARC HS4x Processors [Vesion 5791-0009 January 2018].
[42]ARC EM处理器嵌入式系统开发与编程[M]. 机械工业出版社, 雷鉴铭, 2015.
[43]Cadance Design Systems, Inc. Xtensa@LX7 Microprocessor Data Book[EB/OL]. 2018.
[44]Cadance Design Systems, Inc. Xtensa@Debug Guide[EB/OL]. 2018.
[45]The RISC-V Instruction Set Manual,Volume I: Unprivileged ISA, Document Version 20190608 -Base-Ratified [EB/OL]. Waterman A, 2019.
[46]RISC-V External Debug Support, Version 0.13[EB/OL]. https://dev.sifive.com, 2017.
[47]Architectural Concepts for TOPSPIN Peripherals[EB/OL]. Infineon, 2010.
[48]Hardware/Software Interfaces HWAPI Reference Manual[EB/OL]. Infineon, 2008.
[49]D Wang, X Fan, X Fu, et al. The design for testability features of a general purpose microprocessor[C]. IEEE International Test Conference, 2007: 1-9.
[50]杨旭, 刘江, 钱诚, 等. 一种面向多核处理器的通用可调试性架构[J]. 计算机辅助设计与图形学学报, 2011, 23(10): 1656-1664.
[51]UVM实战 卷Ⅰ[M]. 机械工业出版社, 张强, 2014.
[52]芯片验证漫游指南[M]. 电子工业出版社, 刘斌, 2018.
[53]纪虎东. 手机基带芯片SoC中断系统的设计与验证[D]. 西安电子科技大学, 2017.
[54]年旭升. 基于UVM的高性能总线架构的分析验证[D]. 西安电子科技大学, 2017.
[55]黄颖然. 基于覆盖率验证方法的IP核测试平台设计[D]. 西安电子科技大学, 2009.
[56]陈先勇, 徐伟俊, 杨鑫, 等. SystemVerilog断言及其应用[J]. 中国集成电路, 2007(09): 19-24.
[57]D Josephson. The good, the bad, and the ugly of silicon debug[C]. Design Automation Conference, 2006: 3-6.
[58]X Liu, Q Xu. On Signal Selection for Visibility Enhancement in Trace-Based Post-Silicon Validation[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2012, 31(8): 1263-1274.
[59]张明. 面向众核处理器的硅后调试关键技术研究[D]. 国防科技大学, 2017.
[60]Ting Lei, Hu He, Yihe Sun. ISTA: An Embedded Architecture for Post-silicon Validation in Processors[C]. IEEE Beijing Section, 2009: 4.
[61]X Liu, Q Xu. Interconnection fabric design for tracing signals in post-silicon validation[C]. Proceedings of the 46th Annual Design Automation Conference. ACM, 2009: 352-357.
[62]李正书. 一种针对SoC低功耗应用场景的新型调试系统的设计与验证[D]. 西安电子科技大学, 2019.
中图分类号:

 TN4    

馆藏号:

 48016    

开放日期:

 2020-12-19    

无标题文档

   建议浏览器: 谷歌 火狐 360请用极速模式,双核浏览器请用极速模式