# haimni/fpga-ov7670-edge-detection architecture

> Architecture diagram of the GitHub repository haimni/fpga-ov7670-edge-detection, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/haimni/fpga-ov7670-edge-detection
- Repository: https://github.com/haimni/fpga-ov7670-edge-detection

## Overview

This repository describes an FPGA system that captures OV7670 camera data, processes the image stream for edge detection, and sends video to an output pipeline. The README documents the capture-to-output stages, but no RTL excerpts were provided, so the stage links reflect documented architecture rather than verified signal-level wiring. The filenames identify camera control, I²C, reset, register, and VGA modules; their specific interconnections and the location of the edge-detection logic cannot be confirmed from the available evidence.

Main entry points: [`OV7670_CAPTURE.vhd`](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_CAPTURE.vhd) (Image capture), [`VGA_Display_Module.vhd`](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/VGA_Display_Module.vhd) (VGA display)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_camera["Camera acquisition"]
  node_capture["Image capture<br/>[OV7670_CAPTURE.vhd]"]
end

subgraph group_processing["Image processing"]
  node_frame_processing["Frame processing"]
  node_edge_detection["Edge detection"]
end

subgraph group_control["Camera control"]
  node_controller_top["Controller top"]
  node_iic_bus["I²C bus<br/>[IIC_BUS_Module.vhd]"]
  node_camera_reset["Camera reset<br/>[OV7670_RESET.vhd]"]
  node_camera_registers["Camera registers"]
end

subgraph group_output["Video output"]
  node_vga_display["VGA display"]
  node_video_output["Video output"]
end

node_camera_module(("OV7670 camera"))

node_camera_module -->|"supplies pixels"| node_capture
node_capture -->|"streams image"| node_frame_processing
node_frame_processing -->|"processes frames"| node_edge_detection
node_edge_detection -->|"sends processed video"| node_vga_display
node_vga_display -->|"drives output"| node_video_output

click node_capture "https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_CAPTURE.vhd"
click node_controller_top "https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_Controller_Top.vhd"
click node_iic_bus "https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/IIC_BUS_Module.vhd"
click node_camera_reset "https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_RESET.vhd"
click node_camera_registers "https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_Registers.vhd"
click node_vga_display "https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/VGA_Display_Module.vhd"

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_capture toneBlue
class node_frame_processing,node_edge_detection toneAmber
class node_controller_top,node_iic_bus,node_camera_reset,node_camera_registers toneMint
class node_vga_display,node_video_output toneRose
class node_camera_module toneIndigo
```

## Components

### Camera acquisition

- [Image capture](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_CAPTURE.vhd): `OV7670_CAPTURE.vhd`

### Image processing

- **Frame processing**
- **Edge detection**

### Camera control

- [Controller top](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_Controller_Top.vhd): `OV7670_Controller_Top.vhd`
- [I²C bus](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/IIC_BUS_Module.vhd): `IIC_BUS_Module.vhd`
- [Camera reset](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_RESET.vhd): `OV7670_RESET.vhd`
- [Camera registers](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/OV7670_Registers.vhd): `OV7670_Registers.vhd`

### Video output

- [VGA display](https://github.com/haimni/fpga-ov7670-edge-detection/blob/main/VGA_Display_Module.vhd): `VGA_Display_Module.vhd`
- **Video output**

### Other components

- **OV7670 camera**

## Connections

- OV7670 camera → Image capture: supplies pixels
- Image capture → Frame processing: streams image
- Frame processing → Edge detection: processes frames
- Edge detection → VGA display: sends processed video
- VGA display → Video output: drives output
