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.