From 4770434f3d717f9314c2962eb08ce0ab8d1840e8 Mon Sep 17 00:00:00 2001 From: auphelia <jakobapk@web.de> Date: Thu, 7 May 2020 13:55:56 +0100 Subject: [PATCH] [StreamingFIFO] Fix error message --- src/finn/custom_op/fpgadataflow/streamingfifo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/finn/custom_op/fpgadataflow/streamingfifo.py b/src/finn/custom_op/fpgadataflow/streamingfifo.py index eb96c6c04..0a7f143d2 100644 --- a/src/finn/custom_op/fpgadataflow/streamingfifo.py +++ b/src/finn/custom_op/fpgadataflow/streamingfifo.py @@ -269,7 +269,12 @@ class StreamingFIFO(HLSCustomOp): context[node.output[0]] = output else: - raise Exception("Test") + raise Exception( + """Invalid value for attribute exec_mode! Is currently set to: {} + has to be set to one of the following value ("npysim", "rtlsim")""".format( + mode + ) + ) def get_number_output_values(self): folded_oshape = self.get_folded_output_shape() -- GitLab