From 332c1250835b5d540a0e02135dc99baba92ed209 Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <maltanar@gmail.com> Date: Wed, 8 Apr 2020 23:01:02 +0100 Subject: [PATCH] [HLSCustomOp] default to 0 for unspecified LUT/BRAM and not pass --- .../custom_op/fpgadataflow/convolutioninputgenerator.py | 6 ------ .../fpgadataflow/streamingdatawidthconverter_batch.py | 7 +------ src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py | 6 ------ 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/finn/custom_op/fpgadataflow/convolutioninputgenerator.py b/src/finn/custom_op/fpgadataflow/convolutioninputgenerator.py index 7e098fd70..2ef5d350f 100644 --- a/src/finn/custom_op/fpgadataflow/convolutioninputgenerator.py +++ b/src/finn/custom_op/fpgadataflow/convolutioninputgenerator.py @@ -132,12 +132,6 @@ class ConvolutionInputGenerator(HLSCustomOp): def verify_node(self): pass - def bram_estimation(self): - pass - - def lut_estimation(self): - pass - def get_input_datatype(self): """Returns FINN DataType of input.""" return DataType[self.get_nodeattr("inputDataType")] diff --git a/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py b/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py index 1d9a10804..5e4c99aa4 100644 --- a/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py +++ b/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py @@ -28,6 +28,7 @@ import os import numpy as np + try: from pyverilator import PyVerilator except ModuleNotFoundError: @@ -209,12 +210,6 @@ class StreamingDataWidthConverter_Batch(HLSCustomOp): return info_messages - def bram_estimation(self): - pass - - def lut_estimation(self): - pass - def global_includes(self): self.code_gen_dict["$GLOBALS$"] = ['#include "streamtools.h"'] diff --git a/src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py b/src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py index 9b9f7bcea..a7c2d5166 100644 --- a/src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py +++ b/src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py @@ -150,12 +150,6 @@ class StreamingMaxPool_Batch(HLSCustomOp): return info_messages - def bram_estimation(self): - pass - - def lut_estimation(self): - pass - def global_includes(self): self.code_gen_dict["$GLOBALS$"] = ['#include "maxpool.h"'] -- GitLab