074-dump_all: get vivado exec path from env variable

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2020-02-04 23:33:30 +01:00 committed by Keith Rothman
parent 46c28ccb91
commit 1004ad6633
1 changed files with 6 additions and 2 deletions

View File

@ -340,9 +340,13 @@ def annotate_speed_model(tile_type, reduced_tile, output_dir, root_dir):
for index in speed_model_indices:
print(index, file=f)
# Get vivado path
vivado = os.getenv('XRAY_VIVADO')
assert vivado is not None
subprocess.check_call(
"vivado -mode batch -source get_speed_model.tcl -tclargs {}".format(
tmp_indices_file),
"{} -mode batch -source get_speed_model.tcl -tclargs {}".format(
vivado, tmp_indices_file),
shell=True,
stdout=subprocess.DEVNULL)