Skip to content
hw.dev
hw.dev/signal/tiny-kws-pico-icesugar-372-frames-2026
Signaltiny_kws

A Pico Bench Checks 372 FPGA Inference Frames Bit for Bit

A Pico 2 W now checks an iCE40 keyword detector across 372 frames and reports every memory-bus mismatch.

Thesis connection

A physical bench can now prove that the programmable chip matches its software model before anyone tunes the live microphone.

#fpga#embedded#testing#verification
Read Original

tiny_kws put the same keyword detector on two small targets: a Raspberry Pi Pico 2 W microcontroller and an iCE40 field-programmable gate array (FPGA), a chip whose logic can be rewired after manufacturing. The FPGA bench uses a second Pico to imitate external memory and feed known inputs into the detector. Its main test produced bit-for-bit matches on all 372 inference frames, then matched the complete audio path from raw samples through the final classification.

That memory emulator makes failures local. It records every clock edge and compares the bytes on the physical bus with the model weights that should have crossed it. The project found short clock spikes that shifted those bytes, added a hold-off filter, and kept an A/B test that runs the same frame with the filter disabled and enabled. An engineer can now distinguish wrong arithmetic from a wiring or timing fault without probing the whole design by hand.

This is a useful pattern for teams moving an algorithm from software into programmable logic: keep one cheap board beside the FPGA as a programmable source, memory stand-in, and recorder. The bench still can't prove live-microphone accuracy, but it can remove the digital implementation and board link from the list of suspects before that tuning starts.