hushon / Tiny-RISCV-CPU

Mini RISC-V CPU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tiny RISC-V CPU

Introduction

This repository contains RTL of a simple CPU architecture that implements our miniaturized version of the RISC-V Instruction Set. This project was designed and written as a result of a lab assignment during the computer architecture course at KAIST.

Our implementation includes a few variants:

  • Single-cycle CPU
  • Multi-cycle CPU
  • Pipelined CPU
  • Multi-cycle CPU with direct-mapped cache

Diagram

Single Cycle CPU

Supported RISC-V Instructions

Instruction Type Semantics
JAL
JALR
BEQ
BNE
BLT
BGE
BLTU
BGEU
LW
SW
ADDI
SLTI
SLTIU
XORI
ORI
ANDI
SLLI
SRLI
SRAI
ADD
SUB
SLL
SLT
SLTU
XOR
SRL
SRA
OR
AND

Reference

About

Mini RISC-V CPU

License:MIT License


Languages

Language:Verilog 99.8%Language:Coq 0.2%