Note
SamBLE is still a work in progress, see progress section for more detail.
SamBLE is an open source Bluetooth LE SoC project. It aims to provide the following components:
- Bluetooth 6.0 LE PHY RTL (written in Veryl)
- LiteX RISC-V SoC integration
- Apache NimBLE Bluetooth LE stack integration
- RF front-end development kit
The design of custom RF / analog integrated circuit IP cores are currently not within the scope of SamBLE project. The design expects digitized baseband I/Q signal (centered on the requested channel) to be available for the SoC to process. The RF front-end development kit is meant to provide the signal when doing development on an FPGA.
The simulation target uses I/Q signal obtained from Bluetooth Wearable Device
Dataset provided by the
Institue of Electronics and Computer Science. The raw
dataset contains 100 MSPS I/Q signal data obtained from real devcies captured
using SDR in an RF isolated environment. The Python simulation project (sim/)
converts the raw data into the expected 20 MSPS data centered around a specific
Bluetooth LE channel.
| Component | Implemented? | Note |
|---|---|---|
| BT LE receiver PHY | Yes | LE 1M; Currently only legacy advertisement reception is verified |
| BT LE transmitter PHY | No | |
| LiteX SoC integration | Yes | Tested on PYNQ-Z2 & Verilator simulation |
| Bluetooth stack integration | No | Bare metal firmware for decoding LE advertisement is provided |
| RF front-end development kit | No | Next task |
-
Install dependencies. Some dependencies should be readily available from your package manager, for example:
sudo apt install python3 make verilator
Note that the
verilatorversion available from your package repository might be incompatible, if so, install the latest version at the time of writing (v5.054) by following the guide here.For the other dependencies, see the corresponding guides:
-
Prepare
phy_config.tomlcp phy/phy_config.sample.toml phy/phy_config.toml
Currently, only
widthparameter variations are tested to work. -
Run a simulation of the SoC + bare metal firmware
# Activate LiteX Python virtual environment, e.g. `pyenv activate litex` make all # build PHY, SoC, and firmware make test # test PHY & dependencies make run # simulate SoC with Verilator
SamBLE is based of the Indonesian word sambal, which means chili sauce 🌶️. This continues my tradition in naming my open source projects based of Indonesian words.


