Skip to content

Commit

Permalink
frontend/dma/LitePCIeDMADescriptorSplitter: Compute length_next outsi…
Browse files Browse the repository at this point in the history
…de of FSM to improve timings.
  • Loading branch information
enjoy-digital committed Jul 4, 2024
1 parent abe9418 commit 2ba590f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litepcie/frontend/dma.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def __init__(self, max_size, address_width):
# Update address.
NextValue(source.address, source.address + max_size),
# Update length/last.
length_next.eq(length - max_size),
NextValue(length, length_next),
If(length_next > max_size,
NextValue(source.length, max_size)
Expand All @@ -248,6 +247,7 @@ def __init__(self, max_size, address_width):
)
)
)
self.comb += length_next.eq(length - max_size) # Outside of FSM for timings.

# LitePCIeDMAReader --------------------------------------------------------------------------------

Expand Down

0 comments on commit 2ba590f

Please sign in to comment.