# litex-hub/litex-boards architecture

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

- Interactive diagram: https://gitdiagram.com/litex-hub/litex-boards
- Repository: https://github.com/litex-hub/litex-boards

## Overview

LiteX-Boards supplies FPGA board definitions and reusable LiteX SoC targets. The principal workflow is selecting a board target, using its platform definition and optional hardware extensions to configure a SoC, then building and loading a bitstream. The graph represents representative targets and platform families rather than every supported board. The README documents the broad capabilities; sampled source and the SOURCE INDEX support only selected implementation links, so unsampled relationships are omitted.

Main entry points: [`litex_boards/targets`](https://github.com/litex-hub/litex-boards/tree/master/litex_boards/targets) (Board targets), [`litex_boards/targets/sipeed_tang_mega_138k.py`](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_mega_138k.py) (Tang Mega SoC), [`litex_boards/targets/efinix_ti375_c529_dev_kit.py`](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/efinix_ti375_c529_dev_kit.py) (Efinix Ti375 SoC), [`litex_boards/targets/sipeed_tang_console.py`](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_console.py) (Tang Console SoC)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_target["SoC targets"]
  node_board_target["Board targets"]
  node_efinix_target["Efinix Ti375 SoC"]
  node_alinx_target["ALINX AX7035 SoC<br/>[alinx_ax7035.py]"]
  node_tang_target["Tang Mega SoC"]
  node_console_target["Tang Console SoC"]
  node_tangpro_target["Tang Mega Pro SoC"]
end

subgraph group_platform["Board platforms"]
  node_platforms["Board definitions"]
  node_efinix_platform["Efinix Ti375 board"]
  node_alinx_platform["ALINX AX7035 board<br/>[alinx_ax7035.py]"]
  node_tang_platform["Tang Mega board"]
  node_console_platform["Tang Console board"]
  node_tangpro_platform["Tang Mega Pro board"]
end

subgraph group_extension["Hardware extensions"]
  node_pmod["Pmod modules<br/>[pmod.py]"]
  node_sdram_modules["Header SDRAM<br/>[sdram_modules.py]"]
  node_sipeed_extensions["Sipeed docks<br/>[sipeed.py]"]
end

subgraph group_shared["Shared support"]
  node_compat["Compatibility helpers<br/>[compat.py]"]
end

node_engineer(("SoC developer"))
node_litex["LiteX framework"]
node_fpga(("FPGA board"))
node_bitstream["Configured bitstream"]

node_engineer -->|"selects target"| node_board_target
node_board_target -->|"defines board"| node_platforms
node_efinix_target -->|"configures"| node_efinix_platform
node_alinx_target -->|"configures"| node_alinx_platform
node_tang_target -->|"configures"| node_tang_platform
node_console_target -->|"configures"| node_console_platform
node_tangpro_target -->|"configures"| node_tangpro_platform
node_efinix_target -->|"adds optional modules"| node_pmod
node_tang_target -->|"adds optional modules"| node_pmod
node_tang_target -->|"selects SDRAM extension"| node_sdram_modules
node_console_target -->|"selects SDRAM extension"| node_sdram_modules
node_tang_platform -->|"uses dock definitions"| node_sipeed_extensions
node_console_platform -->|"uses dock definitions"| node_sipeed_extensions
node_board_target -->|"builds SoC"| node_litex
node_platforms -->|"maps board IO"| node_fpga
node_board_target -->|"builds and loads"| node_bitstream
node_bitstream -->|"loads onto"| node_fpga

click node_board_target "https://github.com/litex-hub/litex-boards/tree/master/litex_boards/targets"
click node_efinix_target "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/efinix_ti375_c529_dev_kit.py"
click node_alinx_target "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/alinx_ax7035.py"
click node_tang_target "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_mega_138k.py"
click node_console_target "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_console.py"
click node_tangpro_target "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_mega_138k_pro.py"
click node_platforms "https://github.com/litex-hub/litex-boards/tree/master/litex_boards/platforms"
click node_efinix_platform "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/efinix_ti375_c529_dev_kit.py"
click node_alinx_platform "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/alinx_ax7035.py"
click node_tang_platform "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sipeed_tang_mega_138k.py"
click node_console_platform "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sipeed_tang_console.py"
click node_tangpro_platform "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sipeed_tang_mega_138k_pro.py"
click node_pmod "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/extensions/pmod.py"
click node_sdram_modules "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/extensions/sdram_modules.py"
click node_sipeed_extensions "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/extensions/sipeed.py"
click node_compat "https://github.com/litex-hub/litex-boards/blob/master/litex_boards/compat.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_board_target,node_efinix_target,node_alinx_target,node_tang_target,node_console_target,node_tangpro_target toneBlue
class node_platforms,node_efinix_platform,node_alinx_platform,node_tang_platform,node_console_platform,node_tangpro_platform toneAmber
class node_pmod,node_sdram_modules,node_sipeed_extensions toneMint
class node_compat toneRose
class node_engineer,node_litex,node_fpga,node_bitstream toneIndigo
```

## Components

### SoC targets

- [Board targets](https://github.com/litex-hub/litex-boards/tree/master/litex_boards/targets): `litex_boards/targets`
- [Efinix Ti375 SoC](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/efinix_ti375_c529_dev_kit.py): `litex_boards/targets/efinix_ti375_c529_dev_kit.py`
- [ALINX AX7035 SoC](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/alinx_ax7035.py): `litex_boards/targets/alinx_ax7035.py`
- [Tang Mega SoC](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_mega_138k.py): `litex_boards/targets/sipeed_tang_mega_138k.py`
- [Tang Console SoC](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_console.py): `litex_boards/targets/sipeed_tang_console.py`
- [Tang Mega Pro SoC](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sipeed_tang_mega_138k_pro.py): `litex_boards/targets/sipeed_tang_mega_138k_pro.py`

### Board platforms

- [Board definitions](https://github.com/litex-hub/litex-boards/tree/master/litex_boards/platforms): `litex_boards/platforms`
- [Efinix Ti375 board](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/efinix_ti375_c529_dev_kit.py): `litex_boards/platforms/efinix_ti375_c529_dev_kit.py`
- [ALINX AX7035 board](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/alinx_ax7035.py): `litex_boards/platforms/alinx_ax7035.py`
- [Tang Mega board](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sipeed_tang_mega_138k.py): `litex_boards/platforms/sipeed_tang_mega_138k.py`
- [Tang Console board](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sipeed_tang_console.py): `litex_boards/platforms/sipeed_tang_console.py`
- [Tang Mega Pro board](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sipeed_tang_mega_138k_pro.py): `litex_boards/platforms/sipeed_tang_mega_138k_pro.py`

### Hardware extensions

- [Pmod modules](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/extensions/pmod.py): `litex_boards/extensions/pmod.py`
- [Header SDRAM](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/extensions/sdram_modules.py): `litex_boards/extensions/sdram_modules.py`
- [Sipeed docks](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/extensions/sipeed.py): `litex_boards/extensions/sipeed.py`

### Shared support

- [Compatibility helpers](https://github.com/litex-hub/litex-boards/blob/master/litex_boards/compat.py): `litex_boards/compat.py`

### Other components

- **SoC developer**
- **LiteX framework**
- **FPGA board**
- **Configured bitstream**

## Connections

- SoC developer → Board targets: selects target
- Board targets → Board definitions: defines board (evidence: `litex_boards/targets/efinix_ti375_c529_dev_kit.py`)
- Efinix Ti375 SoC → Efinix Ti375 board: configures (evidence: `litex_boards/targets/efinix_ti375_c529_dev_kit.py`)
- ALINX AX7035 SoC → ALINX AX7035 board: configures (evidence: `litex_boards/targets/alinx_ax7035.py`)
- Tang Mega SoC → Tang Mega board: configures (evidence: `litex_boards/targets/sipeed_tang_mega_138k.py`)
- Tang Console SoC → Tang Console board: configures (evidence: `litex_boards/targets/sipeed_tang_console.py`)
- Tang Mega Pro SoC → Tang Mega Pro board: configures (evidence: `litex_boards/targets/sipeed_tang_mega_138k_pro.py`)
- Efinix Ti375 SoC → Pmod modules: adds optional modules (evidence: `litex_boards/targets/efinix_ti375_c529_dev_kit.py`)
- Tang Mega SoC → Pmod modules: adds optional modules (evidence: `litex_boards/targets/sipeed_tang_mega_138k.py`)
- Tang Mega SoC → Header SDRAM: selects SDRAM extension
- Tang Console SoC → Header SDRAM: selects SDRAM extension
- Tang Mega board → Sipeed docks: uses dock definitions (evidence: `litex_boards/platforms/sipeed_tang_mega_138k.py`)
- Tang Console board → Sipeed docks: uses dock definitions (evidence: `litex_boards/platforms/sipeed_tang_console.py`)
- Board targets → LiteX framework: builds SoC
- Board definitions → FPGA board: maps board IO
- Board targets → Configured bitstream: builds and loads
- Configured bitstream → FPGA board: loads onto
