How shass27/rv32i-soc works
This repository implements a single-cycle RV32I SoC. Its principal workflow is a RISC-V program executing through fetch, decode, execute, memory, and writeback; local accesses use on-chip data memory, while IO accesses pass through the Wishbone master and interconnect. The SoC also supports DMA-driven transfers and a MAC accelerator. Relationships below are based on README statements only; RTL excerpts were not provided, so unsampled implementation details are omitted.
Main entry points: wb_interconnect.v Address interconnect · data_memory.v Memory stage · wb_dma.v DMA controller · inst_mem.v Fetch
Components 13
RV32I core
Wishbone fabric
- CPU bus master
hardware/src/bus/wb_master.v - Address interconnect
hardware/src/bus/wb_interconnect.v
SoC peripherals
- DMA controller
hardware/src/bus/wb_dma.v - MAC accelerator
hardware/src/bus/wb_mac_accel.v - Error slave
hardware/src/bus/wb_err.v
Memory
- Local data memory
hardware/src/core/mem/data_memory.v
Other components
- RISC-V program
Connections 13
- RISC-V program → Fetch: executes
README.md - Fetch → Decode: passes instruction
README.md - Decode → Execute: controls
README.md - Execute → Memory stage: provides result
README.md - Memory stage → Writeback: supplies data
README.md - SoC top → CPU bus master: instantiates
README.md - CPU bus master → Address interconnect: requests access
README.md - Address interconnect → MAC accelerator: routes access
README.md - Address interconnect → DMA controller: routes access
README.md - Address interconnect → Error slave: routes unmatched
README.md - Memory stage → Local data memory: accesses locally
README.md - DMA controller → Local data memory: copies via port B
README.md - DMA controller → MAC accelerator: transfers operands
README.md