common/BitSlip: reset value to value.reset.

This commit is contained in:
Florent Kermarrec 2020-10-08 19:40:40 +02:00
parent 9787b868e8
commit 1d450bac57
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class BitSlip(Module):
value = Signal(max=cycles*dw, reset=cycles*dw-1) value = Signal(max=cycles*dw, reset=cycles*dw-1)
self.sync += If(self.slp, value.eq(value + 1)) self.sync += If(self.slp, value.eq(value + 1))
self.sync += If(self.rst, value.eq(0)) self.sync += If(self.rst, value.eq(value.reset))
r = Signal((cycles+1)*dw, reset_less=True) r = Signal((cycles+1)*dw, reset_less=True)
self.sync += r.eq(Cat(r[dw:], self.i)) self.sync += r.eq(Cat(r[dw:], self.i))