mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
liteeth: fix cnt_inc in IDLE state (we should wait sop to inc counter)
This commit is contained in:
parent
5dbd8af4be
commit
360c849f21
1 changed files with 2 additions and 2 deletions
|
@ -69,10 +69,10 @@ class LiteEthMACSRAMWriter(Module, AutoCSR):
|
|||
self.submodules += fsm
|
||||
|
||||
fsm.act("IDLE",
|
||||
inc_cnt.eq(sink.stb),
|
||||
If(sink.stb & sink.sop,
|
||||
ongoing.eq(1),
|
||||
If(fifo.sink.ack,
|
||||
ongoing.eq(1),
|
||||
inc_cnt.eq(1),
|
||||
NextState("WRITE")
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue