How asiggel/rwu-rv64iv2.0 works
This repository contains RWU-RV, an RV64I processor design and related hardware IP. The README’s principal workflow is running a single-cycle core simulation against programs, with instruction/data memory and a GPIP peripheral. The tree also documents a pipelined cache/forwarding variant and shared peripherals, but the supplied excerpts do not expose their RTL wiring. The graph therefore captures the documented single-cycle behavior and testing path while leaving internal hardware connections unasserted; sampled trap-test code is test infrastructure, not a runtime product stage.
Main entry points: src Pipelined cache variant · trap_tests.py Directed trap tests · sim_main.cpp Simulation entry · asCPUx.sv Single-cycle CPU
Components 19
RV64I Core
- Single-cycle CPU
RWU_RV/RV_NoPipeline/src/asCPUx.sv - Instruction decode
RWU_RV/RV_NoPipeline/src/asInstrDecode.sv - ALU and branch
RWU_RV/RV_NoPipeline/src/asAlu.sv - Register file
RWU_RV/RV_NoPipeline/src/asRegFile.sv - Trap and CSR IP
ip_trapcsr/src - Pipelined cache variant
RWU_RV/RV_PipelineCacheFwd/src
Memory and Peripherals
- Instruction memory
RWU_RV/RV_NoPipeline/src/asIMem.sv - Data memory
ip_dmem/src - GPIP peripheral
ip_gpio/src - Instruction/data caches
ip_icache/src - Memory system IP
ip_memsyst/src - QSPI peripheral
ip_qspi/src - UART peripheral
ip_uart/src
Verification
- Directed trap tests
RWU_RV/RV_NoPipeline/cocotb/trap_tests.py - RV instruction encoder
RWU_RV/RV_NoPipeline/cocotb/rvenc.py - Instruction-set model
RWU_RV/RV_NoPipeline/cocotb/iss.py - Simulation programs
RWU_RV/RV_NoPipeline/rv64Sim - Simulation entry
RWU_RV/RV_NoPipeline/sim/sim_main.cpp
Other components
- Engineer
Connections 10
- Engineer → Simulation entry: runs simulation
README.md - Simulation entry → Simulation programs: executes tests
- Engineer → Directed trap tests: runs trap checks
- Directed trap tests → RV instruction encoder: encodes instructions
RWU_RV/RV_NoPipeline/cocotb/trap_tests.py - Directed trap tests → Single-cycle CPU: checks traps
RWU_RV/RV_NoPipeline/cocotb/trap_tests.py - Directed trap tests → Trap and CSR IP: checks CSRs
RWU_RV/RV_NoPipeline/cocotb/trap_tests.py - Pipelined cache variant → Instruction/data caches: uses caches
- Pipelined cache variant → Memory system IP: uses memory IP
- Pipelined cache variant → QSPI peripheral: supports QSPI
- Pipelined cache variant → UART peripheral: supports UART