frontend/bist: remove wrong comment and don't increment ticks when waiting.

This commit is contained in:
Florent Kermarrec 2020-04-14 12:51:25 +02:00
parent 4dbb5b1cbb
commit 7c5e1e79da
1 changed files with 3 additions and 5 deletions

View File

@ -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),