Launch offer: your first standard compile (€500) is free. Join waitlist →

Fish blog

Build notes on compiling ONNX models for FPGAs.

Join the waitlist

Get Fish build notes and an email when the first free standard compiles are available.

We send one confirmation email first. Unsubscribe at any time. See Privacy.

Build notes

What to check before compiling an ONNX model for an FPGA

Start with the model’s operations. An ONNX export can be valid and still contain an operation or tensor shape the compiler cannot lower. Finding those blockers early gives you time to adjust the export before you try to build the design.

Then consider the board. The number of multiply-accumulate operations gives you a sense of the compute workload. The design also needs room for weights, intermediate tensors, and the compute core. Those resource requirements help explain why two models with a similar compute count can fit on different boards.

Finally, decide what you’ll verify in simulation. Fish targets int8 inference, so a bit-exact testbench checks the generated hardware against the quantized reference. Comparing that reference with the original model helps you assess the effect of quantization separately.