Coder Social home page Coder Social logo

sui2346 / single_instruction_cycle_openmips Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zach0zhang/single_instruction_cycle_openmips

0.0 1.0 0.0 3.5 MB

通过学习《自己动手写CPU》,将书中实现的兼容MIPS32指令集架构的处理器——OpenMIPS(五级流水线结构),简化成单指令周期实现的处理器

Verilog 96.84% Assembly 3.16%

single_instruction_cycle_openmips's Introduction

Single_instruction_cycle_OpenMIPS

通过学习《自己动手写CPU》,将书中实现的兼容MIPS32指令集架构的处理器——OpenMIPS(五级流水线结构),简化成单指令周期实现的处理器

根据以下顺序查看效果更佳:

  1. ori:通过学习《自己动手写CPU》第四章,学习了MIPS五级流水线下的ori指令,b并简化五级流水线实现单指令周期下的ori指令。
  2. logic_shift_nop:在完成了单指令周期的ori指令后,已经大致上实现了Verilog HDL语言设计的CPU系统框架和数据流,接下来的逻辑、移位操作和空指令,只是在实现的流程上增添指令
  3. move:在之前实现的基础上继续增加了移动操作指令(增加了特殊寄存器HI和LO,以及对他们的操作)
  4. simple_arithmetic_1:在之前实现的基础上继续增加了15条简单算术操作指令(add、addi、addiu、addu、sub、subu、clo、clz、slt、slti、sltiu、sltu、mul、mult、multu)
  5. transfer:在之前实现的基础上继续增加了14条(实际上是12条)简单算术操作指令(jr、jalr、j、jar、b、bal、beq、bgez、bgezal、bgtz、blez、bltz、bltzal、bne)
  6. Load_Store:在之前实现的基础上继续增加了加载、存储指令,系统结构上增加了访存模块和RAM
  7. fpga:对EGO1开发板的外设(发光二极管、数码管、开关、按键)进行操作,对内存和外设实行统一编址

系统结构图:

image

增加了对外设IO模块后的系统结构图:

image 每个子文件夹下均有相关详细解释

single_instruction_cycle_openmips's People

Contributors

zach0zhang avatar

Watchers

James Cloos 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.