Skip to content
hw.dev
hw.dev/signal/vhdl-polyphase-filter-bit-exact-sweep-2026
SignalVHDL Common

One Filter Test Sweeps Four Input Rates and Every Coefficient Set

VHDL Common checks a shared-multiplier filter bit for bit across coefficient sets, input rates, resets, and irregular gaps.

Thesis connection

One executable reference model now checks both filter arithmetic and the timing choices that save programmable-chip resources.

#fpga#eda#testing#verification
Read Original

The Very High Speed Integrated Circuit Hardware Description Language (VHDL) Common project added a decimate-by-two finite impulse response filter, which keeps every second output after combining recent input samples. The design can spread its arithmetic across several clock cycles, so a slower input stream needs fewer physical multipliers. That resource trade is useful only if changing the input spacing doesn't change a single output bit.

The new Cocotb bench runs every supplied coefficient set with inputs arriving every 1, 3, 4, and 16 clocks. It compares each output bit for bit with a software model, then checks output spacing, latency, irregular gaps, a reset during processing, and the number of multipliers the design instantiated. The last check matters because a functionally correct build that silently uses more multipliers has missed the reason this circuit exists.

The testing pattern applies to any generated hardware block: make the performance knob part of the test matrix and verify the promised resource change alongside the arithmetic. A team adopting this filter can now choose its input rate from measured device limits without reopening the algorithm by hand.