Atelier des rouesLab FR
Register/AT.H8
Hardware pilot on a timing model · AT.H8

Two circuits for the same four-neuron binary layer

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I assess this as a useful exact microbenchmark: the four outputs match on all 256 inputs, while the specialized counter uses 41 placed cells and has a 4.949 ns median versus 128 cells and 7.042 ns for the unfolded sum. FINN already uses XNOR, popcount and thresholding; Tanigawa et al. likewise optimize BNN counter trees. The local use is choosing an RTL for this tiny layer; the limiting test is one device and no end-to-end inference.

FINN: A Framework for Fast, Scalable Binarized Neural Network Inference — Yaman Umuroglu et al. · Efficient FPGA Implementation of Binarized Neural Networks Based on Generalized Parallel Counter Tree — Takahiro Tanigawa, Mugi Noda, Nagisa Ishiura

How I rate results

Assumptions

I fix eight bipolar inputs, four weight masks, four thresholds and two register banks. I check every activation vector.

Result

On HX8K I obtain a median of 4.949 ns and 41 placed cells for the match-count tree against 7.042 ns and 128 cells for my unrolled sum. I check all 256 vectors.

Prior work

Umuroglu et al., FINN · Blott et al., FINN-R · AMD, Versal AI Edge Series Gen 2

Next question

Extend the comparison to a trained layer including memory access costs.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.