# i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory architecture

> Architecture diagram of the GitHub repository i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory
- Repository: https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory

## Overview

This repository presents a parameterized INT8 systolic-array matrix-multiplication accelerator, with Python tools for vector generation and result checking. The documented user flow is to provide matrices, stream data through double-buffered storage and the compute array, then compare results with a NumPy golden model. The tree contains generated Verilator C++ and Python utilities, but not the documented RTL, testbench, or build files; hardware capabilities and their connections are therefore based on the README and sampled generated code, not inspection of the original RTL.

Main entry points: [`obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp`](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp) (Accelerator model), [`obj_dir/Vsystolic_pe_systolic_pe__DepSet_h13405d25__1.cpp`](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_systolic_pe__DepSet_h13405d25__1.cpp) (Systolic PE), [`obj_dir/Vsystolic_pe_array_feeder.h`](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_array_feeder.h) (Array feeder), [`python/generate_vectors.py`](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/python/generate_vectors.py) (Vector generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_compute["Compute model"]
  node_accelerator["Accelerator model"]
  node_pe["Systolic PE"]
  node_feeder["Array feeder"]
  node_buffers[("Ping-pong buffers")]
  node_axi["AXI stream I/O"]
end

subgraph group_verify["Python verification"]
  node_vectors["Vector generator"]
  node_golden["Golden model<br/>[golden_model.py]"]
  node_compare["Result comparison<br/>[compare_results.py]"]
end

subgraph group_analysis["Trace analysis"]
  node_vcd["VCD parsers<br/>[parse_vcd.py]"]
  node_trace["Trace utilities<br/>[trace_hier.py]"]
end

node_user(("Matrix user"))

node_user -.->|"streams matrices"| node_accelerator
node_accelerator -.->|"reads data"| node_buffers
node_accelerator -.->|"feeds array"| node_feeder
node_feeder -.->|"supplies operands"| node_pe
node_pe -.->|"accumulates results"| node_accelerator
node_accelerator -.->|"streams output"| node_axi
node_user -.->|"requests vectors"| node_vectors
node_vectors -.->|"generates reference"| node_golden
node_accelerator -.->|"provides results"| node_compare
node_golden -.->|"provides reference"| node_compare
node_accelerator -.->|"emits waveforms"| node_vcd
node_vcd -.->|"supports inspection"| node_trace

click node_accelerator "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp"
click node_pe "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_systolic_pe__DepSet_h13405d25__1.cpp"
click node_feeder "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_array_feeder.h"
click node_buffers "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_ping_pong_buffer__A3.h"
click node_axi "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp"
click node_vectors "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/python/generate_vectors.py"
click node_golden "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/python/golden_model.py"
click node_compare "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/python/compare_results.py"
click node_vcd "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/parse_vcd.py"
click node_trace "https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/trace_hier.py"

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_accelerator,node_pe,node_feeder,node_buffers,node_axi,node_user toneBlue
class node_vectors,node_golden,node_compare toneAmber
class node_vcd,node_trace toneMint
```

## Components

### Compute model

- [Accelerator model](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp): `obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp`
- [Systolic PE](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_systolic_pe__DepSet_h13405d25__1.cpp): `obj_dir/Vsystolic_pe_systolic_pe__DepSet_h13405d25__1.cpp`
- [Array feeder](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_array_feeder.h): `obj_dir/Vsystolic_pe_array_feeder.h`
- [Ping-pong buffers](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe_ping_pong_buffer__A3.h): `obj_dir/Vsystolic_pe_ping_pong_buffer__A3.h`
- [AXI stream I/O](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp): `obj_dir/Vsystolic_pe___024root__DepSet_h67cc2236__1.cpp`

### Python verification

- [Vector generator](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/python/generate_vectors.py): `python/generate_vectors.py`
- [Golden model](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/python/golden_model.py): `python/golden_model.py`
- [Result comparison](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/python/compare_results.py): `python/compare_results.py`

### Trace analysis

- [VCD parsers](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/parse_vcd.py): `parse_vcd.py`
- [Trace utilities](https://github.com/i-am-somasai/scalable-8x8-int8-systolic-array-accelerator-with-axi4-stream-ping-pong-memory/blob/main/trace_hier.py): `trace_hier.py`

### Other components

- **Matrix user**

## Connections

- Matrix user → Accelerator model: streams matrices (evidence: `README.md`)
- Accelerator model → Ping-pong buffers: reads data (evidence: `README.md`)
- Accelerator model → Array feeder: feeds array (evidence: `README.md`)
- Array feeder → Systolic PE: supplies operands (evidence: `README.md`)
- Systolic PE → Accelerator model: accumulates results (evidence: `README.md`)
- Accelerator model → AXI stream I/O: streams output (evidence: `README.md`)
- Matrix user → Vector generator: requests vectors (evidence: `README.md`)
- Vector generator → Golden model: generates reference (evidence: `README.md`)
- Accelerator model → Result comparison: provides results (evidence: `README.md`)
- Golden model → Result comparison: provides reference (evidence: `README.md`)
- Accelerator model → VCD parsers: emits waveforms (evidence: `README.md`)
- VCD parsers → Trace utilities: supports inspection
