mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
frotend/wishbone: avoid NextValue(count, 0) duplication
This commit is contained in:
parent
721c84bad0
commit
6f35465c0b
1 changed files with 1 additions and 2 deletions
|
@ -56,11 +56,10 @@ class LiteDRAMWishbone2Native(Module):
|
|||
If(port.cmd.valid & port.cmd.ready,
|
||||
NextValue(count, count + 1),
|
||||
If(count == (ratio - 1),
|
||||
NextValue(count, 0),
|
||||
If(wishbone.we,
|
||||
NextValue(count, 0),
|
||||
NextState("WAIT-WRITE")
|
||||
).Else(
|
||||
NextValue(count, 0),
|
||||
NextState("WAIT-READ")
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue