Research status
I retain this experiment as a teaching archive. I verified four fixed-weight neurons on an iCE40 target. FINN had already implemented complete binarized networks on FPGA. My result establishes the behaviour of the small circuit published here. Umuroglu et al., FINN
I fix hexadecimal weight masks B2, 69, 3C and 87 and thresholds −2, 0, 2 and 4. Each bit represents a sign. When all eight signs match the first mask, each product is +1. The sum is 8 and exceeds the threshold −2. I compare an unrolled signed sum to a tree counting matches for each mask. I check all four outputs against an independent scalar calculation on the 256 activations.
On iCE40 HX8K I obtain 4.949 ns and 41 placed cells for the tree versus 7.042 ns and 128 cells for the sum, taking medians across five seeds. I provide ten routes and an elementary check on all 65,536 input–weight pairs. My next goal is a trained layer, including weight reads, activation throughput and accuracy. From this field's ZIP I run python experience/neurones.py. Result · Next test
I retain AMD Versal AI Edge Series Gen 2 as one possible target family. AMD documents programmable logic, AI Engines and Arm cores on it. The particular intended hardware still needs identification. I would compare relevant resources at the same precision, including transfers. FINN and FINN-R are direct precedents for quantized inference. AMD · FINN · FINN-R
A trained layer exposes a sharing-cost failure
I train four bipolar thresholds on 160 synthetic inputs. All four bits are correct together on 29 of 96 held-out inputs (304 correct bits out of 384). I verify three circuits on all 256 inputs. Across five HX8K routes each, median delay and cell count are 9.296 ns and 128 for signed sums, 5.593 ns and 43 for balanced popcount, and 7.742 ns and 58 for the partition chosen among 35. Minimising distinct counters fails to beat the reference.
I hard-wire the weights and launch eight input bits for four output bits. With common register banks, a 100 MHz parallel interface can issue one vector per cycle when the selected seed meets timing. The signed sum reaches 10.052 ns on one seed. In a half-duplex scenario that sends eight bits, waits one cycle and reads four bits, all three descriptions take thirteen cycles per vector. This is a calculated interface budget. Board throughput remains unmeasured. After interrupting the default router on the fourth signed-sum seed, I used router2 for all fifteen measurements. From the kit I run python apprendre.py --rebuild YOSYS NEXTPNR --export rebuilt.json to regenerate the reports.
My next test is to route several tied partitions and compare fan-out and depth. AT.H10 · Umuroglu et al., FINN
Seven counters outperform two six-counter partitions on a frozen layer
I route three partitions of one binary layer on HX8K with five seeds each and check all 256 possible inputs. The two six-counter partitions give estimated median delays of 7.742 and 7.623 ns. The seven-counter partition gives 6.405 ns. The specialised reference achieves 5.593 ns and 43 cells against 57 for the seven-counter partition. Ports require eight input and four output bits. In my one-bit serial protocol a transaction takes thirteen cycles. These results describe place-and-route for a synthetic layer.
I plan to commit to a depth-based prediction before routing additional partitions with the same seeds. AT.H11 · Umuroglu et al., FINN
Two partitions reverse the expected ranking
I predict depths eight and seven for six and seven counters. After synthesis I get seven and eight. Across five HX8K routing seeds the median delays are 6.685 and 7.686 ns. The specialised reference remains at 5.593 ns. Output quality is identical.
Test held-out weights and a cost fixed before routing, then measure on a board. AT.H12 · Umuroglu et al., FINN
Changing weights while preserving the function up to symmetry
I complement all eight weight bits, retain thresholds and compare equivalent descriptions on HX8K across five seeds. I check all 256 outputs by conjugating the input. The minimum-counter partition uses six counters, 55 cells and a 7.686 ns median delay against 43 cells and 5.264 ns for popcount. My predicted gain fails. The transported evaluation retains 29/96 exact classes.
I will fix weights outside this symmetry and measure on a physical target when available. AT.H13 · Umuroglu et al., FINN
Testing a prediction on different binary weights
I fix weights 01, 07, 3F, FF and four thresholds of two before five HX8K placements. The pairwise weight distances differ from the previous family. Both descriptions agree on all 256 logical outputs. Popcount wins on delay for all five seeds, median 6.209 ns and 46 cells versus 6.735 ns and 44 cells. These weights classify 9 of 96 held-out inputs correctly. I measure the circuit trade-off here.
Reserve trained weights meeting an accuracy target and measure end-to-end cost. AT.H14 · Umuroglu et al., FINN