From: Florent Kermarrec Date: Mon, 7 Oct 2019 08:37:16 +0000 (+0200) Subject: build/xilinx/vivado: add vivado_build_args/vivado_build_argdict for yosys synthesis... X-Git-Tag: 24jan2021_ls180~942 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a1cefe9464bd56a0ceac6ae3a6b0054df20d48d;p=litex.git build/xilinx/vivado: add vivado_build_args/vivado_build_argdict for yosys synthesis mode --- diff --git a/litex/build/xilinx/vivado.py b/litex/build/xilinx/vivado.py index 9546391f..01fd8075 100644 --- a/litex/build/xilinx/vivado.py +++ b/litex/build/xilinx/vivado.py @@ -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}