soc/integration/builder.py: don't take care of ROM when compile_software is forced...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 24 Apr 2017 17:12:30 +0000 (19:12 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 24 Apr 2017 17:12:30 +0000 (19:12 +0200)
litex/soc/integration/builder.py

index d97d37151a51f8c24672b9e9a5e8cda5779983a2..4ff9bbb930b64ceed575b332602eb9a0471cd576 100644 (file)
@@ -142,8 +142,8 @@ class Builder:
 
         os.makedirs(self.output_dir, exist_ok=True)
 
-        if self.soc.cpu_type is not None:
-            if self.soc.integrated_rom_size and not self.compile_software:
+        if self.soc.cpu_type is not None and self.compile_software:
+            if self.soc.integrated_rom_size:
                 raise ValueError("Software must be compiled in order to "
                                  "intitialize integrated ROM")