def METHOD_NAME(self, name, address, interface, size=0x10000000):
    compat_notice("SoCCore.register_mem", date="2022-11-03", info="Switch to SoC.bus.add_slave(...)")
    from litex.soc.integration.soc import SoCRegion
    self.bus.add_slave(name, interface, SoCRegion(origin=address, size=size))