3.6.3.31 SHLS-77 & SHLS-78
(Ask a Question)Message
Warning: (SHLS-77) SmartHLS does not support '{function_1}' function on {location_1}.
...
Warning: (SHLS-77) SmartHLS does not support '{function_2}' function on {location_2}.
...
Error: (SHLS-78) The code has unsupported function calls in hardware functions.
An SHLS-77 message is generated for each use of a function symbol that does not have a corresponding definition during compilation. This may occur if a function is declared but not defined, or if there is a call to a library function that is not supported by SmartHLS. If any SHLS-77 message is generated, an SHLS-78 message will be issued to abort the compilation process.
/***************************************************************** * This example is expected to result in * - Code : SHLS-77 & SHLS-78 * - Type : Error * - Cause : Design code contains unresolved functions, * - foo() is declared but not defined * - std::count is not supported by SmartHLS and * hence no library definition is provided. *****************************************************************/ #include <iostream> int foo(int); int DUT(int v) { #pragma HLS function top std::cout << "Hello World\n"; return foo(v); }
Output
Warning: (SHLS-77) SmartHLS does not support 'std::basic_ostream& std::__ostream_insert' function on line 564 of ../SmartHLS/.../.../include/c++/8.5.0/ostream.
Warning: (SHLS-77) SmartHLS does not support 'foo' function on line 17 of test.cpp.
Error: (SHLS-78) The code has unsupported function calls in hardware functions.
