From 6ac9d0c41efba9d9a6f85754b8ec131a9e74f0cc Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 12 Jun 2017 18:58:28 +0200 Subject: [PATCH] fir/ParallelHBFUpsampler: add headroom (gain=2) This addresses part of #743 --- artiq/gateware/dsp/fir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gateware/dsp/fir.py b/artiq/gateware/dsp/fir.py index 2753b81bc..d6a4b1ff2 100644 --- a/artiq/gateware/dsp/fir.py +++ b/artiq/gateware/dsp/fir.py @@ -156,7 +156,7 @@ class ParallelHBFUpsampler(Module): i = [self.i] for coeff in coefficients: self.parallelism *= 2 - hbf = ParallelFIR(coeff, self.parallelism, width, **kwargs) + hbf = ParallelFIR(coeff, self.parallelism, width + 1, **kwargs) self.submodules += hbf self.comb += [a.eq(b) for a, b in zip(hbf.i[::2], i)] i = hbf.o