From 1d450bac572ec3b97f3e0871441e7f5191c7d40c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 8 Oct 2020 19:40:40 +0200 Subject: [PATCH] common/BitSlip: reset value to value.reset. --- litedram/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/common.py b/litedram/common.py index f7eb088..10d8eeb 100644 --- a/litedram/common.py +++ b/litedram/common.py @@ -128,7 +128,7 @@ class BitSlip(Module): value = Signal(max=cycles*dw, reset=cycles*dw-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) self.sync += r.eq(Cat(r[dw:], self.i))