diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index d91f7a288..0fbc544f2 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -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