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

计算机工程与科学 ›› 2021, Vol. 43 ›› Issue (04): 652-661.

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

一种基于参考模型的GPDSP指令流控自动验证方法

王慧丽,郭阳   

  1. (国防科技大学计算机学院,湖南 长沙,410073)
  • 收稿日期:2020-06-14 修回日期:2020-09-18 接受日期:2021-04-25 出版日期:2021-04-25 发布日期:2021-04-21
  • 基金资助:
    国家重点研发计划(2018YFB0204301)

An automatic verification method for GPDSP instruction flow control based on reference model

WANG Hui-li,GUO Yang   

  1. (College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China)
  • Received:2020-06-14 Revised:2020-09-18 Accepted:2021-04-25 Online:2021-04-25 Published:2021-04-21

摘要: 随着科学计算和人工智能算法复杂度的增加,作为硬件设计中的控制中心,指令流控部件的设计面临复杂性和精确性急剧提升的挑战。FT-xDSP是国防科技大学自主研发的一款64位GPDSP处理器,其指令流控部件的设计规模和复杂性大幅增加,使得指令流控部件的验证成为一个突出难题。提出一种基于指令重排参考模型的指令流控自动化验证方法:首先,以指令输入输出关系为主要特征建立流控部件的抽象模型,屏蔽了内部复杂逻辑,在保证分析结果准确性的基础上降低了分析复杂度;其次,通过自动生成带约束的随机测试激励,对参考模型和待测设计结果进行自动化比较分析,在验证代价相当的情况下提升了代码覆盖率和功能覆盖率。实验和实际应用结果表明,该方法能针对指令流控验证中的薄弱点进行定向随机验证,大幅度提升了指令流控部件的验证效率和验证完整性。

关键词: 指令流控, 随机激励, 参考模型, 覆盖率

Abstract: With the increasing complexity of scientific computing and artificial intelligence algorithms, as the control center of hardware design, the design of instruction flow control components is facing the challenge of increasing complexity and accuracy. FT-xDSP is a 64-bit GPDSP processor independently developed by our company. The design scale and complexity of its instruction flow control components are greatly increased, which makes its verification become a prominent problem. This paper proposes an automatic verification method of instruction flow control based on the instruction rearrangement reference model. Firstly, the abstract model of flow control components is established by taking the instruction input-output relationship as the main feature, which shields the internal complex logic, and reduces the analysis complexity on the basis of ensuring the accuracy of the analysis results. Secondly, by automatically generating random stimulations with constraints, the reference model and the design results to be tested are automatically compared and analyzed, and the code coverage and function coverage are improved when the cost of verification is equivalent. The experimental and practical results show that the method can be used to verify the weak points of instruction flow control verification, which greatly improves the verification efficiency and verification integrity of instruction flow control components.



Key words: instruction flow control, random stimulation, reference model, coverage