From 56bdc6224e470575c15ea95e686d77196705bb57 Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <yamanu@xilinx.com> Date: Thu, 28 May 2020 22:21:32 +0100 Subject: [PATCH] [HLSCustomOp] bring back directives option in base --- src/finn/custom_op/fpgadataflow/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/finn/custom_op/fpgadataflow/__init__.py b/src/finn/custom_op/fpgadataflow/__init__.py index 9d41df33e..a688898f4 100644 --- a/src/finn/custom_op/fpgadataflow/__init__.py +++ b/src/finn/custom_op/fpgadataflow/__init__.py @@ -217,6 +217,8 @@ class HLSCustomOp(CustomOp): self.code_gen_dict["$FINNHLSLIBDIR$"] = ["/workspace/finn-hlslib"] self.code_gen_dict["$TOPFXN$"] = [node.name] self.code_gen_dict["$CLKPERIOD$"] = [str(clk)] + self.code_gen_dict["$EXTRA_DIRECTIVES$"] = self.ipgen_extra_directives() + template = self.ipgentcl_template @@ -230,6 +232,10 @@ class HLSCustomOp(CustomOp): f.close() self.code_gen_dict.clear() + def ipgen_extra_directives(self): + "Return a list of extra tcl directives for HLS synthesis." + return [] + def ipgen_singlenode_code(self): """Builds the bash script for ip generation using the IPGenBuilder from finn.util.fpgadataflow.""" -- GitLab