mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/xilinx/ise/add_period_constraint: Add keep parameter.
This commit is contained in:
parent
f5a9efd8ba
commit
54192651d8
1 changed files with 3 additions and 2 deletions
|
@ -205,11 +205,12 @@ bitgen {bitgen_opt} {build_name}.ncd {build_name}.bit{fail_stmt}
|
|||
# constraints and other constraints otherwise it will be unable to trace
|
||||
# them through clock objects like DCM and PLL objects.
|
||||
|
||||
def add_period_constraint(self, platform, clk, period):
|
||||
def add_period_constraint(self, platform, clk, period, keep=True):
|
||||
if clk is None:
|
||||
return
|
||||
if hasattr(clk, "p"):
|
||||
clk = clk.p
|
||||
if keep:
|
||||
clk.attr.add("keep")
|
||||
platform.add_platform_command(
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue