From 7c5e1e79da5fcd898cd5e94268f79459de6469bd Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 14 Apr 2020 12:51:25 +0200 Subject: [PATCH] frontend/bist: remove wrong comment and don't increment ticks when waiting. --- litedram/frontend/bist.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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),