# irrelevantongit/fractal-engine-dsd architecture

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

- Interactive diagram: https://gitdiagram.com/irrelevantongit/fractal-engine-dsd
- Repository: https://github.com/irrelevantongit/fractal-engine-dsd

## Overview

This is an FPGA Mandelbrot renderer: parallel fixed-point engines compute points, completed results update a VGA frame buffer, and VGA logic reads and colors pixels for display. The README documents the main data flow and clock-domain role, but no RTL excerpts were provided; therefore, internal top-level wiring and any connections not explicitly described are omitted.

Main entry points: [`VGA.v`](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/VGA.v) (VGA display logic), [`Engine.v`](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Engine.v) (Parallel engines), [`Mandel.v`](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Mandel.v) (Mandel system), [`Coor_gen.v`](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Coor_gen.v) (Coordinate dispatcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_compute["Fractal computation"]
  node_top["Mandel system<br/>[Mandel.v]"]
  node_coordinates["Coordinate dispatcher<br/>[Coor_gen.v]"]
  node_engines["Parallel engines<br/>[Engine.v]"]
  node_constants["Fractal constants"]
end

subgraph group_writeback["Frame-buffer writeback"]
  node_writeback["Result writeback<br/>[Engine2VGA.v]"]
  node_framebuffer[("VGA frame buffer<br/>[Engine2VGA.v]")]
end

subgraph group_display["VGA output"]
  node_vga["VGA display logic<br/>[VGA.v]"]
  node_controller["VGA timing controller<br/>[VGA_Controller.v]"]
  node_colors["Color lookup<br/>[img_index.v]"]
end

subgraph group_clocks["Clocking"]
  node_engineclock["Engine PLL<br/>[engine_pll.v]"]
end

node_board(("DE2-115 FPGA"))
node_monitor(("VGA monitor"))

node_board -->|"hosts"| node_top
node_top -->|"uses"| node_coordinates
node_coordinates -->|"assigns coordinates"| node_engines
node_constants -.->|"defines arithmetic"| node_engines
node_engines -->|"returns results"| node_writeback
node_writeback -->|"writes pixels"| node_framebuffer
node_vga -->|"reads pixels"| node_framebuffer
node_vga -->|"maps colors"| node_colors
node_vga -->|"generates sync"| node_controller
node_vga -->|"drives video"| node_monitor
node_engineclock -->|"clocks engines"| node_engines

click node_top "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Mandel.v"
click node_coordinates "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Coor_gen.v"
click node_engines "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Engine.v"
click node_constants "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/mandel_constants.vh"
click node_writeback "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Engine2VGA.v"
click node_framebuffer "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Engine2VGA.v"
click node_vga "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/VGA.v"
click node_controller "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/VGA_Controller.v"
click node_colors "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/img_index.v"
click node_engineclock "https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/engine_pll.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_top,node_coordinates,node_engines,node_constants toneBlue
class node_writeback,node_framebuffer toneAmber
class node_vga,node_controller,node_colors toneMint
class node_engineclock toneRose
class node_board,node_monitor toneIndigo
```

## Components

### Fractal computation

- [Mandel system](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Mandel.v): `Mandel.v`
- [Coordinate dispatcher](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Coor_gen.v): `Coor_gen.v`
- [Parallel engines](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Engine.v): `Engine.v`
- [Fractal constants](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/mandel_constants.vh): `mandel_constants.vh`

### Frame-buffer writeback

- [Result writeback](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Engine2VGA.v): `Engine2VGA.v`
- [VGA frame buffer](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/Engine2VGA.v): `Engine2VGA.v`

### VGA output

- [VGA display logic](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/VGA.v): `VGA.v`
- [VGA timing controller](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/VGA_Controller.v): `VGA_Controller.v`
- [Color lookup](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/img_index.v): `img_index.v`

### Clocking

- [Engine PLL](https://github.com/irrelevantongit/fractal-engine-dsd/blob/main/engine_pll.v): `engine_pll.v`

### Other components

- **DE2-115 FPGA**
- **VGA monitor**

## Connections

- DE2-115 FPGA → Mandel system: hosts (evidence: `README.md`)
- Mandel system → Coordinate dispatcher: uses (evidence: `README.md`)
- Coordinate dispatcher → Parallel engines: assigns coordinates (evidence: `README.md`)
- Fractal constants → Parallel engines: defines arithmetic
- Parallel engines → Result writeback: returns results (evidence: `README.md`)
- Result writeback → VGA frame buffer: writes pixels (evidence: `README.md`)
- VGA display logic → VGA frame buffer: reads pixels (evidence: `README.md`)
- VGA display logic → Color lookup: maps colors (evidence: `README.md`)
- VGA display logic → VGA timing controller: generates sync (evidence: `README.md`)
- VGA display logic → VGA monitor: drives video (evidence: `README.md`)
- Engine PLL → Parallel engines: clocks engines (evidence: `README.md`)
