From 6d54335839545ebf92ff6df8190a06752dd2cde5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 22 Jul 2019 21:55:07 +0200 Subject: [PATCH] cores/spi_flash/add_clk_primitive: return if clk primitive is not needed --- litex/soc/cores/spi_flash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", -- 2.30.2