lpddr4/utils: simplify ConstBitSlip

This commit is contained in:
Jędrzej Boczar 2021-03-24 13:08:51 +01:00
parent e860d86f3f
commit e07198ac57
1 changed files with 1 additions and 4 deletions

View File

@ -42,10 +42,7 @@ class ConstBitSlip(Module):
self.r = r = Signal((cycles+1)*dw, reset_less=True)
self.sync += r.eq(Cat(r[dw:], self.i))
cases = {}
for i in range(cycles*dw):
cases[i] = self.o.eq(r[i+1:dw+i+1])
self.comb += Case(slp, cases)
self.comb += self.o.eq(r[slp+1:dw+slp+1])
# TODO: rewrite DQSPattern in litedram/common.py to support different data widths
class DQSPattern(Module):