Skip to content

mathewduong/RISC-V-Instruction-Cycle-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RISC-V Instruction Cycle Visualizer

This project is a web-based tool for visualizing the fetch-decode-execute cycle of a simple RISC-V CPU. It helps students and educators understand how binary instructions are fetched from memory, decoded into fields, and executed step-by-step.

Features

  • Visualizes instruction memory with binary and assembly
  • Color-coded breakdown of instruction fields (opcode, registers, immediates)
  • Step through each CPU cycle: Fetch, Decode, Execute
  • See register state updates and branch behavior
  • Clean, interactive UI for learning and teaching

Installation

  1. Install uv:

    pip install uv
  2. Run the simulator:

    uv run main.py
  3. Open your browser:

Usage

  • Enter your RISC-V assembly program in the editor.
  • Click Simulate to visualize the instruction cycle.
  • Step through each phase (Fetch, Decode, Execute) and see how instructions are processed.
  • Click Edit Program to modify your code and re-run the simulation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages