From 66cd363c9b2e443ae071ff902b12c3e30a15eb42 Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <maltanar@gmail.com> Date: Tue, 6 Oct 2020 22:34:34 +0200 Subject: [PATCH] [CustomOp] catch unsupported rtlsim cond in StreamingFIFO no rtlsim implementation for impl_style=vivado right now --- src/finn/custom_op/fpgadataflow/streamingfifo.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/finn/custom_op/fpgadataflow/streamingfifo.py b/src/finn/custom_op/fpgadataflow/streamingfifo.py index cd14765f3..6b422ed17 100644 --- a/src/finn/custom_op/fpgadataflow/streamingfifo.py +++ b/src/finn/custom_op/fpgadataflow/streamingfifo.py @@ -447,3 +447,10 @@ class StreamingFIFO(HLSCustomOp): ram_luts = 0 return int(address_luts + ram_luts) + + def prepare_rtlsim(self): + assert self.get_nodeattr("impl_style") != "vivado", ( + "StreamingFIFO impl_style " + "cannot be vivado for rtlsim. Only impl_style=rtl supported." + ) + super().prepare_rtlsim() -- GitLab