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

[Refactor] derive hlslib location dynamically from env.var.

this will allow generated HLS ipgen folders to be executable outside
the container by setting up the FINN_ROOT env.var.
parent 5ee13e26
No related branches found
No related tags found
No related merge requests found
......@@ -300,8 +300,6 @@ class HLSCustomOp(CustomOp):
self.code_gen_dict["$PROJECTNAME$"] = ["project_{}".format(node.name)]
self.code_gen_dict["$HWSRCDIR$"] = [code_gen_dir]
self.code_gen_dict["$FPGAPART$"] = [fpgapart]
self.code_gen_dict["$FINNHLSLIBDIR$"] = ["/workspace/finn-hlslib"]
self.code_gen_dict["$FINNHLSCUSTOMDIR$"] = ["/workspace/finn/custom_hls"]
self.code_gen_dict["$TOPFXN$"] = [node.name]
self.code_gen_dict["$CLKPERIOD$"] = [str(clk)]
self.code_gen_dict["$DEFAULT_DIRECTIVES$"] = self.ipgen_default_directives()
......
......@@ -86,10 +86,10 @@ puts "HLS project: $config_proj_name"
set config_hwsrcdir "$HWSRCDIR$"
puts "HW source dir: $config_hwsrcdir"
set config_proj_part "$FPGAPART$"
set config_bnnlibdir "$FINNHLSLIBDIR$"
set config_customhlsdir "$FINNHLSCUSTOMDIR$"
set config_bnnlibdir "$::env(FINN_ROOT)/finn-hlslib"
puts "finn-hlslib dir: $config_bnnlibdir"
set config_customhlsdir "$::env(FINN_ROOT)/finn/custom_hls"
puts "custom HLS dir: $config_customhlsdir"
set config_toplevelfxn "$TOPFXN$"
set config_clkperiod $CLKPERIOD$
......
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