diff --git a/src/finn/custom_op/fpgadataflow/hlscustomop.py b/src/finn/custom_op/fpgadataflow/hlscustomop.py index 02912b2d5f45b3bab0eaca13ee0a0bf19bf9cfca..f185be02a9b5fdf5e622f6cf83a4c54e2c7bfe08 100644 --- a/src/finn/custom_op/fpgadataflow/hlscustomop.py +++ b/src/finn/custom_op/fpgadataflow/hlscustomop.py @@ -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)