Build with an agent
Waveflow is meant to be used through an AI coding agent. You describe the hardware you want; the agent looks Waveflow up, writes the design, simulates it and checks it. You review the decisions. This page is how to set that up and what to expect.
What you can ask for
Anything that processes samples or messages in an FPGA and talks to its neighbours over streams or memory. For example, in your own words:
- “A block that applies a complex gain to each burst of int16 IQ samples, with the gain in each command, rounded and saturated.”
- “A detector that watches eight channels and runs an angle-of-arrival search when a block’s energy crosses a threshold. Two search units are shared by all channels. How deep must the buffers be to lose less than 1% of blocks?”
- “A filter, an FFT and a peak search as a pipeline, read from and written back to memory, started by a host over AXI.”
The last two are the kind of question Waveflow is for: the answer depends on timing under realistic traffic, which the agent can measure in pysim over long traces (Why Waveflow).
Set up
You need Python 3.10 or newer and git. Vitis HLS and Vivado 2025.1 are needed only for synthesis and RTL simulation: the agent can design and simulate without them.
-
Install Waveflow from a clone, editable, so the agent’s tools can read the guide and the examples:
git clone https://github.com/sdrangan/waveflow.git cd waveflow python -m venv ../waveflow-venv source ../waveflow-venv/bin/activate pip install -e ".[dev]" -
Set up your own project folder (outside the clone), with the environment active:
cd /path/to/my_project waveflow initThis gives any agent in that folder the Waveflow MCP server (search over the guide and the reference examples, and a step-by-step process per kind of design), the Waveflow skills, and an
AGENTS.mdtelling it how to look Waveflow up. -
Open the folder in your agent (Claude Code, or VS Code chat in Agent mode; other agents that speak MCP should work but are untested) and describe what you want.
The details, and how to check the connection, are in Installing the MCP server.
What the agent will do
Waveflow is recent, so the agent does not know it from training. The setup tells it to look every name up, and gives it a process for each kind of design (one kernel, a pipeline, kernels on a bus, …). The process has two stages:
- The specification. The agent picks the architecture and the closest reference example, then writes what the hardware must do: the message formats, a bit-exact golden model in plain Python, the test scenarios with their expected outputs, and the design decisions. Then it stops for your review. This is where your knowledge of the algorithm matters most.
- The build, against that frozen specification: the pysim model of each block, its HLS body, tests that assert counts, then the generated HLS tops, synthesis and RTL simulation. pysim is checked against the golden, and the RTL against pysim, word for word.
When Waveflow lacks something the right design needs (a block, an interface, an option), the agent is told to say so and propose the extension, not to work around it.
What you get back
- A design that simulates in Python on traces as long as you like, with the hardware’s arithmetic and calibrated timing: lost blocks, delays, queue depths, beside a ray-traced channel if you want one.
- HLS and RTL generated from it, with resources from synthesis and exact cycle counts from RTL simulation, checked against the Python.
- A design space to explore: change the parameters and re-run pysim, or let the agent search it.
What to expect
- A small design takes minutes to reach simulation. In a held-out test, an agent went from an empty folder to a passing pysim model of a shared-FFT design in 14 minutes (Shared kernels). Synthesis and RTL simulation then take their usual minutes to hours.
- Agents do well, and still miss things. In the agent-skills tests, runs scored at or near the ceiling on most tasks, and every run found something to fix in Waveflow’s instructions. Review the specification stage carefully.
- It is research software. The MCP server and skills are experimental, and the board flow is not finished (Results and status). Feedback is welcome: open an issue on the repository.