How adam-maj/tiny-gpu works
tiny-gpu is a learning-oriented Verilog GPU, not a general-purpose graphics stack. Its documented workflow is to load kernel instructions and data, configure a thread count, and launch execution; the dispatcher assigns blocks to cores, where threads execute instructions through fetch, decode, register, arithmetic, and load/store resources. The README also describes external memory controllers and a work-in-progress cache. No source excerpts were supplied, so the graph reflects documented relationships only; module-to-responsibility mappings follow filenames and README architecture descriptions.
Main entry points: scheduler.sv Scheduler · gpu.sv GPU top · controller.sv Memory controllers · dispatch.sv Dispatcher
Components 15
Device control
- GPU top
src/gpu.sv - Device control
src/dcr.sv - Dispatcher
src/dispatch.sv
Core execution
- Compute core
src/core.sv - Scheduler
src/scheduler.sv - Instruction fetcher
src/fetcher.sv - Instruction decoder
src/decoder.sv - Thread registers
src/registers.sv - Thread ALU
src/alu.sv - Thread LSU
src/lsu.sv - Program counter
src/pc.sv
Memory system
- Memory controllers
src/controller.sv - Cache (WIP)
- External global memory
Other components
- Kernel host
Connections 16
- Kernel host → GPU top: loads and launches
README.md - Kernel host → Device control: sets thread count
README.md - GPU top → Dispatcher: starts execution
README.md - GPU top → Memory controllers: interfaces memory
README.md - Dispatcher → Compute core: assigns blocks
README.md - Compute core → Scheduler: manages execution
README.md - Scheduler → Instruction fetcher: fetches instructions
README.md - Instruction fetcher → External global memory: reads program memory
README.md - Scheduler → Instruction decoder: decodes instruction
README.md - Scheduler → Thread registers: executes per thread
README.md - Scheduler → Thread ALU: issues arithmetic
README.md - Scheduler → Thread LSU: issues memory access
README.md - Scheduler → Program counter: tracks instruction position
README.md - Thread LSU → Memory controllers: requests data access
README.md - Memory controllers → External global memory: relays requests
README.md - External global memory → Cache (WIP): stores fetched data
README.md