align fixup

This commit is contained in:
Arne Jansen 2023-01-30 07:46:37 +01:00
parent 72ec359f52
commit 647504d4c5
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class SoCBusHandler(LiteXModule):
while (origin + size) < (search_region.origin + search_region.size_pow2): while (origin + size) < (search_region.origin + search_region.size_pow2):
# Align Origin on Size. # Align Origin on Size.
if (origin%size_pow2): if (origin%size_pow2):
origin += (origin - origin%size_pow2) origin += (size_pow2 - origin%size_pow2)
continue continue
# Create a Candidate. # Create a Candidate.
candidate = SoCRegion(origin=origin, size=size, cached=cached) candidate = SoCRegion(origin=origin, size=size, cached=cached)