Fix SOC region range check

This commit is contained in:
Chris Keilbart 2024-11-04 12:01:29 -08:00
parent 0170462fe8
commit e9613499ea
1 changed files with 1 additions and 1 deletions

View File

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