# harshit-12kaundal/mini-gpu-simt-core architecture

> Architecture diagram of the GitHub repository harshit-12kaundal/mini-gpu-simt-core, 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/harshit-12kaundal/mini-gpu-simt-core
- Repository: https://github.com/harshit-12kaundal/mini-gpu-simt-core

## Overview

Mini GPU SIMT Core combines a software path for producing machine words with a Verilog execution core. Users can supply MiniC or assembly; the documented toolchain compiles MiniC to assembly and assembles it to 16-bit instructions, while the RTL executes instructions across lanes and supports arithmetic, memory, branching, and divergent predication. README documents these capabilities, but RTL source was not sampled, so internal hardware links are based on those explicit descriptions; physical-design and verification infrastructure are outside this runtime architecture.

Main entry points: [`src/gpu_core.v`](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/gpu_core.v) (GPU core), [`asm/assembler.py`](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/asm/assembler.py) (Two-pass assembler), [`src/simt_core.v`](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/simt_core.v) (SIMT core), [`compiler/minic.py`](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/compiler/minic.py) (MiniC compiler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_software["Software toolchain"]
  node_minic["MiniC compiler<br/>[minic.py]"]
  node_asm["Two-pass assembler<br/>[assembler.py]"]
end

subgraph group_hardware["SIMT hardware"]
  node_lane_dp["Lane datapath<br/>[Lane_datapath.v]"]
  node_lane_mem[("Lane memory<br/>[Lane_mem.v]")]
  node_simt["SIMT core<br/>[simt_core.v]"]
  node_sequencer["Instruction sequencer<br/>[instr_sequencer.v]"]
  node_gpu_core["GPU core<br/>[gpu_core.v]"]
  node_cluster["GPU cluster<br/>[gpu_cluster.v]"]
  node_systolic["Systolic array<br/>[systolic_array.v]"]
  node_systolic_top["Systolic top<br/>[systolic_mm_top.v]"]
end

node_user(("Kernel author"))

node_user -->|"writes MiniC"| node_minic
node_user -->|"writes assembly"| node_asm
node_minic -->|"emits assembly"| node_asm
node_asm -->|"encodes instructions"| node_gpu_core
node_sequencer -->|"broadcasts instructions"| node_simt
node_simt -->|"executes per lane"| node_lane_dp
node_lane_dp -->|"loads and stores"| node_lane_mem
node_gpu_core -->|"integrates"| node_sequencer
node_gpu_core -->|"integrates"| node_simt
node_gpu_core -.->|"used by"| node_cluster
node_systolic_top -.->|"integrates"| node_systolic

click node_minic "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/compiler/minic.py"
click node_asm "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/asm/assembler.py"
click node_lane_dp "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/Lane_datapath.v"
click node_lane_mem "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/Lane_mem.v"
click node_simt "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/simt_core.v"
click node_sequencer "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/instr_sequencer.v"
click node_gpu_core "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/gpu_core.v"
click node_cluster "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/gpu_cluster.v"
click node_systolic "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/systolic_array.v"
click node_systolic_top "https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/systolic_mm_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_minic,node_asm toneBlue
class node_lane_dp,node_lane_mem,node_simt,node_sequencer,node_gpu_core,node_cluster,node_systolic,node_systolic_top toneAmber
class node_user toneIndigo
```

## Components

### Software toolchain

- [MiniC compiler](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/compiler/minic.py): `compiler/minic.py`
- [Two-pass assembler](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/asm/assembler.py): `asm/assembler.py`

### SIMT hardware

- [Lane datapath](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/Lane_datapath.v): `src/Lane_datapath.v`
- [Lane memory](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/Lane_mem.v): `src/Lane_mem.v`
- [SIMT core](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/simt_core.v): `src/simt_core.v`
- [Instruction sequencer](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/instr_sequencer.v): `src/instr_sequencer.v`
- [GPU core](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/gpu_core.v): `src/gpu_core.v`
- [GPU cluster](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/gpu_cluster.v): `src/gpu_cluster.v`
- [Systolic array](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/systolic_array.v): `src/systolic_array.v`
- [Systolic top](https://github.com/harshit-12kaundal/mini-gpu-simt-core/blob/main/src/systolic_mm_top.v): `src/systolic_mm_top.v`

### Other components

- **Kernel author**

## Connections

- Kernel author → MiniC compiler: writes MiniC (evidence: `README.md`)
- Kernel author → Two-pass assembler: writes assembly (evidence: `README.md`)
- MiniC compiler → Two-pass assembler: emits assembly (evidence: `README.md`)
- Two-pass assembler → GPU core: encodes instructions (evidence: `README.md`)
- Instruction sequencer → SIMT core: broadcasts instructions (evidence: `README.md`)
- SIMT core → Lane datapath: executes per lane (evidence: `README.md`)
- Lane datapath → Lane memory: loads and stores (evidence: `README.md`)
- GPU core → Instruction sequencer: integrates (evidence: `README.md`)
- GPU core → SIMT core: integrates (evidence: `README.md`)
- GPU core → GPU cluster: used by
- Systolic top → Systolic array: integrates
