Work with no `cpu_variant` provided.

This commit is contained in:
Tim 'mithro' Ansell 2019-04-26 17:08:07 -05:00
parent 65650919a7
commit 71a837315a
1 changed files with 2 additions and 0 deletions

View 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('+')