mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cores/spi_flash/add_clk_primitive: return if clk primitive is not needed
This commit is contained in:
parent
462d12bacc
commit
6d54335839
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ class SpiFlashCommon(Module):
|
||||||
self.pads = pads
|
self.pads = pads
|
||||||
|
|
||||||
def add_clk_primitive(self, device):
|
def add_clk_primitive(self, device):
|
||||||
assert hasattr(self, "clk_primitive_needed")
|
if not hasattr(self, "clk_primitive_needed"):
|
||||||
|
return
|
||||||
# Xilinx 7-series
|
# Xilinx 7-series
|
||||||
if device[:3] == "xc7":
|
if device[:3] == "xc7":
|
||||||
self.specials += Instance("STARTUPE2",
|
self.specials += Instance("STARTUPE2",
|
||||||
|
|
Loading…
Reference in a new issue