forked from M-Labs/artiq
1
0
Fork 0

fir/ParallelHBFUpsampler: add headroom (gain=2)

This addresses part of #743
This commit is contained in:
Robert Jördens 2017-06-12 18:58:28 +02:00
parent 566ff73dff
commit 6ac9d0c41e
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class ParallelHBFUpsampler(Module):
i = [self.i] i = [self.i]
for coeff in coefficients: for coeff in coefficients:
self.parallelism *= 2 self.parallelism *= 2
hbf = ParallelFIR(coeff, self.parallelism, width, **kwargs) hbf = ParallelFIR(coeff, self.parallelism, width + 1, **kwargs)
self.submodules += hbf self.submodules += hbf
self.comb += [a.eq(b) for a, b in zip(hbf.i[::2], i)] self.comb += [a.eq(b) for a, b in zip(hbf.i[::2], i)]
i = hbf.o i = hbf.o