Coder Social home page Coder Social logo

singlecyclecpu's Introduction

一、Code给出了一个参考示例

单周期CPU,支持8条指令

  • add/sub/and/or
  • lw,sw
  • beq
  • ori
二、第一个实验需要完成单周期处理器
  • add/sub/and/or
  • lw/sw
  • beq
  • jalr/jal
  • ori/xor/xori/andi/addi
  • sll/sra/srl/slt/sltu/srai/slti/sltiu/slli/srli/lui/auipc
  • lb/lh/lbu/lhu/sb/sh (数据在内存中以小端形式存储little endian)
  • bne/blt/bge/bltu/bgeu/

注意: 可以在示例代码基础上扩展完成,也可以自行设计代码结构。

模块介绍

EXT 立即数生成 NPC 生成PC PC 程序计数器 Alu 运算器 RF 寄存器 Ctrl 控制器 Ctrl_encode_def 操作码宏定义 Im 指令存储器 Dm 数据存储器 SCPU 不包含存储器的通路

git使用指南

给不会用 git 的小萌新们的简单使用指南

  1. git clone 把代码下载到本地
  2. git add . 添加所有文件
  3. git commit -m "修改说明" 提交修改,修改说明的格式见 gitlint
  4. git push 推送到远程仓库

建议单独增加新功能时,新建一个 branch,完成后 merge 到主分支

2024-07-04 根据 FPGA 封装调整了接口

singlecyclecpu's People

Contributors

su1furicacid avatar

Stargazers

 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.