From c34b72896bb0c01b5cbd4a6f2824118be4b04be2 Mon Sep 17 00:00:00 2001
From: Yaman Umuroglu <maltanar@gmail.com>
Date: Wed, 8 Apr 2020 22:51:57 +0100
Subject: [PATCH] [HLSCustomOp] add attributes to keep resource counts

---
 src/finn/custom_op/fpgadataflow/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/finn/custom_op/fpgadataflow/__init__.py b/src/finn/custom_op/fpgadataflow/__init__.py
index 32c09d655..3a1d65a0c 100644
--- a/src/finn/custom_op/fpgadataflow/__init__.py
+++ b/src/finn/custom_op/fpgadataflow/__init__.py
@@ -73,6 +73,8 @@ class HLSCustomOp(CustomOp):
             "exec_mode": ("s", False, ""),
             "sim_cycles": ("i", False, 0),
             "rtlsim_trace": ("s", False, ""),
+            "res_estimate": ("s", False, ""),
+            "res_hls": ("s", False, ""),
         }
 
     def node_res_estimation(self):
-- 
GitLab