from litex.soc.interconnect import wishbone, csr_bus, wishbone2csr
-__all__ = ["mem_decoder", "get_mem_data", "SoCCore", "soc_core_args", "soc_core_argdict"]
+__all__ = [
+ "mem_decoder",
+ "get_mem_data",
+ "csr_map_update",
+ "SoCCore",
+ "soc_core_args",
+ "soc_core_argdict"
+]
def version(with_time=True):
del __readonly__
+def csr_map_update(csr_map, csr_peripherals):
+ csr_map.update(dict((n, v)
+ for v, n in enumerate(csr_peripherals, start=max(csr_map.values()) + 1)))
+
+
class SoCController(Module, AutoCSR):
def __init__(self):
self._reset = CSR()