CPU

A CPU that runs actual RISC-V instructions, implemented in Logisim

More infomration can be found @ COMPSCI 61C. Thanks my partner Yuanrui Zhu!

Arithmetic Logic Unit (ALU)

Below is the list of ALU operations for you to implement, along with their associated ALUSel values. add is already made for you. You are allowed and encouraged to use built-in Logisim components to implement the arithmetic operations.


Register File (RegFile)

It contains 32 registers that can be written to and read from.


Immediate Generator (1)

Creating just enough of the CPU to execute the addi instruction


Datapath

Recall the five stages for executing an instruction:

  • Instruction Fetch (IF)
  • Instruction Decode (ID)
  • Execute (EX)
  • Memory (MEM)
  • Write Back (WB)


I-type Instructions