diff --git a/misoclib/soc/__init__.py b/misoclib/soc/__init__.py index babd6624c..52e93dd87 100644 --- a/misoclib/soc/__init__.py +++ b/misoclib/soc/__init__.py @@ -160,7 +160,7 @@ class SoC(Module): return self._csr_regions def do_finalize(self): - registered_mems = [regions[0] for regions in self._memory_regions] + registered_mems = {regions[0] for regions in self._memory_regions} if self.cpu_type != "none": for mem in "rom", "sram": if mem not in registered_mems: