作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (18): 245-246. doi: 10.3969/j.issn.1000-3428.2010.18.085

• 工程应用技术与实现 • 上一篇    下一篇

MIPS64指令集模拟器的建模与实现方法

蔡启先a,刘 明b,余祖峰b   

  1. (广西工学院 a. 计算机工程系;b. 电子信息与控制工程系,广西 柳州 545006)
  • 出版日期:2010-09-20 发布日期:2010-09-30
  • 作者简介:蔡启先(1948-),男,教授,主研方向:计算机系统结构;刘 明、余祖峰,硕士研究生
  • 基金资助:

    广西教育厅科技基金资助项目(200708LX183)

Modeling and Implementation Method for MIPS64 Instruction Set Simulator

CAI Qi-xiana, LIU Mingb, YU Zu-fengb   

  1. (a. Dept. of Computer Engineering; b. Dept. of Electronic Information and Control Engineering, Guangxi University of Technology, Liuzhou 545006, China)
  • Online:2010-09-20 Published:2010-09-30

摘要:

用软件编程的方法介绍一个与MIPS32/64指令集兼容的指令集模拟器的建模与实现过程。该方案用C++来描述处理器的硬件行为,通过在编译时选择不同的选项分别实现对MIPS32和MIPS64指令集构架的嵌入式处理器的模拟,实现除浮点数以外的所有指令的译码和执行。该方案的主要好处是代码可重用,指令扩展性能好,可以同时兼容MIPS32和MIPS64指令集的模拟。

关键词: MIPS64指令集, 令集模拟器, 令集构架

Abstract:

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.

Key words: MIPS64 instruction set, instruction set simulator, instruction set architecture

中图分类号: