From ff0f873d34951f015922e091e64d53d18f705f57 Mon Sep 17 00:00:00 2001
From: Yaman Umuroglu <maltanar@gmail.com>
Date: Tue, 28 Apr 2020 23:05:54 +0100
Subject: [PATCH] [StreamingFC] rename decoupled_ram_style -> ram_style

---
 src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
index 6d63f3b08..eab3decc6 100644
--- a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
+++ b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
@@ -97,7 +97,7 @@ class StreamingFCLayer_Batch(HLSCustomOp):
             # block -- use BRAM
             # distributed -- use LUTRAM
             # see also https://www.xilinx.com/support/answers/38070.html
-            "decoupled_ram_style": ("s", False, "auto"),
+            "ram_style": ("s", False, "auto"),
         }
         my_attrs.update(super().get_nodeattr_types())
         return my_attrs
@@ -989,9 +989,7 @@ class StreamingFCLayer_Batch(HLSCustomOp):
             self.code_gen_dict["$MEM_DEPTH$"] = [
                 str(roundup_to_integer_multiple(self.calc_wmem(), 1024))
             ]
-            self.code_gen_dict["$RAM_STYLE$"] = [
-                self.get_nodeattr("decoupled_ram_style")
-            ]
+            self.code_gen_dict["$RAM_STYLE$"] = [self.get_nodeattr("ram_style")]
 
             template = self.decoupled_wrapper
 
-- 
GitLab