Giter VIP home page Giter VIP logo

mips-cpu-logisim's Introduction

mips-cpu-logisim

Logisim实现的五级流水线MIPS CPU

参考自 华中科技大学MOOC-计算机硬件系统设计

指令集

实现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

To-Do

  • 中断
  • 总线
  • IO

mips-cpu-logisim's People

Contributors

whileskies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.