From: Tim 'mithro' Ansell Date: Fri, 26 Apr 2019 22:08:07 +0000 (-0500) Subject: Work with no `cpu_variant` provided. X-Git-Tag: 24jan2021_ls180~1265^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71a837315acd8a3d4e3e92baa8db9e381edc189b;p=litex.git Work with no `cpu_variant` provided. --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index f9507b73..c5fe7ad2 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -202,6 +202,8 @@ class SoCCore(Module): self.cpu_type = cpu_type # Support the old style which used underscore for separator + if cpu_variant is None: + cpu_variant = "standard" cpu_variant = cpu_variant.replace('_', '+') # Check for valid CPU variants. cpu_variant_processor, *cpu_variant_ext = cpu_variant.split('+')