# xuantie-rv/openc910 architecture

> Architecture diagram of the GitHub repository xuantie-rv/openc910, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xuantie-rv/openc910
- Repository: https://github.com/xuantie-rv/openc910

## Overview

C910 is a Verilog RTL implementation of a processor core and associated system IP. A representative workload enters through instruction fetch, is decoded and executed, accesses memory as needed, and retires; the tree also shows translation, caches, interconnect, interrupts, debug, and performance-monitoring subsystems. The README identifies the RTL source but does not document internal wiring, and no RTL modules were excerpted, so internal relationships below are dashed and unverified rather than asserted as source-confirmed calls.

Main entry points: [`C910_RTL_FACTORY/gen_rtl/cpu/rtl/ct_core.v`](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/cpu/rtl/ct_core.v) (Core Integration), [`C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ciu_top.v`](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ciu_top.v) (System Interconnect), [`C910_RTL_FACTORY/gen_rtl/ifu/rtl/ct_ifu_top.v`](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ifu/rtl/ct_ifu_top.v) (Instruction Fetch), [`C910_RTL_FACTORY/gen_rtl/iu/rtl/ct_iu_top.v`](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/iu/rtl/ct_iu_top.v) (Integer Execute)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Core Pipeline"]
  node_core_top["Core Integration<br/>[ct_core.v]"]
  node_fetch["Instruction Fetch<br/>[ct_ifu_top.v]"]
  node_decode["Decode and Issue<br/>[ct_idu_top.v]"]
  node_execute["Integer Execute<br/>[ct_iu_top.v]"]
  node_retire["Retirement<br/>[ct_rtu_retire.v]"]
  node_cp0["Privileged State<br/>[ct_cp0_top.v]"]
end

subgraph group_memory["Memory System"]
  node_lsu["Load Store<br/>[ct_lsu_top.v]"]
  node_mmu["Address Translation<br/>[ct_mmu_top.v]"]
  node_l2["L2 Cache<br/>[ct_l2c_top.v]"]
  node_biu["Bus Interface<br/>[ct_biu_top.v]"]
end

subgraph group_system["System Fabric"]
  node_ciu["System Interconnect<br/>[ct_ciu_top.v]"]
  node_ebiu["External Bus<br/>[ct_ebiu_top.v]"]
  node_plic["Interrupt Controller<br/>[plic_top.v]"]
  node_clint["Core Local Interrupts<br/>[ct_clint_top.v]"]
end

subgraph group_support["Platform Support"]
  node_debug["Hardware Debug"]
  node_pmu["Performance Counters<br/>[ct_hpcp_top.v]"]
  node_clock["Clock Control<br/>[ct_clk_top.v]"]
  node_reset["Reset Control<br/>[ct_rst_top.v]"]
end

node_software(("Program"))
node_soc(("External SoC"))

node_software -.->|"supplies instructions"| node_fetch
node_fetch -.->|"provides instructions"| node_decode
node_decode -.->|"issues operations"| node_execute
node_execute -.->|"returns results"| node_retire
node_execute -.->|"requests memory"| node_lsu
node_lsu -.->|"translates addresses"| node_mmu
node_lsu -.->|"accesses cache"| node_l2
node_fetch -.->|"fetches cache lines"| node_l2
node_l2 -.->|"forwards misses"| node_biu
node_biu -.->|"issues transactions"| node_ciu
node_ciu -.->|"routes external traffic"| node_ebiu
node_ciu -.->|"routes interrupts"| node_plic
node_ciu -.->|"accesses local timers"| node_clint
node_cp0 -.->|"controls core state"| node_core_top
node_debug -.->|"controls debugging"| node_core_top
node_pmu -.->|"counts events"| node_core_top
node_clock -.->|"provides clocks"| node_core_top
node_reset -.->|"provides reset"| node_core_top
node_core_top -.->|"exposes system interface"| node_soc

click node_core_top "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/cpu/rtl/ct_core.v"
click node_fetch "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ifu/rtl/ct_ifu_top.v"
click node_decode "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/idu/rtl/ct_idu_top.v"
click node_execute "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/iu/rtl/ct_iu_top.v"
click node_retire "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/rtu/rtl/ct_rtu_retire.v"
click node_cp0 "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/cp0/rtl/ct_cp0_top.v"
click node_lsu "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/lsu/rtl/ct_lsu_top.v"
click node_mmu "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/mmu/rtl/ct_mmu_top.v"
click node_l2 "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/l2c/rtl/ct_l2c_top.v"
click node_biu "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/biu/rtl/ct_biu_top.v"
click node_ciu "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ciu_top.v"
click node_ebiu "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ebiu_top.v"
click node_plic "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/plic/rtl/plic_top.v"
click node_clint "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/clint/rtl/ct_clint_top.v"
click node_debug "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/had/rtl/ct_had_private_top.v"
click node_pmu "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/pmu/rtl/ct_hpcp_top.v"
click node_clock "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/clk/rtl/ct_clk_top.v"
click node_reset "https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/rst/rtl/ct_rst_top.v"

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_core_top,node_fetch,node_decode,node_execute,node_retire,node_cp0 toneBlue
class node_lsu,node_mmu,node_l2,node_biu toneAmber
class node_ciu,node_ebiu,node_plic,node_clint toneMint
class node_debug,node_pmu,node_clock,node_reset toneRose
class node_software,node_soc toneIndigo
```

## Components

### Core Pipeline

- [Core Integration](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/cpu/rtl/ct_core.v): `C910_RTL_FACTORY/gen_rtl/cpu/rtl/ct_core.v`
- [Instruction Fetch](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ifu/rtl/ct_ifu_top.v): `C910_RTL_FACTORY/gen_rtl/ifu/rtl/ct_ifu_top.v`
- [Decode and Issue](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/idu/rtl/ct_idu_top.v): `C910_RTL_FACTORY/gen_rtl/idu/rtl/ct_idu_top.v`
- [Integer Execute](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/iu/rtl/ct_iu_top.v): `C910_RTL_FACTORY/gen_rtl/iu/rtl/ct_iu_top.v`
- [Retirement](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/rtu/rtl/ct_rtu_retire.v): `C910_RTL_FACTORY/gen_rtl/rtu/rtl/ct_rtu_retire.v`
- [Privileged State](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/cp0/rtl/ct_cp0_top.v): `C910_RTL_FACTORY/gen_rtl/cp0/rtl/ct_cp0_top.v`

### Memory System

- [Load Store](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/lsu/rtl/ct_lsu_top.v): `C910_RTL_FACTORY/gen_rtl/lsu/rtl/ct_lsu_top.v`
- [Address Translation](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/mmu/rtl/ct_mmu_top.v): `C910_RTL_FACTORY/gen_rtl/mmu/rtl/ct_mmu_top.v`
- [L2 Cache](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/l2c/rtl/ct_l2c_top.v): `C910_RTL_FACTORY/gen_rtl/l2c/rtl/ct_l2c_top.v`
- [Bus Interface](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/biu/rtl/ct_biu_top.v): `C910_RTL_FACTORY/gen_rtl/biu/rtl/ct_biu_top.v`

### System Fabric

- [System Interconnect](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ciu_top.v): `C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ciu_top.v`
- [External Bus](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ebiu_top.v): `C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ebiu_top.v`
- [Interrupt Controller](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/plic/rtl/plic_top.v): `C910_RTL_FACTORY/gen_rtl/plic/rtl/plic_top.v`
- [Core Local Interrupts](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/clint/rtl/ct_clint_top.v): `C910_RTL_FACTORY/gen_rtl/clint/rtl/ct_clint_top.v`

### Platform Support

- [Hardware Debug](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/had/rtl/ct_had_private_top.v): `C910_RTL_FACTORY/gen_rtl/had/rtl/ct_had_private_top.v`
- [Performance Counters](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/pmu/rtl/ct_hpcp_top.v): `C910_RTL_FACTORY/gen_rtl/pmu/rtl/ct_hpcp_top.v`
- [Clock Control](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/clk/rtl/ct_clk_top.v): `C910_RTL_FACTORY/gen_rtl/clk/rtl/ct_clk_top.v`
- [Reset Control](https://github.com/xuantie-rv/openc910/blob/main/C910_RTL_FACTORY/gen_rtl/rst/rtl/ct_rst_top.v): `C910_RTL_FACTORY/gen_rtl/rst/rtl/ct_rst_top.v`

### Other components

- **Program**
- **External SoC**

## Connections

- Program → Instruction Fetch: supplies instructions
- Instruction Fetch → Decode and Issue: provides instructions
- Decode and Issue → Integer Execute: issues operations
- Integer Execute → Retirement: returns results
- Integer Execute → Load Store: requests memory
- Load Store → Address Translation: translates addresses
- Load Store → L2 Cache: accesses cache
- Instruction Fetch → L2 Cache: fetches cache lines
- L2 Cache → Bus Interface: forwards misses
- Bus Interface → System Interconnect: issues transactions
- System Interconnect → External Bus: routes external traffic
- System Interconnect → Interrupt Controller: routes interrupts
- System Interconnect → Core Local Interrupts: accesses local timers
- Privileged State → Core Integration: controls core state
- Hardware Debug → Core Integration: controls debugging
- Performance Counters → Core Integration: counts events
- Clock Control → Core Integration: provides clocks
- Reset Control → Core Integration: provides reset
- Core Integration → External SoC: exposes system interface
