Flow Overview
This section is how to build a system: the flow, a page per step, in the order a design takes them. What is being built is the four pages before this one, read first: Waveflow Architecture (the three levels of simulation, the layer around the DUT), Kernels, Devices and the DUT (with what you write and what Waveflow provides) and Command-response; the terms are in the Glossary. Each page walks the same running example and links down to the reference sections for the details.
Build a system, step by step
| step | the question | page |
|---|---|---|
| Choose the architecture | which blocks, which of them exist, what each costs: from an algorithm to a plan, before any code | Library blocks and their models |
| Design the DUT | what it does (the golden), its kernels, what each talks to, the messages, one firing | Designing the DUT |
| the detail of the streams: bursts and lanes, the read order, what goes between kernels | Stream patterns | |
| the kernel, twice: a Python model and an HLS body that must agree | Defining the kernel in Python and HLS | |
| Simulate in Python | does the design work, as part of everything around it | Simulating in Python |
| Simulate at RTL | does the hardware do what the Python does, cycle by cycle | Simulating at RTL |
| Verify | what is compared with what, and what a passing gate proves | Functional verification |
| Calibrate | how long it takes and what it costs, measured per module and composed | Timing and resources |
| Explore | which design, of the ones that work | Design-space exploration |
The HLS bodies come when the hardware does. Each kernel’s Python model is written while designing the DUT and is all pysim needs; its HLS body is first needed at Simulating at RTL, and again for the timing and resources measured from synthesis. A study that stays in Python needs none.
The steps are done module by module: any module in the design can be the design under test of its own system, its harness, so each is verified and measured alone before the whole is put together (Simulating in Python).
The running example
Every page walks the free-running polynomial: a kernel that reads a command and its samples on a stream, evaluates a polynomial, and answers on two more streams. Its arithmetic is trivial on purpose, so each page is about the flow. Where a page’s idea needs more, it takes a step up to a pipeline (block_eq) or a system on a bus (markov); the whole ladder of systems is on Simulating at RTL.
The older host-launched flow – one kernel called by a sequential Vitis testbench – is under Legacy flows. Host-activated modules are not legacy: they are devices a host launches over the bus.