soc_core: convert cpu_type="None" string to None
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 20 Nov 2018 16:45:11 +0000 (17:45 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 20 Nov 2018 16:45:11 +0000 (17:45 +0100)
litex/soc/integration/soc_core.py

index 8e91d31c1b181f05cec980926128330787e4b71e..9cf3ea061d8efc105834f7846ce5ef0000c9110e 100644 (file)
@@ -124,6 +124,8 @@ class SoCCore(Module):
         self.platform = platform
         self.clk_freq = clk_freq
 
+        if cpu_type == "None":
+            cpu_type = None
         self.cpu_type = cpu_type
         self.cpu_variant = cpu_variant
         if integrated_rom_size: