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

[CodeGen] change default dirs to use node names instead of types

parent 839d6de5
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ def _codegen_single_node(node, model, fpgapart, clk):
# ensure that there is a directory
if code_gen_dir == "" or not os.path.isdir(code_gen_dir):
code_gen_dir = make_build_dir(
prefix="code_gen_ipgen_" + str(node.op_type) + "_"
prefix="code_gen_ipgen_" + str(node.name) + "_"
)
inst.set_nodeattr("code_gen_dir_ipgen", code_gen_dir)
# ensure that there is generated code inside the dir
......
......@@ -46,7 +46,7 @@ def _codegen_single_node(node, model):
# ensure that there is a directory
if code_gen_dir == "" or not os.path.isdir(code_gen_dir):
code_gen_dir = make_build_dir(
prefix="code_gen_npysim_" + str(node.op_type) + "_"
prefix="code_gen_npysim_" + str(node.name) + "_"
)
inst.set_nodeattr("code_gen_dir_npysim", code_gen_dir)
# ensure that there is generated code inside the dir
......
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