EHLS.Device behaviour (Elixir HLS v0.1.0)

Copy Markdown View Source

A device backend: the FPGA family. It acts inside the compile: the buffers cut a kernel's combinational paths where its estimated delay exceeds the budget (priv/pipeline_buffers.py).

Summary

Callbacks

Delay budget in ns per register stage (PIPE_BUDGET overrides it).

The delay model, ns: "shift" / "add" / "mul" ([base, per bit]; shifts by a constant are wires), "logic", "select", "div_per_bit", "other" (one number each).

The short name (EHLS_DEVICE).

Callbacks

budget()

@callback budget() :: number()

Delay budget in ns per register stage (PIPE_BUDGET overrides it).

delay_model()

@callback delay_model() :: map()

The delay model, ns: "shift" / "add" / "mul" ([base, per bit]; shifts by a constant are wires), "logic", "select", "div_per_bit", "other" (one number each).

name()

@callback name() :: String.t()

The short name (EHLS_DEVICE).