# guanpu2025/hls architecture

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

- Interactive diagram: https://gitdiagram.com/guanpu2025/hls
- Repository: https://github.com/guanpu2025/hls

## Overview

This repository is an HLS competition reference corpus: it supplies benchmark tasks and a local self-test/scoring path, rather than the contestant agent described in the README. A user selects a task, develops a solution outside the files shown here, and uses the self-test tooling to check and score it. The task families below summarize the substantial benchmark catalog, including the indexed core modules. The README documents the assessment workflow; agent, solution-generation, and Vitis orchestration source is not present in the supplied tree, so those internals are not inferred.

Main entry points: [`selftest/judge.py`](https://github.com/guanpu2025/hls/blob/master/selftest/judge.py) (Self-test runner), [`tasks`](https://github.com/guanpu2025/hls/tree/master/tasks) (Basic examples), [`tasks/he_c2hlsc_aes`](https://github.com/guanpu2025/hls/tree/master/tasks/he_c2hlsc_aes) (Cryptography), [`tasks/he_chstone_dfsin`](https://github.com/guanpu2025/hls/tree/master/tasks/he_chstone_dfsin) (Floating point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_benchmarks["Benchmark tasks"]
  node_examples["Basic examples"]
  node_crypto["Cryptography"]
  node_float["Floating point"]
  node_machsuite["MachSuite kernels"]
  node_polybench["PolyBench kernels"]
  node_graph["Graph kernels"]
  node_flowgnn["FlowGNN kernels"]
  node_rosetta["Rosetta kernels"]
  node_fpga["PP4FPGA kernels"]
  node_smoke["Smoke subset"]
end

subgraph group_evaluation["Local evaluation"]
  node_selftest["Self-test runner<br/>[judge.py]"]
  node_scoring["Level scoring<br/>[score.py]"]
end

node_contestant(("Contestant"))
node_vitis["Vitis HLS"]

node_contestant -->|"selects task"| node_examples
node_contestant -->|"selects task"| node_crypto
node_contestant -->|"selects task"| node_float
node_contestant -->|"selects task"| node_machsuite
node_contestant -->|"selects task"| node_polybench
node_contestant -->|"selects task"| node_graph
node_contestant -->|"selects task"| node_flowgnn
node_contestant -->|"selects task"| node_rosetta
node_contestant -->|"selects task"| node_fpga
node_contestant -->|"selects task"| node_smoke
node_contestant -->|"runs checks"| node_selftest
node_selftest -->|"checks with"| node_vitis
node_selftest -->|"reports levels"| node_scoring

click node_examples "https://github.com/guanpu2025/hls/tree/master/tasks"
click node_crypto "https://github.com/guanpu2025/hls/tree/master/tasks/he_c2hlsc_aes"
click node_float "https://github.com/guanpu2025/hls/tree/master/tasks/he_chstone_dfsin"
click node_machsuite "https://github.com/guanpu2025/hls/tree/master/tasks/he_machsuite_bfs_bulk"
click node_polybench "https://github.com/guanpu2025/hls/tree/master/tasks/he_polybench_gemm"
click node_graph "https://github.com/guanpu2025/hls/tree/master/tasks/he_gnnbuilder_compute_neighbor_tables"
click node_flowgnn "https://github.com/guanpu2025/hls/tree/master/tasks/he_flowgnn_fgnn_linear"
click node_rosetta "https://github.com/guanpu2025/hls/tree/master/tasks/he_rosetta_rendering_3d__projection"
click node_fpga "https://github.com/guanpu2025/hls/tree/master/tasks/he_pp4fpga_block_mm"
click node_smoke "https://github.com/guanpu2025/hls/tree/master/tasks_smoke"
click node_selftest "https://github.com/guanpu2025/hls/blob/master/selftest/judge.py"
click node_scoring "https://github.com/guanpu2025/hls/blob/master/selftest/score.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_examples,node_crypto,node_float,node_machsuite,node_polybench,node_graph,node_flowgnn,node_rosetta,node_fpga,node_smoke toneBlue
class node_selftest,node_scoring toneAmber
class node_contestant,node_vitis toneIndigo
```

## Components

### Benchmark tasks

- [Basic examples](https://github.com/guanpu2025/hls/tree/master/tasks): `tasks`
- [Cryptography](https://github.com/guanpu2025/hls/tree/master/tasks/he_c2hlsc_aes): `tasks/he_c2hlsc_aes`
- [Floating point](https://github.com/guanpu2025/hls/tree/master/tasks/he_chstone_dfsin): `tasks/he_chstone_dfsin`
- [MachSuite kernels](https://github.com/guanpu2025/hls/tree/master/tasks/he_machsuite_bfs_bulk): `tasks/he_machsuite_bfs_bulk`
- [PolyBench kernels](https://github.com/guanpu2025/hls/tree/master/tasks/he_polybench_gemm): `tasks/he_polybench_gemm`
- [Graph kernels](https://github.com/guanpu2025/hls/tree/master/tasks/he_gnnbuilder_compute_neighbor_tables): `tasks/he_gnnbuilder_compute_neighbor_tables`
- [FlowGNN kernels](https://github.com/guanpu2025/hls/tree/master/tasks/he_flowgnn_fgnn_linear): `tasks/he_flowgnn_fgnn_linear`
- [Rosetta kernels](https://github.com/guanpu2025/hls/tree/master/tasks/he_rosetta_rendering_3d__projection): `tasks/he_rosetta_rendering_3d__projection`
- [PP4FPGA kernels](https://github.com/guanpu2025/hls/tree/master/tasks/he_pp4fpga_block_mm): `tasks/he_pp4fpga_block_mm`
- [Smoke subset](https://github.com/guanpu2025/hls/tree/master/tasks_smoke): `tasks_smoke`

### Local evaluation

- [Self-test runner](https://github.com/guanpu2025/hls/blob/master/selftest/judge.py): `selftest/judge.py`
- [Level scoring](https://github.com/guanpu2025/hls/blob/master/selftest/score.py): `selftest/score.py`

### Other components

- **Contestant**
- **Vitis HLS**

## Connections

- Contestant → Basic examples: selects task (evidence: `README.md`)
- Contestant → Cryptography: selects task (evidence: `README.md`)
- Contestant → Floating point: selects task (evidence: `README.md`)
- Contestant → MachSuite kernels: selects task (evidence: `README.md`)
- Contestant → PolyBench kernels: selects task (evidence: `README.md`)
- Contestant → Graph kernels: selects task (evidence: `README.md`)
- Contestant → FlowGNN kernels: selects task (evidence: `README.md`)
- Contestant → Rosetta kernels: selects task (evidence: `README.md`)
- Contestant → PP4FPGA kernels: selects task (evidence: `README.md`)
- Contestant → Smoke subset: selects task (evidence: `README.md`)
- Contestant → Self-test runner: runs checks (evidence: `README.md`)
- Self-test runner → Vitis HLS: checks with (evidence: `README.md`)
- Self-test runner → Level scoring: reports levels (evidence: `README.md`)
