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

[Refactor] reflect finn-base refactor for hls utils

parent b3721e56
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,11 @@ from finn.util.basic import (
roundup_to_integer_multiple,
get_rtlsim_trace_depth,
)
from finn.util.fpgadataflow import (
IPGenBuilder,
from finn.util.pyverilator import (
pyverilate_get_liveness_threshold_cycles,
rtlsim_multi_io,
)
from finn.util.hls import CallHLS
from . import templates
try:
......@@ -309,11 +309,10 @@ class HLSCustomOp(CustomOp):
return []
def ipgen_singlenode_code(self):
"""Builds the bash script for ip generation using the IPGenBuilder from
finn.util.fpgadataflow."""
"""Builds the bash script for IP generation using the CallHLS utility."""
node = self.onnx_node
code_gen_dir = self.get_nodeattr("code_gen_dir_ipgen")
builder = IPGenBuilder()
builder = CallHLS()
builder.append_tcl(code_gen_dir + "/hls_syn_{}.tcl".format(node.name))
builder.set_ipgen_path(code_gen_dir + "/project_{}".format(node.name))
builder.build(code_gen_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