# lucien-2004/redpitaya-fpga-moving-average-verification architecture

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

- Interactive diagram: https://gitdiagram.com/lucien-2004/redpitaya-fpga-moving-average-verification
- Repository: https://github.com/lucien-2004/redpitaya-fpga-moving-average-verification

## Overview

This repository documents a hardware experiment, not a complete Red Pitaya system: an external signal is sampled at IN2, filtered in FPGA logic, and observed at OUT1. The principal implementation is the 512-tap rolling moving average in `src/moving_average.vhd`; the README also reports comparison with the original 3-tap filter and oscilloscope results. No source excerpts were provided, so the graph follows only signal-path relationships explicitly documented in the README.

Main entry points: [`src/moving_average.vhd`](https://github.com/lucien-2004/redpitaya-fpga-moving-average-verification/blob/main/src/moving_average.vhd) (512-tap filter), [`README.md`](https://github.com/lucien-2004/redpitaya-fpga-moving-average-verification/blob/main/README.md) (Waveform results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Signal Input"]
  node_in2["Red Pitaya IN2"]
  node_adc["ADC"]
end

subgraph group_fpga["FPGA Processing"]
  node_filter["512-tap filter<br/>[moving_average.vhd]"]
end

subgraph group_output["Output Verification"]
  node_dac["DAC"]
  node_out1["Red Pitaya OUT1"]
  node_results["Waveform results<br/>[README.md]"]
end

node_generator(("Signal generator"))
node_scope(("External oscilloscope"))

node_generator -->|"drives"| node_in2
node_in2 -->|"feeds"| node_adc
node_adc -->|"samples into"| node_filter
node_filter -->|"outputs to"| node_dac
node_dac -->|"drives"| node_out1
node_out1 -->|"observed by"| node_scope
node_scope -->|"produces"| node_results

click node_filter "https://github.com/lucien-2004/redpitaya-fpga-moving-average-verification/blob/main/src/moving_average.vhd"
click node_results "https://github.com/lucien-2004/redpitaya-fpga-moving-average-verification/blob/main/README.md"

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_in2,node_adc toneBlue
class node_filter toneAmber
class node_dac,node_out1,node_results toneMint
class node_generator,node_scope toneIndigo
```

## Components

### Signal Input

- **Red Pitaya IN2**
- **ADC**

### FPGA Processing

- [512-tap filter](https://github.com/lucien-2004/redpitaya-fpga-moving-average-verification/blob/main/src/moving_average.vhd): `src/moving_average.vhd`

### Output Verification

- **DAC**
- **Red Pitaya OUT1**
- [Waveform results](https://github.com/lucien-2004/redpitaya-fpga-moving-average-verification/blob/main/README.md): `README.md`

### Other components

- **Signal generator**
- **External oscilloscope**

## Connections

- Signal generator → Red Pitaya IN2: drives (evidence: `README.md`)
- Red Pitaya IN2 → ADC: feeds (evidence: `README.md`)
- ADC → 512-tap filter: samples into (evidence: `README.md`)
- 512-tap filter → DAC: outputs to (evidence: `README.md`)
- DAC → Red Pitaya OUT1: drives (evidence: `README.md`)
- Red Pitaya OUT1 → External oscilloscope: observed by (evidence: `README.md`)
- External oscilloscope → Waveform results: produces (evidence: `README.md`)
