Skip to content

Commit

Permalink
Merge pull request #2115 from CKeilbar/soc-region-check-fix
Browse files Browse the repository at this point in the history
Fix SOC region range check
  • Loading branch information
enjoy-digital authored Nov 6, 2024
2 parents de9d3ab + e961349 commit 8b4949e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def check_region_is_in(self, region, container):
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

Expand Down

0 comments on commit 8b4949e

Please sign in to comment.