mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
align fixup
This commit is contained in:
parent
72ec359f52
commit
647504d4c5
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ class SoCBusHandler(LiteXModule):
|
|||
while (origin + size) < (search_region.origin + search_region.size_pow2):
|
||||
# Align Origin on Size.
|
||||
if (origin%size_pow2):
|
||||
origin += (origin - origin%size_pow2)
|
||||
origin += (size_pow2 - origin%size_pow2)
|
||||
continue
|
||||
# Create a Candidate.
|
||||
candidate = SoCRegion(origin=origin, size=size, cached=cached)
|
||||
|
|
Loading…
Reference in a new issue