Glossary

The terms the guide uses for what Waveflow builds and simulates, each with its class and the page that defines it. How they fit together – the three levels of simulation, the layer around the DUT, the DUT’s tree – is Waveflow Architecture.

What is simulated

term what it is class defined on
golden the operation as pure, bit-exact, untimed functions; every level is checked against it – The DUT
simulation (pysim) a discrete-event simulation of any collection of SimObjs Simulation Simulating in Python
SimObj anything that takes part in a simulation; every module is one SimObj Simulation
system a simulation with one module named the DUT, so it can also run at RTL HwSystem(sim, dut) Simulating at RTL
DUT the design under test: what is synthesized. One module, or a DutTop grouping several with the interfaces between them DutTop Designing the DUT
testbench everything in a system outside the DUT; every part needs an RTL twin – Simulating at RTL
twin the C++ model that stands for a testbench part at RTL: a stream driver’s AxisMaster, a host’s C++ program – BFM testbenches
harness a system generated around one module: a stand-in at each port playing the module’s workload harness(Module, workload=...) The cut
workload a module’s named scenarios: the bursts its harness plays at each input workload(kind) Simulating in Python
host software that drives the hardware over the bus: Python threads in pysim, a C++ program at RTL. Testbench, not DUT SwHost Software threads

What is built

term what it is class defined on
module typed ports and a behavior: one Python class that is both the model and the source of the hardware HwModule Hardware modules
free-running no host starts it: it runs forever, waits on its input streams and acts on each message, one firing each. The default kind FreeRunMod Kernels
host-activated module launched by a host over a register map (ap_start), runs on_start once per launch. Only when the design asks for a launch HostActivated Sequential flow
leaf a kernel with its own body, run_iter: one firing, the work on one message; one hls::task FreeRunMod Kernels
composite a kernel with child kernels (add_comp) wired by streams (add_if) and no body; a task per child. A body or children, never both FreeRunMod Kernels
kernel a FreeRunMod whose interfaces are all streams: a component of the hardware, described by its operation; a leaf or a composite of kernels; yours or the library’s FreeRunMod Kernels
HLS body a kernel’s C++, the second copy of its behavior, named by kernel_task() KernelTask Defining the kernel
plain module a behavioral model Waveflow does not generate (a converter, a channel, a memory model) HwModule Hardware modules
adaptor a module with streams on one side and something that is not a stream on the other: memory through m_axi, a bus slave, an RF converter – Devices and the DUT
slave adaptor the adaptor a bus master reaches a kernel through: a front and its views. Framework Verilog at RTL, because Vitis HLS cannot generate an AXI4-full slave MemSlaveAdaptor AXI-MM slave
view one way a kernel is reached over the bus, one window of addresses: a queue in or out, a register bank, a BRAM window, a credit queue. Declared on the kernel’s class in mm_views QueueIn, QueueOut, RegBank, BramWindow, CreditIn Slave adaptor views
front the one part of a slave adaptor that speaks AXI; it passes each beat to the view its address falls in axi_slave_front.v AXI-MM slave
device one or more kernels and the adaptors that join them to the world that is not streams; with no adaptor, just its kernels. One sub-top in the Verilog, one IP when packaged MmSlaveDevice (the bus case), from build_mm_device(kernel) Devices and the DUT
library block a kernel or device Waveflow ships for reuse (SsrFft, SystolicEngine, VecUnit, the memory adaptors, …), each with the state of its timing and resource models – Library blocks and their models
bus writer a module that writes onto the bus for a kernel, brought by a credit stream routed across the bus – Credit stream
memory reader / writer adaptors on the master side: a command in on a stream, the data moved between memory and a stream through m_axi. HLS, provided by Waveflow MemRStream, MemWStream AXI-MM master
memory DDR or on-chip memory in a system, with its own front and window when a bus reaches it MemoryMod Memory Modeling
crossbar the AXI bus joining hosts, devices and memories by an address map. An interface in Python; AMD’s axi_crossbar at RTL AXIMMCrossBarIF Simulating at RTL
HLS top the part of a device Vitis synthesizes: its kernels and its HLS adaptors (memory readers and writers, bus writers), a task per leaf – Devices and the DUT
sub-top a device’s Verilog module: its HLS top and its RTL parts (fronts, views) wired together; one IP. Derived, never written SystemTopSpec Devices and the DUT
DUT tree the DUT as devices, memories and the interconnect between them; the same in pysim and at RTL DutTop Devices and the DUT

What joins them, and what travels

term what it is class defined on
interface a typed connection between two modules, or between the DUT and its testbench Interface Interfaces
port (endpoint) one end of an interface on a module, a master or a slave (m_out, s_in) add_endpoint Defining the kernel
stream messages in order, each delivered once; framed when TLAST ends each message StreamIF, FramedStreamIFSlave / Master Streams
credit stream a stream whose producer may not overrun a queue across the bus CreditStreamIF Credit stream
BRAM a memory shared by address: storage, not an event BramIF BRAM
interrupt “something is ready”, from a view to a host IrqIF Interrupts
schema a message’s fields, once, in Python; generated C++ packs every word on both sides DataSchema, DataList, DataArray Data schemas
command, response, status the default protocol: a command carrying tx_id and n, the results headed by a response echoing them, one status per command on its own stream – Command-response

Sharing a kernel

term what it is class defined on
shared kernel a kernel used by several clients, or whose output comes back to its own input; the expensive unit kept busy with independent jobs – Sharing a kernel
client a stream of jobs that a shared kernel serves: another kernel, a channel, or the kernel’s own feedback – Sharing a kernel
arbiter the block that merges several clients’ frames into one stream, a whole frame at a time, by strict priority or round-robin; it names the winner on a side stream StreamArbiter StreamArbiter
demux the block that returns each frame to its client, by the arbiter’s index or a header field StreamDemux StreamDemux
tag what says whose a frame is: one word a frame on a side stream beside the kernel (the arbiter’s index, a job id and pass), or a field in the frame’s header – Sharing a kernel
credit (end to end) a token that admits one job into a loop; the stage where a job leaves returns it. Bounds what each link of the loop must hold. Not a CreditStreamIF, which is a window on one bus link – Sharing a kernel
slot storage at the shared kernel holding data loaded once (a filter, a matrix), so only commands naming the slot travel – Sharing a kernel
feedback frame a frame a later stage sends back into the shared kernel for another pass; announced only once complete – Sharing a kernel

Words used loosely

  • Module and kernel. Every kernel is a module; not every module is a kernel. A kernel’s interfaces are all streams. An adaptor (a memory reader, a slave adaptor), a memory model, a channel and a host are modules, not kernels.
  • Device and composite. A composite kernel contains only kernels. Add an adaptor – a memory reader, a slave adaptor – and the whole is a device, not a kernel. Every DUT is made of devices, even when a device is one kernel and nothing else.
  • Adaptor and view. A slave adaptor holds one or more views behind one front. A memory reader or writer is an adaptor too, on the master side.
  • HLS top and sub-top. The HLS top is what Vitis synthesizes; the sub-top is the device’s whole Verilog, the HLS top plus RTL. With no RTL adaptor, they are the same.