3.6.3.33 SHLS-80

Message

Fatal Error: (SHLS-80) All top level functions are empty!

This message indicates that compilation has been aborted because no input design logic was found from code. An empty top-level function may result from an empty function body or from code within the function being optimized away.

/*****************************************************************
 *  This example is expected to result in
 *  - Code  : SHLS-80
 *  - Type  : Fatal Error
 *  - Cause : Both top-level functions have no logic that produces
 *            side effect
 *            - DUT_1() : empty function body
 *            - DUT_2() : function body creates no side effect and
 *                        thus will be optimized away
 *****************************************************************/
void DUT_1(){
#pragma HLS function top
}

void DUT_2() {
#pragma HLS function top
    int tmp = 0;
    tmp++;
}