# ettusresearch/uhd architecture

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

- Interactive diagram: https://gitdiagram.com/ettusresearch/uhd
- Repository: https://github.com/ettusresearch/uhd

## Overview

UHD is the user-space driver and API for configuring and using USRP software-defined radios. A typical workflow begins in an application, proceeds through host device and motherboard control, and reaches hardware; daughterboard management and RFNoC streaming are distinct host-side responsibilities. MPM manages embedded-device functions, while firmware and FPGA images provide device-side software and logic. The README establishes these product areas, but the sampled excerpts show only selected implementation links, so other cross-component relationships are left unasserted.

Main entry points: [`host/lib/usrp`](https://github.com/ettusresearch/uhd/tree/master/host/lib/usrp) (Motherboard control), [`host/include`](https://github.com/ettusresearch/uhd/tree/master/host/include) (UHD host API), [`mpm/python/usrp_hwd.py`](https://github.com/ettusresearch/uhd/blob/master/mpm/python/usrp_hwd.py) (Module peripheral manager), [`mpm/python/usrp_mpm/process_manager.py`](https://github.com/ettusresearch/uhd/blob/master/mpm/python/usrp_mpm/process_manager.py) (MPM process manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_host["Host driver"]
  node_host_api["UHD host API"]
  node_motherboard["Motherboard control"]
  node_x300_control["X300 control"]
  node_b300_control["B300 control"]
  node_daughterboards["Daughterboard management<br/>[dboard_manager.cpp]"]
  node_rfnoc_streaming["RFNoC streaming"]
  node_image_builder["Image builder<br/>[image_builder.py]"]
end

subgraph group_mpm["Embedded management"]
  node_mpm["Module peripheral manager<br/>[usrp_hwd.py]"]
  node_mpm_process["MPM process manager<br/>[process_manager.py]"]
end

subgraph group_device["Device software"]
  node_e300_power["E300 power control<br/>[main.c]"]
  node_e300_rev["E300 revision firmware<br/>[main.c]"]
  node_fx2_firmware["FX2 firmware<br/>[usrp_main.c]"]
  node_fx3_firmware["FX3 firmware<br/>[b200_main.c]"]
  node_octoclock_firmware["OctoClock firmware<br/>[network.c]"]
  node_usrp2_firmware["USRP2 firmware<br/>[u2p_init.c]"]
  node_usrp3_firmware["USRP3 firmware<br/>[x300_main.c]"]
end

subgraph group_fpga["FPGA logic"]
  node_fpga_images["FPGA images"]
end

node_application(("Applications"))

node_application -->|"uses API"| node_host_api
node_host_api -.->|"controls devices"| node_motherboard
node_motherboard -->|"manages boards"| node_daughterboards
node_motherboard -.->|"includes control"| node_x300_control
node_motherboard -.->|"includes control"| node_b300_control
node_host_api -.->|"streams RFNoC"| node_rfnoc_streaming
node_host_api -.->|"builds images"| node_image_builder
node_mpm_process -->|"starts and stops"| node_mpm
node_host_api -.->|"manages embedded devices"| node_mpm
node_motherboard -.->|"communicates with"| node_e300_power
node_motherboard -.->|"communicates with"| node_e300_rev
node_motherboard -.->|"communicates with"| node_fx2_firmware
node_motherboard -.->|"communicates with"| node_fx3_firmware
node_motherboard -.->|"communicates with"| node_octoclock_firmware
node_motherboard -.->|"communicates with"| node_usrp2_firmware
node_motherboard -.->|"communicates with"| node_usrp3_firmware
node_host_api -.->|"uses hardware images"| node_fpga_images

click node_host_api "https://github.com/ettusresearch/uhd/tree/master/host/include"
click node_motherboard "https://github.com/ettusresearch/uhd/tree/master/host/lib/usrp"
click node_x300_control "https://github.com/ettusresearch/uhd/blob/master/host/lib/usrp/x300/x300_mb_controller.cpp"
click node_b300_control "https://github.com/ettusresearch/uhd/blob/master/host/lib/usrp/b300/b300_mb_controller.cpp"
click node_daughterboards "https://github.com/ettusresearch/uhd/blob/master/host/lib/usrp/dboard_manager.cpp"
click node_rfnoc_streaming "https://github.com/ettusresearch/uhd/blob/master/host/lib/rfnoc/link_stream_manager.cpp"
click node_image_builder "https://github.com/ettusresearch/uhd/blob/master/host/python/uhd/rfnoc_utils/image_builder.py"
click node_mpm "https://github.com/ettusresearch/uhd/blob/master/mpm/python/usrp_hwd.py"
click node_mpm_process "https://github.com/ettusresearch/uhd/blob/master/mpm/python/usrp_mpm/process_manager.py"
click node_e300_power "https://github.com/ettusresearch/uhd/blob/master/firmware/e300/battery/main.c"
click node_e300_rev "https://github.com/ettusresearch/uhd/blob/master/firmware/e300/rev_b/main.c"
click node_fx2_firmware "https://github.com/ettusresearch/uhd/blob/master/firmware/fx2/b100/usrp_main.c"
click node_fx3_firmware "https://github.com/ettusresearch/uhd/blob/master/firmware/fx3/b200/firmware/b200_main.c"
click node_octoclock_firmware "https://github.com/ettusresearch/uhd/blob/master/firmware/octoclock/lib/network.c"
click node_usrp2_firmware "https://github.com/ettusresearch/uhd/blob/master/firmware/usrp2/usrp2p/u2p_init.c"
click node_usrp3_firmware "https://github.com/ettusresearch/uhd/blob/master/firmware/usrp3/x300/x300_main.c"
click node_fpga_images "https://github.com/ettusresearch/uhd/tree/master/fpga"

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_host_api,node_motherboard,node_x300_control,node_b300_control,node_daughterboards,node_rfnoc_streaming,node_image_builder toneBlue
class node_mpm,node_mpm_process toneAmber
class node_e300_power,node_e300_rev,node_fx2_firmware,node_fx3_firmware,node_octoclock_firmware,node_usrp2_firmware,node_usrp3_firmware toneMint
class node_fpga_images toneRose
class node_application toneIndigo
```

## Components

### Host driver

- [UHD host API](https://github.com/ettusresearch/uhd/tree/master/host/include): `host/include`
- [Motherboard control](https://github.com/ettusresearch/uhd/tree/master/host/lib/usrp): `host/lib/usrp`
- [X300 control](https://github.com/ettusresearch/uhd/blob/master/host/lib/usrp/x300/x300_mb_controller.cpp): `host/lib/usrp/x300/x300_mb_controller.cpp`
- [B300 control](https://github.com/ettusresearch/uhd/blob/master/host/lib/usrp/b300/b300_mb_controller.cpp): `host/lib/usrp/b300/b300_mb_controller.cpp`
- [Daughterboard management](https://github.com/ettusresearch/uhd/blob/master/host/lib/usrp/dboard_manager.cpp): `host/lib/usrp/dboard_manager.cpp`
- [RFNoC streaming](https://github.com/ettusresearch/uhd/blob/master/host/lib/rfnoc/link_stream_manager.cpp): `host/lib/rfnoc/link_stream_manager.cpp`
- [Image builder](https://github.com/ettusresearch/uhd/blob/master/host/python/uhd/rfnoc_utils/image_builder.py): `host/python/uhd/rfnoc_utils/image_builder.py`

### Embedded management

- [Module peripheral manager](https://github.com/ettusresearch/uhd/blob/master/mpm/python/usrp_hwd.py): `mpm/python/usrp_hwd.py`
- [MPM process manager](https://github.com/ettusresearch/uhd/blob/master/mpm/python/usrp_mpm/process_manager.py): `mpm/python/usrp_mpm/process_manager.py`

### Device software

- [E300 power control](https://github.com/ettusresearch/uhd/blob/master/firmware/e300/battery/main.c): `firmware/e300/battery/main.c`
- [E300 revision firmware](https://github.com/ettusresearch/uhd/blob/master/firmware/e300/rev_b/main.c): `firmware/e300/rev_b/main.c`
- [FX2 firmware](https://github.com/ettusresearch/uhd/blob/master/firmware/fx2/b100/usrp_main.c): `firmware/fx2/b100/usrp_main.c`
- [FX3 firmware](https://github.com/ettusresearch/uhd/blob/master/firmware/fx3/b200/firmware/b200_main.c): `firmware/fx3/b200/firmware/b200_main.c`
- [OctoClock firmware](https://github.com/ettusresearch/uhd/blob/master/firmware/octoclock/lib/network.c): `firmware/octoclock/lib/network.c`
- [USRP2 firmware](https://github.com/ettusresearch/uhd/blob/master/firmware/usrp2/usrp2p/u2p_init.c): `firmware/usrp2/usrp2p/u2p_init.c`
- [USRP3 firmware](https://github.com/ettusresearch/uhd/blob/master/firmware/usrp3/x300/x300_main.c): `firmware/usrp3/x300/x300_main.c`

### FPGA logic

- [FPGA images](https://github.com/ettusresearch/uhd/tree/master/fpga): `fpga`

### Other components

- **Applications**

## Connections

- Applications → UHD host API: uses API
- UHD host API → Motherboard control: controls devices
- Motherboard control → Daughterboard management: manages boards (evidence: `host/lib/usrp/dboard_manager.cpp`)
- Motherboard control → X300 control: includes control (evidence: `host/lib/usrp/x300/x300_mb_controller.cpp`)
- Motherboard control → B300 control: includes control (evidence: `host/lib/usrp/b300/b300_mb_controller.cpp`)
- UHD host API → RFNoC streaming: streams RFNoC
- UHD host API → Image builder: builds images
- MPM process manager → Module peripheral manager: starts and stops (evidence: `mpm/python/usrp_mpm/process_manager.py`)
- UHD host API → Module peripheral manager: manages embedded devices
- Motherboard control → E300 power control: communicates with
- Motherboard control → E300 revision firmware: communicates with
- Motherboard control → FX2 firmware: communicates with
- Motherboard control → FX3 firmware: communicates with
- Motherboard control → OctoClock firmware: communicates with
- Motherboard control → USRP2 firmware: communicates with
- Motherboard control → USRP3 firmware: communicates with
- UHD host API → FPGA images: uses hardware images
