# pulp-platform/araxl architecture

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

- Interactive diagram: https://gitdiagram.com/pulp-platform/araxl
- Repository: https://github.com/pulp-platform/araxl

## Overview

AraXL is a scalable RISC-V vector coprocessor for CVA6, combining configurable Ara2 clusters with memory and instruction-dispatch interfaces. The documented user flow is to select an application and cluster configuration, compile it, then run it in an ISA or RTL simulation; ideal-dispatcher mode is an alternate way to supply vector instructions. The tree supplied here is dominated by application examples, so the hardware nodes are documented architectural components rather than inspected RTL. Edges reflect README statements or source-index references; unverified details are omitted.

Main entry points: [`apps`](https://github.com/pulp-platform/araxl/tree/main/apps) (Vector examples), [`hardware`](https://github.com/pulp-platform/araxl/tree/main/hardware) (Cluster interfaces), [`apps/fft/kernel/fft.c`](https://github.com/pulp-platform/araxl/blob/main/apps/fft/kernel/fft.c) (FFT and wavelets), [`apps/ideal_dispatcher/scripts/dump_vtrace.py`](https://github.com/pulp-platform/araxl/blob/main/apps/ideal_dispatcher/scripts/dump_vtrace.py) (Ideal FIFO)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arch["Processor architecture"]
  node_cva6["CVA6 scalar core"]
  node_ara["Ara2 clusters"]
  node_fabric["Cluster interfaces"]
  node_l2[("L2 memory")]
  node_dispatcher["Ideal FIFO<br/>[dump_vtrace.py]"]
end

subgraph group_apps["Vector applications"]
  node_examples["Vector examples"]
  node_linear["Linear algebra<br/>[main.c]"]
  node_matmul["Matrix multiply<br/>[fmatmul.c]"]
  node_convolution["Convolution<br/>[fconv2d_3x3.c]"]
  node_transforms["FFT and wavelets<br/>[fft.c]"]
  node_otherkernels["Other vector kernels<br/>[softmax.c]"]
end

subgraph group_support["Software support"]
  node_isa["Vector ISA definitions<br/>[vector_defines.h]"]
  node_runtime["Runtime and timing<br/>[runtime.h]"]
  node_io["Formatted output<br/>[printf.h]"]
end

subgraph group_sim["Execution and simulation"]
  node_appuser["Application binaries"]
  node_spike["Spike simulation"]
  node_rtl["RTL simulation<br/>[ara_tb.cpp]"]
end

node_user(("Application user"))

node_user -->|"selects workload"| node_appuser
node_appuser -->|"runs example"| node_examples
node_examples -->|"includes"| node_linear
node_examples -->|"includes"| node_matmul
node_examples -->|"includes"| node_convolution
node_examples -->|"includes"| node_transforms
node_examples -->|"includes"| node_otherkernels
node_appuser -->|"runs on"| node_spike
node_appuser -->|"loads binary"| node_rtl
node_cva6 -->|"issues instructions"| node_ara
node_ara -->|"connects through"| node_fabric
node_fabric -->|"accesses"| node_l2
node_fabric -->|"receives instructions"| node_cva6
node_dispatcher -->|"dispatches vectors"| node_ara
node_examples -->|"uses timing"| node_runtime
node_examples -->|"prints results"| node_io
node_transforms -->|"uses definitions"| node_isa

click node_cva6 "https://github.com/pulp-platform/araxl/tree/main/hardware"
click node_ara "https://github.com/pulp-platform/araxl/tree/main/hardware"
click node_fabric "https://github.com/pulp-platform/araxl/tree/main/hardware"
click node_l2 "https://github.com/pulp-platform/araxl/tree/main/hardware"
click node_dispatcher "https://github.com/pulp-platform/araxl/blob/main/apps/ideal_dispatcher/scripts/dump_vtrace.py"
click node_examples "https://github.com/pulp-platform/araxl/tree/main/apps"
click node_linear "https://github.com/pulp-platform/araxl/blob/main/apps/conjugate_gradient/main.c"
click node_matmul "https://github.com/pulp-platform/araxl/blob/main/apps/fmatmul/kernel/fmatmul.c"
click node_convolution "https://github.com/pulp-platform/araxl/blob/main/apps/fconv2d/fconv2d_3x3.c"
click node_transforms "https://github.com/pulp-platform/araxl/blob/main/apps/fft/kernel/fft.c"
click node_otherkernels "https://github.com/pulp-platform/araxl/blob/main/apps/softmax/kernel/softmax.c"
click node_isa "https://github.com/pulp-platform/araxl/blob/main/apps/common/rivec/vector_defines.h"
click node_runtime "https://github.com/pulp-platform/araxl/blob/main/apps/common/runtime.h"
click node_io "https://github.com/pulp-platform/araxl/blob/main/apps/common/printf.h"
click node_appuser "https://github.com/pulp-platform/araxl/tree/main/apps"
click node_spike "https://github.com/pulp-platform/araxl/tree/main/apps"
click node_rtl "https://github.com/pulp-platform/araxl/blob/main/hardware/tb/verilator/ara_tb.cpp"

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_cva6,node_ara,node_fabric,node_l2,node_dispatcher,node_user toneBlue
class node_examples,node_linear,node_matmul,node_convolution,node_transforms,node_otherkernels toneAmber
class node_isa,node_runtime,node_io toneMint
class node_appuser,node_spike,node_rtl toneRose
```

## Components

### Processor architecture

- [CVA6 scalar core](https://github.com/pulp-platform/araxl/tree/main/hardware): `hardware`
- [Ara2 clusters](https://github.com/pulp-platform/araxl/tree/main/hardware): `hardware`
- [Cluster interfaces](https://github.com/pulp-platform/araxl/tree/main/hardware): `hardware`
- [L2 memory](https://github.com/pulp-platform/araxl/tree/main/hardware): `hardware`
- [Ideal FIFO](https://github.com/pulp-platform/araxl/blob/main/apps/ideal_dispatcher/scripts/dump_vtrace.py): `apps/ideal_dispatcher/scripts/dump_vtrace.py`

### Vector applications

- [Vector examples](https://github.com/pulp-platform/araxl/tree/main/apps): `apps`
- [Linear algebra](https://github.com/pulp-platform/araxl/blob/main/apps/conjugate_gradient/main.c): `apps/conjugate_gradient/main.c`
- [Matrix multiply](https://github.com/pulp-platform/araxl/blob/main/apps/fmatmul/kernel/fmatmul.c): `apps/fmatmul/kernel/fmatmul.c`
- [Convolution](https://github.com/pulp-platform/araxl/blob/main/apps/fconv2d/fconv2d_3x3.c): `apps/fconv2d/fconv2d_3x3.c`
- [FFT and wavelets](https://github.com/pulp-platform/araxl/blob/main/apps/fft/kernel/fft.c): `apps/fft/kernel/fft.c`
- [Other vector kernels](https://github.com/pulp-platform/araxl/blob/main/apps/softmax/kernel/softmax.c): `apps/softmax/kernel/softmax.c`

### Software support

- [Vector ISA definitions](https://github.com/pulp-platform/araxl/blob/main/apps/common/rivec/vector_defines.h): `apps/common/rivec/vector_defines.h`
- [Runtime and timing](https://github.com/pulp-platform/araxl/blob/main/apps/common/runtime.h): `apps/common/runtime.h`
- [Formatted output](https://github.com/pulp-platform/araxl/blob/main/apps/common/printf.h): `apps/common/printf.h`

### Execution and simulation

- [Application binaries](https://github.com/pulp-platform/araxl/tree/main/apps): `apps`
- [Spike simulation](https://github.com/pulp-platform/araxl/tree/main/apps): `apps`
- [RTL simulation](https://github.com/pulp-platform/araxl/blob/main/hardware/tb/verilator/ara_tb.cpp): `hardware/tb/verilator/ara_tb.cpp`

### Other components

- **Application user**

## Connections

- Application user → Application binaries: selects workload (evidence: `README.md`)
- Application binaries → Vector examples: runs example (evidence: `README.md`)
- Vector examples → Linear algebra: includes (evidence: `apps/conjugate_gradient/main.c`)
- Vector examples → Matrix multiply: includes (evidence: `apps/fmatmul/main.c`)
- Vector examples → Convolution: includes (evidence: `apps/fconv2d/main.c`)
- Vector examples → FFT and wavelets: includes (evidence: `apps/fft/main.c`)
- Vector examples → Other vector kernels: includes (evidence: `apps/softmax/main.c`)
- Application binaries → Spike simulation: runs on (evidence: `README.md`)
- Application binaries → RTL simulation: loads binary (evidence: `README.md`)
- CVA6 scalar core → Ara2 clusters: issues instructions (evidence: `README.md`)
- Ara2 clusters → Cluster interfaces: connects through (evidence: `README.md`)
- Cluster interfaces → L2 memory: accesses (evidence: `README.md`)
- Cluster interfaces → CVA6 scalar core: receives instructions (evidence: `README.md`)
- Ideal FIFO → Ara2 clusters: dispatches vectors (evidence: `README.md`)
- Vector examples → Runtime and timing: uses timing (evidence: `apps/fmatmul/main.c`)
- Vector examples → Formatted output: prints results (evidence: `apps/fmatmul/main.c`)
- FFT and wavelets → Vector ISA definitions: uses definitions
