forked from M-Labs/artiq
sawg: fix PhasedAccu resets
This commit is contained in:
parent
42476c64a7
commit
78d1f0fdf6
|
@ -74,14 +74,12 @@ class PhasedAccu(Module):
|
||||||
|
|
||||||
a = MCM(width, range(parallelism + 1))
|
a = MCM(width, range(parallelism + 1))
|
||||||
self.submodules += a
|
self.submodules += a
|
||||||
z = [Signal(width) for i in range(parallelism)]
|
z = [Signal(width, reset_less=True) for i in range(parallelism)]
|
||||||
o = self.o.payload.flatten()
|
o = self.o.payload.flatten()
|
||||||
for oi in o:
|
load = Signal(reset_less=True)
|
||||||
oi.reset_less = True
|
clr = Signal(reset_less=True)
|
||||||
load = Signal()
|
|
||||||
clr = Signal()
|
|
||||||
p = Signal.like(self.i.p)
|
p = Signal.like(self.i.p)
|
||||||
f = Signal.like(self.i.f)
|
f = Signal.like(self.i.f, reset_less=True)
|
||||||
fp = Signal.like(self.i.f)
|
fp = Signal.like(self.i.f)
|
||||||
self.comb += [
|
self.comb += [
|
||||||
self.i.ack.eq(self.o.ack),
|
self.i.ack.eq(self.o.ack),
|
||||||
|
|
|
@ -56,6 +56,7 @@ class SplineParallelDUC(Module):
|
||||||
]
|
]
|
||||||
|
|
||||||
assert p.latency == 1
|
assert p.latency == 1
|
||||||
|
accu.i.clr.reset_less = True
|
||||||
self.sync += [
|
self.sync += [
|
||||||
accu.i.clr.eq(0),
|
accu.i.clr.eq(0),
|
||||||
If(p.i.stb,
|
If(p.i.stb,
|
||||||
|
|
Loading…
Reference in New Issue