Skip to content

Commit af1b9dc

Browse files
committed
Fixed missing script copy.
1 parent 7873d17 commit af1b9dc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

deploy/base_pdi/build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
ROOT_PATH = os.path.realpath(".")
2828
DESIGN_PDI_PATH = os.path.join(ROOT_PATH, "..")
29-
NOC_SOLUTION_PATH = os.path.realpath("../../submodules/v80-vitis-flow/resources/")
29+
RESOURCES_PATH = os.path.realpath("../../submodules/v80-vitis-flow/resources/")
3030
COMPUTE_EXAMPLE_DIR = os.path.realpath("../../examples/05_perf/")
3131
DEPLOY_PROJECT_COMPUTE = os.path.join(os.getcwd(), "deploy_project_compute")
3232
HLS_DIR_COMPUTE = os.path.join(DEPLOY_PROJECT_COMPUTE, "hls/")
@@ -103,6 +103,7 @@ def linker_step(platform):
103103
sol1_paths = [os.path.join(d, "sol1") for d in build_dirs]
104104
run_linker(CONFIG_FILE_PATH_COMPUTE, sol1_paths)
105105
shutil.copy(os.path.join(LINKER_BUILD_DIR_COMPUTE, "run_pre.tcl"), AVED_SRC_DIR_COMPUTE)
106+
shutil.copy(os.path.join(RESOURCES_PATH, "run_post.tcl"), AVED_SRC_DIR_COMPUTE)
106107
elif platform == "eth":
107108
print("Eth mode not supported yet.")
108109
else:
@@ -131,7 +132,7 @@ def generate_noc_solution_step(platform):
131132
if platform == "compute":
132133
os.chdir(AVED_ROOT_DIR_COMPUTE)
133134
subprocess.run(["vivado", "-mode", "tcl", "-source", "src/export_noc.tcl"], check=True)
134-
shutil.copy(os.path.join(AVED_ROOT_DIR_COMPUTE, "noc_sol.ncr"), os.path.join(NOC_SOLUTION_PATH, "noc_sol_compute.ncr"))
135+
shutil.copy(os.path.join(AVED_ROOT_DIR_COMPUTE, "noc_sol.ncr"), os.path.join(RESOURCES_PATH, "noc_sol_compute.ncr"))
135136
elif platform == "eth":
136137
print("Eth mode not supported yet.")
137138
else:
@@ -215,7 +216,7 @@ def step_index(step_id):
215216
# shutil.copy(os.path.join(AVED_ROOT_DIR_COMPUTE, "design.pdi"), os.path.join(ROOT_PATH, "design.pdi"))
216217
# # Generate NoC solution from the vivado project
217218
# subprocess.run(["vivado", "-mode", "batch", "-source", "export_noc.tcl"], check=True)
218-
# shutil.copy(os.path.join(AVED_ROOT_DIR_COMPUTE, "noc_sol.ncr"), os.path.join(NOC_SOLUTION_PATH, "noc_sol_compute.ncr"))
219+
# shutil.copy(os.path.join(AVED_ROOT_DIR_COMPUTE, "noc_sol.ncr"), os.path.join(RESOURCES_PATH, "noc_sol_compute.ncr"))
219220
# elif args.platform == "eth":
220221
# print("Eth mode not supported yet.")
221222

0 commit comments

Comments
 (0)