摘要
用软件编程的方法介绍一个与MIPS32/64指令集兼容的指令集模拟器的建模与实现过程。该方案用C++来描述处理器的硬件行为,通过在编译时选择不同的选项分别实现对MIPS32和MIPS64指令集构架的嵌入式处理器的模拟,实现除浮点数以外的所有指令的译码和执行。该方案的主要好处是代码可重用,指令扩展性能好,可以同时兼容MIPS32和MIPS64指令集的模拟。
This paper introduces a modeling and implementation procedure for a MIPS32/64 instruction set simulator using software programming method. It simulates the CPU hardware behavior using C++ program language. By choosing different option during the compile time, it can respectively simulate embedded processor MIPS32 and MIPS64 instruction set architecture, and it can decode and execute all the commands except float point commands. The main benefit of this method is that the code is reusable and has a good performance for extending commands.
出处
《计算机工程》
CAS
CSCD
北大核心
2010年第18期245-246,252,共3页
Computer Engineering
基金
广西教育厅科技基金资助项目(200708LX183)
关键词
MIPS64
指令集
指令集模拟器
指令集构架
MIPS64 instruction set
instruction set simulator
instruction set architecture