liteeth: fix cnt_inc in IDLE state (we should wait sop to inc counter)
This commit is contained in:
parent
5dbd8af4be
commit
360c849f21
|
@ -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 New Issue