3.6.3.27 SHLS-62
(Ask a Question)Message
Error: (SHLS-62) The depth of FIFO '{fifo}' at {location} was already set to '{depth}' with setDepth() before being set again to '{depth}'. The setDepth function can only be called once per FIFO. For an array of FIFOs, all elements must have the same depth.
/***************************************************************** * This example is expected to result in * - Code : SHLS-62 * - Type : Error * - Cause : The setDepth() of a FIFO is invoked multiple times * with different 'depth' value in the hardware design code. *****************************************************************/ #include "hls/streaming.hpp" int pop(hls::FIFO<int> &fifo) { #pragma HLS function noinline return fifo.read(); } int DUT( int a, int b ) { #pragma HLS function top hls::FIFO<int> my_fifo; my_fifo.setDepth(8); my_fifo.setDepth(10); my_fifo.write(a+b); return pop(my_fifo); }
Related to: Streaming Library
