mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #2115 from CKeilbar/soc-region-check-fix
Fix SOC region range check
This commit is contained in:
commit
8b4949edcd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue