From: Florent Kermarrec Date: Mon, 24 Apr 2017 17:12:30 +0000 (+0200) Subject: soc/integration/builder.py: don't take care of ROM when compile_software is forced... X-Git-Tag: 24jan2021_ls180~1865 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0800d25a69948549390a8168a939b066cca85a4;p=litex.git soc/integration/builder.py: don't take care of ROM when compile_software is forced to False --- diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index d97d3715..4ff9bbb9 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -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")