Set Custom Top-Level FunctionΒΆ
Syntax
#pragma LEGUP function top
Description
This pragma specifies the top-level C/C++ function. The top-level function and all of its descendant functions will be compiled to hardware.
Position
At the beginning of the function definition block.
Examples
int sum(int *a) {
#pragma LEGUP function top
...
}