Skip to content

The single cycle and five stage pipeline RISC-V CPU supporting forwarding, hazard handling.

Notifications You must be signed in to change notification settings

JR-Wesley/SimpleRISCVCPU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

SV HDL code for a simple RISC-V CPU(single cycle and pipeline two version)

The code is from: S. L. Harris and D. Harris, "Digital Design and RISC-V Computer Architecture Textbook," 2021 ACM/IEEE Workshop on Computer Architecture Education (WCAE), Raleigh, NC, USA, 2021, pp. 1-5, doi: 10.1109/WCAE53984.2021.9707615.

I have made some slight modifications to it and simulated with iverilog. The assembly code can be simulated in https://venus.kvakil.me/. This book is highly recommended for beginners in computer architecture. It can be effectively complemented by two authoritative textbooks to enhance your learning experience(Computer Organization and Design THE HARDWARE SOFTWARE INTERFACE, Computer Architecture: A Quantitative Approach). Additionally, you can utilize the provided code to practice debugging a basic CPU, understanding the data flow and hazard handling. For a complete and detailed explanation, readers are encouraged to refer to the original book.

About

The single cycle and five stage pipeline RISC-V CPU supporting forwarding, hazard handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published