# vicharak-in/shrike architecture

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

- Interactive diagram: https://gitdiagram.com/vicharak-in/shrike
- Repository: https://github.com/vicharak-in/shrike

## Overview

Shrike is an open hardware FPGA development-board ecosystem combining an FPGA and host microcontroller, with teaching examples, firmware utilities, and a Shrike-fi web bitstream flasher. A user’s clearest runtime workflow is to connect to the flasher, upload or select a bitstream, and request programming. The tree and README also show board designs and a broad range of HDL examples; their internal execution links are not inferred where source excerpts do not establish them. The archived scripts and serial utility are represented as separate programming paths.

Main entry points: [`examples`](https://github.com/vicharak-in/shrike/tree/main/examples) (FPGA Teaching Designs), [`utils/shrike-fi_web_flasher/main.py`](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py) (Web Flasher Server), [`hardware`](https://github.com/vicharak-in/shrike/tree/main/hardware) (Shrike Boards), [`utils/shrike-ctl/shrike-ctl.py`](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-ctl/shrike-ctl.py) (Serial Upload Host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_boards["Board Hardware"]
  node_shrike_boards["Shrike Boards"]
  node_shrike_lite["Shrike-lite Design"]
  node_shrike_fi["Shrike-fi Design"]
end

subgraph group_examples["Teaching Designs"]
  node_hdl_examples["FPGA Teaching Designs"]
  node_protocol_bridges["Protocol Bridges"]
  node_cpu_examples["Soft CPU Designs"]
  node_example_firmware["Example Firmware"]
end

subgraph group_flashing["Bitstream Tools"]
  node_serial_host["Serial Upload Host<br/>[shrike-ctl.py]"]
  node_serial_mcu["Serial SPI Bridge<br/>[main.c]"]
  node_legacy_micropython["Legacy SPI Flasher<br/>[shrike_fpga.py]"]
  node_legacy_uploader["Legacy Bitstream Uploader"]
end

subgraph group_web["Shrike-fi Flasher"]
  node_web_flasher["Web Flasher Server<br/>[main.py]"]
  node_web_upload["Upload and Validate<br/>[main.py]"]
  node_stored_bitstreams[("Stored Bitstreams<br/>[main.py]")]
  node_fpga_programming["FPGA Programming<br/>[main.py]"]
end

node_user(("Board User"))
node_browser(("Web Browser"))

node_user -->|"opens flasher"| node_browser
node_browser -->|"sends HTTP requests"| node_web_flasher
node_web_flasher -->|"routes requests"| node_web_upload
node_web_upload -->|"saves files"| node_stored_bitstreams
node_web_flasher -->|"lists files"| node_stored_bitstreams
node_web_flasher -->|"flashes bitstream"| node_fpga_programming
node_user -.->|"runs uploader"| node_serial_host
node_serial_host -->|"streams serial data"| node_serial_mcu
node_user -.->|"invokes flasher"| node_legacy_micropython
node_user -.->|"runs uploader"| node_legacy_uploader
node_user -->|"uses board family"| node_shrike_boards
node_shrike_boards -->|"includes model"| node_shrike_lite
node_shrike_boards -->|"includes model"| node_shrike_fi
node_user -->|"learns through examples"| node_hdl_examples
node_hdl_examples -->|"includes examples"| node_protocol_bridges
node_hdl_examples -->|"includes examples"| node_cpu_examples
node_hdl_examples -.->|"pairs designs with firmware"| node_example_firmware

click node_shrike_boards "https://github.com/vicharak-in/shrike/tree/main/hardware"
click node_shrike_lite "https://github.com/vicharak-in/shrike/tree/main/hardware/shrike-lite"
click node_shrike_fi "https://github.com/vicharak-in/shrike/tree/main/hardware/shrike-fi"
click node_hdl_examples "https://github.com/vicharak-in/shrike/tree/main/examples"
click node_protocol_bridges "https://github.com/vicharak-in/shrike/tree/main/examples/protocol_translator"
click node_cpu_examples "https://github.com/vicharak-in/shrike/tree/main/examples/shrike_serv"
click node_example_firmware "https://github.com/vicharak-in/shrike/tree/main/examples"
click node_web_flasher "https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py"
click node_web_upload "https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py"
click node_stored_bitstreams "https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py"
click node_fpga_programming "https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py"
click node_serial_host "https://github.com/vicharak-in/shrike/blob/main/utils/shrike-ctl/shrike-ctl.py"
click node_serial_mcu "https://github.com/vicharak-in/shrike/blob/main/utils/shrike-ctl/main.c"
click node_legacy_micropython "https://github.com/vicharak-in/shrike/blob/main/archive/shrike_micropy/shrike_fpga.py"
click node_legacy_uploader "https://github.com/vicharak-in/shrike/blob/main/archive/MCU_FFPGA_script/MCU_FFPGA_uploading_bitstream.py"

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_shrike_boards,node_shrike_lite,node_shrike_fi,node_user,node_browser toneBlue
class node_hdl_examples,node_protocol_bridges,node_cpu_examples,node_example_firmware toneAmber
class node_serial_host,node_serial_mcu,node_legacy_micropython,node_legacy_uploader toneMint
class node_web_flasher,node_web_upload,node_stored_bitstreams,node_fpga_programming toneRose
```

## Components

### Board Hardware

- [Shrike Boards](https://github.com/vicharak-in/shrike/tree/main/hardware): `hardware`
- [Shrike-lite Design](https://github.com/vicharak-in/shrike/tree/main/hardware/shrike-lite): `hardware/shrike-lite`
- [Shrike-fi Design](https://github.com/vicharak-in/shrike/tree/main/hardware/shrike-fi): `hardware/shrike-fi`

### Teaching Designs

- [FPGA Teaching Designs](https://github.com/vicharak-in/shrike/tree/main/examples): `examples`
- [Protocol Bridges](https://github.com/vicharak-in/shrike/tree/main/examples/protocol_translator): `examples/protocol_translator`
- [Soft CPU Designs](https://github.com/vicharak-in/shrike/tree/main/examples/shrike_serv): `examples/shrike_serv`
- [Example Firmware](https://github.com/vicharak-in/shrike/tree/main/examples): `examples`

### Bitstream Tools

- [Serial Upload Host](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-ctl/shrike-ctl.py): `utils/shrike-ctl/shrike-ctl.py`
- [Serial SPI Bridge](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-ctl/main.c): `utils/shrike-ctl/main.c`
- [Legacy SPI Flasher](https://github.com/vicharak-in/shrike/blob/main/archive/shrike_micropy/shrike_fpga.py): `archive/shrike_micropy/shrike_fpga.py`
- [Legacy Bitstream Uploader](https://github.com/vicharak-in/shrike/blob/main/archive/MCU_FFPGA_script/MCU_FFPGA_uploading_bitstream.py): `archive/MCU_FFPGA_script/MCU_FFPGA_uploading_bitstream.py`

### Shrike-fi Flasher

- [Web Flasher Server](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py): `utils/shrike-fi_web_flasher/main.py`
- [Upload and Validate](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py): `utils/shrike-fi_web_flasher/main.py`
- [Stored Bitstreams](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py): `utils/shrike-fi_web_flasher/main.py`
- [FPGA Programming](https://github.com/vicharak-in/shrike/blob/main/utils/shrike-fi_web_flasher/main.py): `utils/shrike-fi_web_flasher/main.py`

### Other components

- **Board User**
- **Web Browser**

## Connections

- Board User → Web Browser: opens flasher
- Web Browser → Web Flasher Server: sends HTTP requests (evidence: `utils/shrike-fi_web_flasher/main.py`)
- Web Flasher Server → Upload and Validate: routes requests (evidence: `utils/shrike-fi_web_flasher/main.py`)
- Upload and Validate → Stored Bitstreams: saves files (evidence: `utils/shrike-fi_web_flasher/main.py`)
- Web Flasher Server → Stored Bitstreams: lists files (evidence: `utils/shrike-fi_web_flasher/main.py`)
- Web Flasher Server → FPGA Programming: flashes bitstream (evidence: `utils/shrike-fi_web_flasher/main.py`)
- Board User → Serial Upload Host: runs uploader
- Serial Upload Host → Serial SPI Bridge: streams serial data (evidence: `utils/shrike-ctl/shrike-ctl.py`)
- Board User → Legacy SPI Flasher: invokes flasher
- Board User → Legacy Bitstream Uploader: runs uploader
- Board User → Shrike Boards: uses board family (evidence: `README.md`)
- Shrike Boards → Shrike-lite Design: includes model (evidence: `README.md`)
- Shrike Boards → Shrike-fi Design: includes model (evidence: `README.md`)
- Board User → FPGA Teaching Designs: learns through examples (evidence: `README.md`)
- FPGA Teaching Designs → Protocol Bridges: includes examples
- FPGA Teaching Designs → Soft CPU Designs: includes examples
- FPGA Teaching Designs → Example Firmware: pairs designs with firmware
