GithubHelp home page GithubHelp logo

scarletborder / mymipscpu Goto Github PK

View Code? Open in Web Editor NEW
7.0 0.0 1.0 7.85 MB

2023年秋季 武汉大学国家网络安全学院 硬件综合设计2实验

Tcl 15.52% Assembly 28.89% Verilog 55.09% Python 0.51%

mymipscpu's Introduction

《计算机设计实践》

2023年秋季
武汉大学国家网络安全学院
author:scarletborder

说明

实验内容一——单周期CPU

对示例单周期CPU进行指令扩展,至少支持以下指令(红色和蓝色为增加的指令) add/sub/and/or/slt/sltu/addu/subu
addi/ori/lw/sw/beq j/jal sll/nor/lui/slti/bne/andi/srl/sllv/srlv/jr/jalr xor/sra/srav lb/lh/lbu/lhu/sb/sh (数据在内存中以小端形式存储little endian)

验收要求&实验报告(占55%,以下二选一) 在ModelSim仿真中CPU加载mipstest_extloop.asm、extendedtest.asm和studentnosorting_cut.asm对应代码运行正确 (up to 45%) 如果单周期SCPU只完成仿真,没有下载到开发板,需扩展上述 红色 + 蓝色指令 extendedtest.asm在Mars中做对比时,需设置为Settings -> Memory Configuration -> Compact, Data at address 0 在Nexys 4 DDR 开发板上正确实现学号排序 (up to 55%) 具体说明见后 如果单周期CPU实现下板仿真,也需扩展上述 红色+ 蓝色 指令,对学号排序前和排序后的结果拍照并放入实验报告。

实验内容二——多周期CPU

实现多周期CPU,至少支持以下指令(红色为增加的指令) add/sub/and/or/slt/sltu/addu/subu
addi/ori/lw/sw/beq j/jal sll/nor/lui/slti/bne/andi/srl/sllv/srlv/jr/jalr 能够正确处理多周期CPU中的状态机 指令和数据放在同一个存储器 验收要求&实验报告(占30%,以下二选一) 在ModelSim仿真中CPU加载studentnosorting_cut.asm对应代码运行正确 (up to 18%) 在Nexys 4 DDR2 开发板上正确实现学号排序,对学号排序前和排序后的结果拍照并放入实验报告(up to 30%) 。

mymipscpu's People

Contributors

scarletborder avatar

Stargazers

 avatar  avatar P0tter avatar wisdomgo avatar Tavin avatar  avatar  avatar

Forkers

xyz-whu-coder

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.