期刊文献+

基于Gem5的CM3仿真器的研究与实现

Study and Implementation of Gem5-Based CM3 Simulator
下载PDF
导出
摘要 在嵌入式领域,业界主要使用ARM公司Keil系列仿真工具进行ARM嵌入式系统开发,芯片仿真是其重要功能之一。然而ARM Keil是国外商业软件,购买License价格不菲,且仿真器也是影响芯片验证和软件开发的关键技术之一。针对上述情况,以Cortex-M3芯片为例设计了一种基于开源模拟器Gem5的系统调用仿真方法。首先,分析Gem5模拟器的源码结构、运行过程以及指令集仿真流程,描述Gem5仿真原理。然后,通过为Gem5添加Cortex-M3寄存器和指令集支持实现Cortex-M3在Atomic SimpleCPU的SE(System Emulation)模式下的仿真。最后,设计了灵活可扩展的指令集自动化测试工具,以验证指令功能是否正确仿真。实验结果表明,经过充分测试实现的仿真器能够正确仿真,且仿真效率较高,提供了一种开源、技术可控的Cortex-M3的软仿真方案。 In the embedded systems area,the industry mainly uses the ARM Keil series simulation tools for ARM embedded system development,where software simulation of chip is an important function.However,ARM Keil is a foreign commercial software,and purchasing a license is expensiv.To address this situation,a system call simulation method based on the open source simulator Gem5 is proposed with Cortex-M3 chip as an example.Firstly,the Gem5 simulator's source code structure,operation process and instruction set simulation flow were analyzed to describe the Gem5 simulation principle.Secondly,the simulation of Cortex-M3 in System Emulation(SE)mode of AtomicSimpleCPU was implemented by adding Cortex-M3 registers and instruction set support to Gem5.Finally,a flexible and scalable instruction set test tool was designed to verify that the instruction functions are simulated correctly.The experimental results show that the simulator implemented can work correctly and efficiently in testing,which provides an open source and technically controllable soft simulation solution for Cortex-M3.
作者 余涛 刘芹 赵紫微 YU Tao;LIU Qin;Zhao Zi-wei(School of Cyber Science and Engineering,Wuhan University,Wuhan Hubei 430079,China)
出处 《计算机仿真》 2024年第1期365-371,384,共8页 Computer Simulation
基金 国家自然科学基金项目(61872431)。
关键词 嵌入式系统 仿真 开源模拟器 指令集 自动化测试 Embedded systems Simulation Open source simulator Instruction set Automation testing
  • 相关文献

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部