|
26 | 26 |
|
27 | 27 | ROOT_PATH = os.path.realpath(".")
|
28 | 28 | 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/") |
30 | 30 | COMPUTE_EXAMPLE_DIR = os.path.realpath("../../examples/05_perf/")
|
31 | 31 | DEPLOY_PROJECT_COMPUTE = os.path.join(os.getcwd(), "deploy_project_compute")
|
32 | 32 | HLS_DIR_COMPUTE = os.path.join(DEPLOY_PROJECT_COMPUTE, "hls/")
|
@@ -103,6 +103,7 @@ def linker_step(platform):
|
103 | 103 | sol1_paths = [os.path.join(d, "sol1") for d in build_dirs]
|
104 | 104 | run_linker(CONFIG_FILE_PATH_COMPUTE, sol1_paths)
|
105 | 105 | 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) |
106 | 107 | elif platform == "eth":
|
107 | 108 | print("Eth mode not supported yet.")
|
108 | 109 | else:
|
@@ -131,7 +132,7 @@ def generate_noc_solution_step(platform):
|
131 | 132 | if platform == "compute":
|
132 | 133 | os.chdir(AVED_ROOT_DIR_COMPUTE)
|
133 | 134 | 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")) |
135 | 136 | elif platform == "eth":
|
136 | 137 | print("Eth mode not supported yet.")
|
137 | 138 | else:
|
@@ -215,7 +216,7 @@ def step_index(step_id):
|
215 | 216 | # shutil.copy(os.path.join(AVED_ROOT_DIR_COMPUTE, "design.pdi"), os.path.join(ROOT_PATH, "design.pdi"))
|
216 | 217 | # # Generate NoC solution from the vivado project
|
217 | 218 | # 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")) |
219 | 220 | # elif args.platform == "eth":
|
220 | 221 | # print("Eth mode not supported yet.")
|
221 | 222 |
|
|
0 commit comments