Skip to content
Snippets Groups Projects
Commit 33e5d51d authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[IPI] set vivado_proj attribute correctly at top level

parent 121bae25
No related branches found
No related tags found
No related merge requests found
......@@ -84,13 +84,11 @@ class CodeGen_ipstitch(Transformation):
# create a temporary folder for the project
vivado_proj = get_by_name(model.model.metadata_props, "vivado_proj", "key")
if vivado_proj is None:
if vivado_proj is None or not os.path.isdir(vivado_proj.value):
vivado_proj = onnx.StringStringEntryProto()
vivado_proj.key = "vivado_proj"
vivado_proj.value = ""
model.model.metadata_props.append(vivado_proj)
if not os.path.isdir(vivado_proj.value):
vivado_proj.value = tmp.mkdtemp(prefix="vivado_proj_")
model.model.metadata_props.append(vivado_proj)
vivado_proj_dir = vivado_proj.value
# start building the tcl script
tcl = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment