Coder Social home page Coder Social logo

mips_cpu's Introduction

#encoding:UTF-8

cpu.h:               模块之间的op每一位分别代表什么指令。

mycpu_top.v:         向上对接soc_lite_top.v,内部调用各流水级模块以及寄存器堆模块。

nextpc_gen.v:        生成pc的模块,生成的pc传入fetch流水级。

fetch_stage.v:       取指流水级,接受nextpc_gen传入的pc,将取回的inst传入下一级。

decode_stage.v:      解码流水级,接受取指传入的inst并进行解码,对于跳转指令在本流水级内决定是否要跳转,其余指令解码成接下来的流水级方便执行的指令码传入下一级。

execute_stage.v:     执行流水级,接受解码传入的指令码,并调用alu模块进行需要的计算,将计算结果传入下一级。

memoty_stage.v:      访存流水级,进行LW所需要的访问内存。

writeback_stage.v:   写回流水级,将之前算出或从内存中取出的值写入寄存器堆。

regfile_2r1w.v:      CPU内的寄存器堆。

alu.v:               CPU内的算术逻辑单元。

forward.v:           数据前递需要的模块,处理所有的数据前递,并判断是否需要进行阻塞。

md.v:                乘除法器模块,调用生成的IP或我们自己写的除法器进行乘除运算。

div.v:               除法器模块,进行有符号及无符号除法运算。

exception.v:         例外模块,实现例外的汇总与统一报出。

cpu_axi_interface.v: 接口转换桥,实现从sram like接口到axi接口的仲裁及转换。

sram2like.v:         接口转换桥,实现从sram接口到sram like接口的转换。

tlb.v:               tlb模块,实现tlb的地址映射、tlb指令以及tlb例外功能。

mips_cpu's People

Contributors

14010007517 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.