Merge pull request #2115 from CKeilbar/soc-region-check-fix

Fix SOC region range check
This commit is contained in:
enjoy-digital 2024-11-06 22:29:05 +01:00 committed by GitHub
commit 8b4949edcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ class SoCBusHandler(LiteXModule):
is_in = True
if not (region.origin >= container.origin):
is_in = False
if not ((region.origin + region.size) < (container.origin + container.size)):
if not ((region.origin + region.size) <= (container.origin + container.size)):
is_in = False
return is_in