FAILURE MAP
← Case archive

FA-91800 / Digital signal filters / Member archive

Q15 FIR clips negative overflow without counting it · case 05

A negative full-scale burst reports zero saturations.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Input [coeffs, samples] as Q15 integers. Each output accumulates the full-precision products c_k x[n-k] (zero history) in a wide accumulator, then rounds once (add 2**14, arithmetic shift 15) and saturates to int16. Return {"y": outputs, "saturations": number of clipped outputs}.

Why this case matters

DSP MAC units keep guard bits and round once; per-product rounding or missing overflow accounting degrades fixed-point FIRs.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: negative overflow{"saturations": 0, "y": [-32767, -32768]}{"saturations": 1, "y": [-32767, -32768]}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗