Files
2025-12-31 19:35:06 +08:00

42 lines
953 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## mips-cpu-logisim
Logisim实现的五级流水线MIPS CPU
参考自 [华中科技大学MOOC-计算机硬件系统设计](https://www.icourse163.org/course/HUST-1205809816)
## 指令集
实现MIPS指令集子集(24条指令)
- R型移位指令sll、sra、srl
- R型算数指令add、addu、sub
- R型逻辑运算指令and、or、nor
- R型比较指令slt、sltu
- R型分支指令jr
- R型系统调用syscall
> if $v0 = 34 数码管显示$a0值
>
> else 暂停 等待Go按钮按下
- I型分支指令beq、bne
- I型立即数运算指令addi、addiu、slti、andi、ori
- I型访存指令lw、sw
- J型分支指令j、jal
## 运行
- 使用logisim-2.7.1cn.jar或logisim-ita-cn-1204.exe
- 打开相应.circ文件
- 指令存储器加载测试数据镜像test目录下)
- ctrl-k运行
## 运行示例
运行递归斐波拉契程序如下所示:
![img](pic/fib.gif)
## To-Do
- 中断
- 总线
- IO