"csr_map_update",
"SoCCore",
"soc_core_args",
- "soc_core_argdict"
+ "soc_core_argdict",
+ "SoCMini",
+ "soc_mini_args",
+ "soc_mini_argdict",
]
# Helpers ------------------------------------------------------------------------------------------
self.comb += self.cpu.interrupt[_id].eq(module.ev.irq)
-# SoCCores arguments -------------------------------------------------------------------------------
+# SoCCore arguments --------------------------------------------------------------------------------
def soc_core_args(parser):
parser.add_argument("--cpu-type", default=None,
if arg is not None:
r[a] = arg
return r
+
+# SoCMini ---------------------------------------------------------------------------------------
+
+class SoCMini(SoCCore):
+ def __init__(self, *args, **kwargs):
+ if "cpu_type" not in kwargs.keys():
+ kwargs["cpu_type"] = None
+ if "integrated_sram_size" not in kwargs.keys():
+ kwargs["integrated_sram_size"] = 0
+ if "with_uart" not in kwargs.keys():
+ kwargs["with_uart"] = False
+ if "with_timer" not in kwargs.keys():
+ kwargs["with_timer"] = False
+
+ SoCCore.__init__(self, *args, **kwargs)
+
+# SoCMini arguments -----------------------------------------------------------------------------
+
+soc_mini_args = soc_core_args
+soc_mini_argdict = soc_core_argdict