# rwu-soc/rv64i_rwu architecture

> Architecture diagram of the GitHub repository rwu-soc/rv64i_rwu, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rwu-soc/rv64i_rwu
- Repository: https://github.com/rwu-soc/rv64i_rwu

## Overview

RV64I_RWU is an RV64I processor-core hardware project, with UART, JTAG, and GPIO peripherals and a verification environment. Its principal workflow is to execute software instructions in the core, access memory or peripheral functions, and observe behavior through simulation and testbenches. The README establishes the major subsystems, but no RTL implementation was excerpted; internal connections below are therefore shown as unverified rather than asserted as inspected call or signal paths.

Main entry points: [`rtl/core`](https://github.com/rwu-soc/rv64i_rwu/tree/main/rtl/core) (RV64I processor), [`rtl/core/asTopMem.sv`](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asTopMem.sv) (Top memory interface), [`verification/ip`](https://github.com/rwu-soc/rv64i_rwu/tree/main/verification/ip) (IP testbenches), [`rtl/core/asDecode.sv`](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asDecode.sv) (Instruction decode)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Processor core"]
  node_processor["RV64I processor"]
  node_decode["Instruction decode<br/>[asDecode.sv]"]
  node_control["Control logic<br/>[asControlAll.sv]"]
  node_alu["RV64I ALU<br/>[asAluRV.sv]"]
  node_registers["Register file<br/>[asRegFile.sv]"]
end

subgraph group_memory["Memory system"]
  node_memory_top["Top memory interface<br/>[asTopMem.sv]"]
  node_instruction_memory["Instruction memory<br/>[asIMem.sv]"]
  node_data_memory["Data memory<br/>[asDMem.sv]"]
end

subgraph group_peripherals["Peripheral IP"]
  node_gpio["GPIO<br/>[asGpio.sv]"]
  node_uart["UART<br/>[uart.sv]"]
  node_jtag["JTAG<br/>[jtag.sv]"]
end

subgraph group_verification["Verification"]
  node_testbenches["Unit testbenches"]
  node_integration_tests["Integration testbenches"]
  node_ip_tests["IP testbenches"]
  node_simulation["Simulation setup"]
end

node_software["Test software"]

node_software -.->|"runs on"| node_processor
node_processor -.->|"decodes"| node_decode
node_decode -.->|"controls"| node_control
node_processor -.->|"executes with"| node_alu
node_processor -.->|"uses"| node_registers
node_processor -.->|"accesses"| node_memory_top
node_memory_top -.->|"routes"| node_instruction_memory
node_memory_top -.->|"routes"| node_data_memory
node_memory_top -.->|"connects"| node_gpio
node_processor -.->|"integrates"| node_uart
node_processor -.->|"integrates"| node_jtag
node_testbenches -.->|"tests"| node_processor
node_integration_tests -.->|"tests"| node_processor
node_ip_tests -.->|"tests"| node_uart
node_ip_tests -.->|"tests"| node_jtag
node_simulation -.->|"configures"| node_integration_tests

click node_software "https://github.com/rwu-soc/rv64i_rwu/tree/main/firmware/tests"
click node_processor "https://github.com/rwu-soc/rv64i_rwu/tree/main/rtl/core"
click node_decode "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asDecode.sv"
click node_control "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asControlAll.sv"
click node_alu "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asAluRV.sv"
click node_registers "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asRegFile.sv"
click node_memory_top "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asTopMem.sv"
click node_instruction_memory "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asIMem.sv"
click node_data_memory "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asDMem.sv"
click node_gpio "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asGpio.sv"
click node_uart "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/peripherals/uart/uart.sv"
click node_jtag "https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/peripherals/jtag/jtag.sv"
click node_testbenches "https://github.com/rwu-soc/rv64i_rwu/tree/main/verification/unit"
click node_integration_tests "https://github.com/rwu-soc/rv64i_rwu/tree/main/verification/integration"
click node_ip_tests "https://github.com/rwu-soc/rv64i_rwu/tree/main/verification/ip"
click node_simulation "https://github.com/rwu-soc/rv64i_rwu/tree/main/sim/config"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_processor,node_decode,node_control,node_alu,node_registers toneBlue
class node_memory_top,node_instruction_memory,node_data_memory toneAmber
class node_gpio,node_uart,node_jtag toneMint
class node_testbenches,node_integration_tests,node_ip_tests,node_simulation toneRose
class node_software toneTeal
```

## Components

### Processor core

- [RV64I processor](https://github.com/rwu-soc/rv64i_rwu/tree/main/rtl/core): `rtl/core`
- [Instruction decode](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asDecode.sv): `rtl/core/asDecode.sv`
- [Control logic](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asControlAll.sv): `rtl/core/asControlAll.sv`
- [RV64I ALU](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asAluRV.sv): `rtl/core/asAluRV.sv`
- [Register file](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asRegFile.sv): `rtl/core/asRegFile.sv`

### Memory system

- [Top memory interface](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asTopMem.sv): `rtl/core/asTopMem.sv`
- [Instruction memory](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asIMem.sv): `rtl/core/asIMem.sv`
- [Data memory](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asDMem.sv): `rtl/core/asDMem.sv`

### Peripheral IP

- [GPIO](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/core/asGpio.sv): `rtl/core/asGpio.sv`
- [UART](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/peripherals/uart/uart.sv): `rtl/peripherals/uart/uart.sv`
- [JTAG](https://github.com/rwu-soc/rv64i_rwu/blob/main/rtl/peripherals/jtag/jtag.sv): `rtl/peripherals/jtag/jtag.sv`

### Verification

- [Unit testbenches](https://github.com/rwu-soc/rv64i_rwu/tree/main/verification/unit): `verification/unit`
- [Integration testbenches](https://github.com/rwu-soc/rv64i_rwu/tree/main/verification/integration): `verification/integration`
- [IP testbenches](https://github.com/rwu-soc/rv64i_rwu/tree/main/verification/ip): `verification/ip`
- [Simulation setup](https://github.com/rwu-soc/rv64i_rwu/tree/main/sim/config): `sim/config`

### Other components

- [Test software](https://github.com/rwu-soc/rv64i_rwu/tree/main/firmware/tests): `firmware/tests`

## Connections

- Test software → RV64I processor: runs on
- RV64I processor → Instruction decode: decodes
- Instruction decode → Control logic: controls
- RV64I processor → RV64I ALU: executes with
- RV64I processor → Register file: uses
- RV64I processor → Top memory interface: accesses
- Top memory interface → Instruction memory: routes
- Top memory interface → Data memory: routes
- Top memory interface → GPIO: connects
- RV64I processor → UART: integrates
- RV64I processor → JTAG: integrates
- Unit testbenches → RV64I processor: tests
- Integration testbenches → RV64I processor: tests
- IP testbenches → UART: tests
- IP testbenches → JTAG: tests
- Simulation setup → Integration testbenches: configures
