Skip to content
Snippets Groups Projects
Unverified Commit 1d60ec65 authored by auphelia's avatar auphelia Committed by GitHub
Browse files

Merge pull request #711 from Xilinx/fix/vitisbuild

[Fix] VitisBuild
parents 2d63a2a5 b23f0eb9
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,7 @@ class Floorplan(Transformation):
node_inst.set_nodeattr("partition_id", partition_cnt)
partition_cnt += 1
continue
elif not (
node.op_type == "MatrixVectorActivation"
and node_inst.get_nodeattr("mem_mode") is not None
......@@ -165,9 +166,17 @@ class Floorplan(Transformation):
pre_inst = getCustomOp(pre_node)
pre_slr = pre_inst.get_nodeattr("slr")
if node_slr == pre_slr:
partition_id = pre_inst.get_nodeattr("partition_id")
node_inst.set_nodeattr("partition_id", partition_id)
break
axilite_intf_name = pre_inst.get_verilog_top_module_intf_names()[
"axilite"
]
if len(axilite_intf_name) != 0:
node_inst.set_nodeattr("partition_id", partition_cnt)
partition_cnt += 1
else:
partition_id = pre_inst.get_nodeattr("partition_id")
node_inst.set_nodeattr("partition_id", partition_id)
break
else:
# no matching, new partition
node_inst.set_nodeattr("partition_id", partition_cnt)
......
......@@ -64,7 +64,11 @@ class HLSSynthIP(NodeLocalTransformation):
), """Node
attribute "code_gen_dir_ipgen" is empty. Please run
transformation PrepareIP first."""
if not os.path.isdir(inst.get_nodeattr("ipgen_path")):
if not os.path.isdir(
inst.get_nodeattr("ipgen_path")
) or not inst.get_nodeattr("code_gen_dir_ipgen") in inst.get_nodeattr(
"ipgen_path"
):
# call the compilation function for this node
inst.ipgen_singlenode_code()
else:
......
......@@ -46,7 +46,11 @@ def _codegen_single_node(node, model, fpgapart, clk):
# get the path of the code generation directory
code_gen_dir = inst.get_nodeattr("code_gen_dir_ipgen")
# ensure that there is a directory
if code_gen_dir == "" or not os.path.isdir(code_gen_dir):
if (
code_gen_dir == ""
or not os.path.isdir(code_gen_dir)
or not str(node.name) in code_gen_dir
):
code_gen_dir = make_build_dir(
prefix="code_gen_ipgen_" + str(node.name) + "_"
)
......
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