Skip to content

A simple 32-bit 5-stage RISC-V processor in VHDL based on the book Computer Organization and Design by Patterson & Hennesy

License

Notifications You must be signed in to change notification settings

masoud-ata/PH-RISC-V

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PH-RISC-V

A simple 32-bit 5-stage RISC-V processor in VHDL based on the book Computer Organization and Design by Patterson & Hennesy.

For more information you can check out the book: here.

Getting Started

The processor implements simple instructions such as lw, sw, add, sub, and, or. At this moment it supports forwarding, but lacks hazard detection and flushing capabilities.

It is fully synthesizable, and to demostrate functionalty the program memory is loaded with binary code that calulcates the fibonacci series to the 14th element and stores elements 13th and 14th to the data memory.

fib

To understand the binary code you can check out the assembly code in the file fibonacci.rvi, and if you are interested you can use the following assmbler to modify the assembly code and generate the binary sequence to feed into the program memory (instruction_mem.mem file located in the design directory): https://github.com/metastableB/RISCV-RV32I-Assembler

Dependencies

Just add the files in the design directory to the source list of your sythesis tool (e.g. Xilinx Vivado) and you're good to go.

About

A simple 32-bit 5-stage RISC-V processor in VHDL based on the book Computer Organization and Design by Patterson & Hennesy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages