Skip to content

Shashank-k15/RV32I-Processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RV32I-Processor

RV32I-Processor is a processor design written in SystemVerylog to be compliant with RISC-V RV32I Base Integer Instruction Set, Version 2.1


Overview

  • Given a RV32I compliant machine code program.hex file it generates a waveform for all the registers.
  • Uses Verilator to simulate the processor behaviour when running the program, this is fast as verilator compiles the sim to a c++ file which runs as a binary.
  • The waveform generated can be seen using another open-source tool GTKWave

Try It Out!

Dependencies: To build and simulate this project, you need the following tools installed on your system:

  1. Verilator (v4.0 or later)
    • Install (Ubuntu): sudo apt-get install verilator
    • Install (MacOS): brew install verilator
  2. Make
    • Install: Usually pre-installed (part of build-essential on Linux).
  3. GTKWave
    • Install (Ubuntu): sudo apt-get install gtkwave *
    • Install (MacOS): brew install gtkwave

Create the machine code in the root directory as program.hex

  • To compile the design and run the testbench in the terminal:
bash make sim
  • To run the simulation and immediately open the results in GTKWave:
bash make wave

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors