Git Product home page Git Product logo

single-cycle-mips's Introduction

Read on yeeachan`s doc Web: https://yceachan.github.io/微体系结构/

Ref:实验十一 RV32I单周期CPU — 南京大学 计算机科学与技术系 数字逻辑与计算机组成 课程实验 documentation (nju-projectn.github.io)

单周期处理器的数据路径易于构建,而时序需要考虑。

quickstart

#项目依赖 :modelsim环境变量
cd [your path]
git clone [email protected]:yceachan/Single-Cycle-MIPS.git
cd ./Sigle-Cycle-MIPS
#启动仿真
./sim.bat

工程结构

./rtl/ : rtl设计文件
./tb/  : testbench
./sim.bat :启动modelsim,运行仿真脚本
./sim.do  :modelsim仿真脚本

设计分析

在单周期CPU中,所有操作均需要在一个周期内完成。其中单周期存储部件的读写是时序设计的关键。

以下为nju数组实验推荐的单周期cpu时序

image-20231201193152975

以下为《数字设计与计算机体系结构》(黑皮书)给出的MIPS数据路径。

图中,Imem的地址输入宜改为pc' ,改为同步时序器件。

image-20231201193404784"# Single-Cycle-MIPS"

single-cycle-mips's People

Contributors

yceachan avatar

Stargazers

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