From e9613499eaa40e93bb8b07f64009e22b1dfe392d Mon Sep 17 00:00:00 2001 From: Chris Keilbart Date: Mon, 4 Nov 2024 12:01:29 -0800 Subject: [PATCH] Fix SOC region range check --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index d91f7a288d..0fbc544f21 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -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