From 33d498b8268f3ca7b488504fc4876e6078a4c4d9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 7 Feb 2020 23:11:08 +0100 Subject: [PATCH] soc_core: get_csr_address no longer used --- litex/soc/integration/soc_core.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 9f2f6c6d..3aa956ce 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -282,21 +282,6 @@ class SoCCore(SoC): self.check_io_region(name, origin, 0x800) self.csr_regions[name] = SoCCSRRegion(origin, busword, obj) - def get_csr_dev_address(self, name, memory): - if memory is not None: - name = name + "_" + memory.name_override - try: - return self.csr.locs[name] - except KeyError as e: - msg = "Undefined \"{}\" CSR.\n".format(name) - msg += "Avalaible CSRs in {} ({}):\n".format( - self.__class__.__name__, inspect.getfile(self.__class__)) - for k in sorted(self.csr.locs.keys()): - msg += "- {}\n".format(k) - raise RuntimeError(msg) - except ValueError: - return None - def build(self, *args, **kwargs): return self.platform.build(self, *args, **kwargs) -- 2.30.2