Work with no `cpu_variant` provided.
authorTim 'mithro' Ansell <me@mith.ro>
Fri, 26 Apr 2019 22:08:07 +0000 (17:08 -0500)
committerTim 'mithro' Ansell <me@mith.ro>
Fri, 26 Apr 2019 22:44:36 +0000 (17:44 -0500)
litex/soc/integration/soc_core.py

index f9507b731d1262baa6bc484d9469f7bf35850b54..c5fe7ad2fe12f46979e6be04e9f7dff82ab5f066 100644 (file)
@@ -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('+')