diff --git a/litedram/frontend/bist.py b/litedram/frontend/bist.py index 1d620d4..7701db2 100644 --- a/litedram/frontend/bist.py +++ b/litedram/frontend/bist.py @@ -167,15 +167,14 @@ class _LiteDRAMBISTGenerator(Module): fsm.act("IDLE", If(self.start, NextValue(cmd_counter, 0), - NextState("RUN") # always send first data on `start` even without `run` signal + NextState("RUN") ), NextValue(self.ticks, 0) ) fsm.act("WAIT", If(self.run, NextState("RUN") - ), - NextValue(self.ticks, self.ticks + 1) + ) ) fsm.act("RUN", dma.sink.valid.eq(1), @@ -247,8 +246,7 @@ class _LiteDRAMPatternGenerator(Module): fsm.act("WAIT", If(self.run, NextState("RUN") - ), - NextValue(self.ticks, self.ticks + 1) + ) ) fsm.act("RUN", dma.sink.valid.eq(1),