Add 'lse' as a --synth-mode option with Radiant.

Signed-off-by: Tim Callahan <tcal@google.com>
This commit is contained in:
Tim Callahan 2021-05-01 21:12:56 -07:00
parent fb8f45be73
commit dcd13d27ef
1 changed files with 2 additions and 1 deletions

View File

@ -121,12 +121,13 @@ def _build_pdc(named_sc, named_pc, clocks, vns, build_name):
def _build_tcl(device, sources, vincpaths, build_name, pdc_file, synth_mode): def _build_tcl(device, sources, vincpaths, build_name, pdc_file, synth_mode):
tcl = [] tcl = []
# Create project # Create project
syn = "lse" if synth_mode == "lse" else "synplify"
tcl.append(" ".join([ tcl.append(" ".join([
"prj_create", "prj_create",
"-name \"{}\"".format(build_name), "-name \"{}\"".format(build_name),
"-impl \"impl\"", "-impl \"impl\"",
"-dev {}".format(device), "-dev {}".format(device),
"-synthesis \"synplify\"" "-synthesis \"" + syn + "\""
])) ]))
def tcl_path(path): return path.replace("\\", "/") def tcl_path(path): return path.replace("\\", "/")