How mr-jg-813/risc-v-64-im works
BRISC-V is an RV64IM processor RTL project with a C-program simulation flow. The principal workflow is to select a sample C program, use the runner to prepare instruction and data-memory images and launch simulation, then observe semihosted output and result dumps. The README documents the major RTL blocks and their roles; detailed signal-level connections are not shown in the supplied source excerpts, so the graph limits itself to documented relationships.
Main entry points: RISC_V_Core.v RV64 Core · tb_RISC_V_Core.v Core Testbench · run_c.sh C Runner · run_sim64 RTL Simulator
Components 19
Program Simulation
- Sample C Programs
RISC_V/llvm - C Runner
RISC_V/run_c.sh - Memory Images
RISC_V/main_bsram.mem - RTL Simulator
RISC_V/run_sim64 - Core Testbench
RISC_V/tb/tb_RISC_V_Core.v
Processor Pipeline
- RV64 Core
RISC_V/src_64/RISC_V_Core.v - Fetch Stage
RISC_V/src_64/fetch.v - Decode Stage
RISC_V/src_64/decode.v - Execute Stage
RISC_V/src_64/execute.v - Memory Stage
RISC_V/src_64/memory.v - Writeback Stage
RISC_V/src_64/writeback.v - Stall Bypass
RISC_V/src_64/stallControl.v - Arithmetic Logic
RISC_V/src_64/ALU.v
Memory System
- Instruction RAM
RISC_V/src_64/bsram.v - Data RAM
RISC_V/src_64/bram.v - Memory Interfaces
RISC_V/src_64/memory_hierarchy.v
Simulation Output
- Semihost Output
RISC_V/src_64/semihost_putchar.v - Simulation Dumps
RISC_V/results
Other components
- Engineer
Connections 18
- Engineer → C Runner: runs
README.md - Sample C Programs → C Runner: provides source
README.md - C Runner → Memory Images: creates images
README.md - C Runner → RTL Simulator: starts
README.md - RTL Simulator → Core Testbench: runs
README.md - Core Testbench → RV64 Core: tests
README.md - RV64 Core → Fetch Stage: connects stages
README.md - RV64 Core → Decode Stage: connects stages
README.md - RV64 Core → Execute Stage: connects stages
README.md - RV64 Core → Memory Stage: connects stages
README.md - RV64 Core → Writeback Stage: connects stages
README.md - RV64 Core → Stall Bypass: uses control
README.md - Execute Stage → Arithmetic Logic: performs operations
README.md - RV64 Core → Instruction RAM: uses instruction RAM
README.md - RV64 Core → Data RAM: uses data RAM
README.md - RV64 Core → Memory Interfaces: uses interfaces
README.md - Core Testbench → Semihost Output: prints characters
README.md - Core Testbench → Simulation Dumps: writes dumps
README.md