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

计算机工程 ›› 2009, Vol. 35 ›› Issue (1): 263-265. doi: 10.3969/j.issn.1000-3428.2009.01.092

• 开发研究与设计技术 • 上一篇    下一篇

MIPS32指令集兼容的CPU模拟器设计

薛 勃,周玉洁   

  1. (上海交通大学芯片与系统研究中心,上海 200240)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-01-05 发布日期:2009-01-05

Design of CPU Simulator Compatible with MIPS32 Instruction Set

XUE Bo, ZHOU Yu-jie   

  1. (VLSI & System Research Center, Shanghai Jiaotong University, Shanghai 200240)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-01-05 Published:2009-01-05

摘要: 描述一个与MIPS32指令集兼容的CPU模拟器设计方案,该方案用C语言描述处理器的硬件行为,模拟CPU指令的执行过程,实现MIPS32除浮点运算指令以外的所有指令,有大小可配的主存储器、指令和数据统一的二相关高速缓存Cache,内置类型可配的分支预测器和ELF文件解析器,并给出设计的应用实例。

关键词: MIPS处理器, 模拟器, 高速缓存, 分支预测

Abstract: A design scheme of a CPU simulator which is compatible with MIPS32 instruction set is presented. It simulates hardware behavior of CPU by using C language, and it can implement all the MIPS32 instructions excluding floating-point instruction, such as parameterize main memory, unifies 2-way set associative instruction and data cache, embeding reconfigurable branch predictor and ELF interpreter. An application example is given.

Key words: MIPS processor, simulator, cache, branch prediction

中图分类号: