build/xilinx/vivado: add vivado_build_args/vivado_build_argdict for yosys synthesis mode

This commit is contained in:
Florent Kermarrec 2019-10-07 10:37:16 +02:00
parent 3e22d4b9e6
commit 4a1cefe946
1 changed files with 7 additions and 0 deletions

View File

@ -270,3 +270,10 @@ class XilinxVivadoToolchain:
def add_false_path_constraint(self, platform, from_, to):
if (to, from_) not in self.false_paths:
self.false_paths.add((from_, to))
def vivado_build_args(parser):
parser.add_argument("--synth-mode", default=None, help="synthesis mode (vivado or yosys)")
def vivado_build_argdict(args):
return {"synth_mode": args.synth_mode}