mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #1691 from jersey99/clock-keep-optional
Clock keep optional for XilinxPlatform
This commit is contained in:
commit
a4eac2d360
2 changed files with 2 additions and 3 deletions
|
@ -84,11 +84,11 @@ class XilinxPlatform(GenericPlatform):
|
||||||
def build(self, *args, **kwargs):
|
def build(self, *args, **kwargs):
|
||||||
return self.toolchain.build(self, *args, **kwargs)
|
return self.toolchain.build(self, *args, **kwargs)
|
||||||
|
|
||||||
def add_period_constraint(self, clk, period):
|
def add_period_constraint(self, clk, period, keep=True):
|
||||||
if clk is None: return
|
if clk is None: return
|
||||||
if hasattr(clk, "p"):
|
if hasattr(clk, "p"):
|
||||||
clk = clk.p
|
clk = clk.p
|
||||||
self.toolchain.add_period_constraint(self, clk, period)
|
self.toolchain.add_period_constraint(self, clk, period, keep=keep)
|
||||||
|
|
||||||
def add_false_path_constraint(self, from_, to):
|
def add_false_path_constraint(self, from_, to):
|
||||||
if hasattr(from_, "p"):
|
if hasattr(from_, "p"):
|
||||||
|
|
|
@ -386,7 +386,6 @@ class XilinxVivadoToolchain(GenericToolchain):
|
||||||
if tools.subprocess_call_filtered(shell + [script], common.colors) != 0:
|
if tools.subprocess_call_filtered(shell + [script], common.colors) != 0:
|
||||||
raise OSError("Error occured during Vivado's script execution.")
|
raise OSError("Error occured during Vivado's script execution.")
|
||||||
|
|
||||||
|
|
||||||
def vivado_build_args(parser):
|
def vivado_build_args(parser):
|
||||||
toolchain_group = parser.add_argument_group(title="Vivado toolchain options")
|
toolchain_group = parser.add_argument_group(title="Vivado toolchain options")
|
||||||
toolchain_group.add_argument("--synth-mode", default="vivado", help="Synthesis mode (vivado or yosys).")
|
toolchain_group.add_argument("--synth-mode", default="vivado", help="Synthesis mode (vivado or yosys).")
|
||||||
|
|
Loading…
Reference in a new issue