From b778d53aa0a9816ed7fd7979a3938bd715ee94a4 Mon Sep 17 00:00:00 2001
From: Yaman Umuroglu <yamanu@amd.com>
Date: Tue, 9 Aug 2022 19:24:03 +0300
Subject: [PATCH] [HLSCustomOp] add missing attribute for characterization
 period

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

diff --git a/src/finn/custom_op/fpgadataflow/hlscustomop.py b/src/finn/custom_op/fpgadataflow/hlscustomop.py
index f73868df4..85f5bfd3f 100644
--- a/src/finn/custom_op/fpgadataflow/hlscustomop.py
+++ b/src/finn/custom_op/fpgadataflow/hlscustomop.py
@@ -113,6 +113,8 @@ class HLSCustomOp(CustomOp):
             "output_hook": ("s", False, ""),
             # characterization of stream input-output behavior per cycle
             "io_characteristic": ("ints", False, []),
+            # the period for which the characterization was run
+            "io_characteristic_period": ("i", False, 0),
         }
 
     def get_verilog_top_module_name(self):
-- 
GitLab