Skip to content

Shiyizhuanshi/Personal

Repository files navigation

This is the repo for IAC coursework Team4


Things to do:

  • Design a basic cpu structure (Lab4)
  • Design cpu to implement R-Type instruction
  • Design cpu to implement I-Type instruction
  • Design cpu to implement S-Type instruction
  • Design cpu to implement B-Type instruction
  • Design cpu to implement U-Type instruction
  • Design cpu to implement J-Type instruction
  • Design cache for cpu
  • Design bus for cpu

Background

RISC-V has six types of instruction in total, they look like below:

image

opcode : Define the type of instruction

funct3 & funct7 : These two fields combined with opcode to determine what operation should be implemented

rs1 & rs2 : Adress of register

rd : Address of destination register

imm : Constant value in instructions


Main goals

Here below are the instructions we need to implement for our cpu:

image

image

image

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published