• 中国精品科技期刊
  • CCF推荐A类中文期刊
  • 计算领域高质量科技期刊T1类
高级检索

基于SMT求解器的微处理器指令验证数据约束生成技术

谭坚, 罗巧玲, 王丽一, 胡夏晖, 范昊, 徐占

谭坚, 罗巧玲, 王丽一, 胡夏晖, 范昊, 徐占. 基于SMT求解器的微处理器指令验证数据约束生成技术[J]. 计算机研究与发展, 2020, 57(12): 2694-2702. DOI: 10.7544/issn1000-1239.2020.20190718
引用本文: 谭坚, 罗巧玲, 王丽一, 胡夏晖, 范昊, 徐占. 基于SMT求解器的微处理器指令验证数据约束生成技术[J]. 计算机研究与发展, 2020, 57(12): 2694-2702. DOI: 10.7544/issn1000-1239.2020.20190718
Tan Jian, Luo Qiaoling, Wang Liyi, Hu Xiahui, Fan Hao, Xu Zhan. Data Constraint Generation Technology for Microprocessor Instruction Verification Based on SMT Solver[J]. Journal of Computer Research and Development, 2020, 57(12): 2694-2702. DOI: 10.7544/issn1000-1239.2020.20190718
Citation: Tan Jian, Luo Qiaoling, Wang Liyi, Hu Xiahui, Fan Hao, Xu Zhan. Data Constraint Generation Technology for Microprocessor Instruction Verification Based on SMT Solver[J]. Journal of Computer Research and Development, 2020, 57(12): 2694-2702. DOI: 10.7544/issn1000-1239.2020.20190718
谭坚, 罗巧玲, 王丽一, 胡夏晖, 范昊, 徐占. 基于SMT求解器的微处理器指令验证数据约束生成技术[J]. 计算机研究与发展, 2020, 57(12): 2694-2702. CSTR: 32373.14.issn1000-1239.2020.20190718
引用本文: 谭坚, 罗巧玲, 王丽一, 胡夏晖, 范昊, 徐占. 基于SMT求解器的微处理器指令验证数据约束生成技术[J]. 计算机研究与发展, 2020, 57(12): 2694-2702. CSTR: 32373.14.issn1000-1239.2020.20190718
Tan Jian, Luo Qiaoling, Wang Liyi, Hu Xiahui, Fan Hao, Xu Zhan. Data Constraint Generation Technology for Microprocessor Instruction Verification Based on SMT Solver[J]. Journal of Computer Research and Development, 2020, 57(12): 2694-2702. CSTR: 32373.14.issn1000-1239.2020.20190718
Citation: Tan Jian, Luo Qiaoling, Wang Liyi, Hu Xiahui, Fan Hao, Xu Zhan. Data Constraint Generation Technology for Microprocessor Instruction Verification Based on SMT Solver[J]. Journal of Computer Research and Development, 2020, 57(12): 2694-2702. CSTR: 32373.14.issn1000-1239.2020.20190718

基于SMT求解器的微处理器指令验证数据约束生成技术

基金项目: 国家重点研发计划项目(2017YFB0202703)
详细信息
  • 中图分类号: TP311

Data Constraint Generation Technology for Microprocessor Instruction Verification Based on SMT Solver

Funds: This work was supported by the National Key Research and Development Program of China (2017YFB0202703).
  • 摘要: 处理器研制过程中需要对指令算术数据路径进行覆盖验证.针对现有模拟验证方法存在的不足,提出了一种基于可满足模理论(satisfiability modulo theory, SMT)的指令约束求解方法:利用可满足模理论求解器将指令级功能验证任务转化成数据约束求解满足问题.在结果操作数约束、操作数间约束、指令内部约束以及浮点操作数约束4个方面分别给出示例,并分别给出了利用SMT求解器进行约束建模的关键过程以及可以用于指令级功能验证的元组数据.为提高求解模型效率,提出了2种解决方法:首先利用时间阈值实现问题求解超时即终止的策略;其次是结合进程管理与线程管理技术,实现了指令功能约束并行求解框架,将串行求解任务分派给可并行执行的多个线程,提高了求解速度.该技术已成功应用于系统级验证中,有效提升了测试覆盖与质量,取得了很好的效益.
    Abstract: During the development of the processor, it is necessary to fully verify the instructions datapaths. The existing simulation verification methods have insufficient functional coverage in terms of instruction result operands constraints, relationship constraints between operands, and internal constraints of instructions, etc. This paper proposes an instruction constraint solving method based on satisfiability modulo theory (SMT) solver. The SMT solver is introduced to convert the instruction function verification tasks into constraint satisfaction problems. Constraint satisfaction problem techniques are used to generate validation tuple data, which can be used to verify the functional correctness of the instructions set. The modeling processes and examples are given in four aspects: the instruction result operand constraints, the instruction operand constraints, the instruction internal constraints, and float-pointing instructions operand constraints. In order to improve the modeling efficiency, we propose two strategies. First, once the time threshold is reached, the current process is terminated; second, using process management and thread management technology, a parallel solution framework for instruction function constraints is implemented, and a series of serial solving tasks are assigned to multiple threads that can be executed in parallel, and the speed of solution is accelerated under the conditions of the same constraints coverage. Our experiences show that under the right circumstances, instruction constraint solving technology based on SMT provides technical support for system-level functional verification to achieve test coverage of complex scenarios.
  • 期刊类型引用(9)

    1. 臧洁,任旭,冯艳爽,王妍,肖萍,鲁锦涛. 一种干扰系数自探测的网络事件选取方法. 小型微型计算机系统. 2024(03): 763-768 . 百度学术
    2. 路苗,门可,马永红,张海瑞,冯彦成. 基于SIS模型的群体社交网络舆情演化仿真. 吉林大学学报(信息科学版). 2023(01): 106-111 . 百度学术
    3. 马帅,刘建伟,左信. 图神经网络综述. 计算机研究与发展. 2022(01): 47-80 . 本站查看
    4. 夏一雪,张立红,何巍,张双狮. 自治线性风险作用下网络舆情演化建模与仿真研究. 情报杂志. 2022(05): 92-98 . 百度学术
    5. 易杰,曹腾飞,黄明峰,黄肖翰,张子震. 基于时间编码LSTM的高校舆情热点趋势预测研究. 大数据. 2022(05): 124-138 . 百度学术
    6. 张杨,廉吉庆,张扬,高德毅. 国内网络舆情情感研究热点分析. 网络安全与数据治理. 2022(07): 47-55 . 百度学术
    7. 徐缤荣. 融媒体背景下社会热点新闻舆情传播控制模型构建. 微型电脑应用. 2022(10): 149-152 . 百度学术
    8. 臧洁,任旭. 考虑兴趣偏好和多事件影响的网络事件推演模型研究. 辽宁大学学报(自然科学版). 2022(04): 298-306 . 百度学术
    9. 赵剑,董文华,史丽娟,匡哲君,毕京晓,王晢宇,强文倩. 针对突发公共事件的舆情监测与可视化分析. 吉林大学学报(信息科学版). 2021(06): 712-719 . 百度学术

    其他类型引用(5)

计量
  • 文章访问数:  678
  • HTML全文浏览量:  4
  • PDF下载量:  244
  • 被引次数: 14
出版历程
  • 发布日期:  2020-11-30

目录

    /

    返回文章
    返回