From: Florent Kermarrec Date: Mon, 22 Jul 2019 19:55:07 +0000 (+0200) Subject: cores/spi_flash/add_clk_primitive: return if clk primitive is not needed X-Git-Tag: 24jan2021_ls180~1086 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d54335839545ebf92ff6df8190a06752dd2cde5;p=litex.git cores/spi_flash/add_clk_primitive: return if clk primitive is not needed --- diff --git a/litex/soc/cores/spi_flash.py b/litex/soc/cores/spi_flash.py index 2e40caa8..b00e6fc6 100644 --- a/litex/soc/cores/spi_flash.py +++ b/litex/soc/cores/spi_flash.py @@ -46,7 +46,8 @@ class SpiFlashCommon(Module): self.pads = pads def add_clk_primitive(self, device): - assert hasattr(self, "clk_primitive_needed") + if not hasattr(self, "clk_primitive_needed"): + return # Xilinx 7-series if device[:3] == "xc7": self.specials += Instance("STARTUPE2",