Sub-functions can optionally be inlined to merge their logic with the logic of the surrounding function. While inlining functions can result in better optimizations, it can also increase runtime as more logic must be kept in memory and analyzed.
Tip:
Vitis HLS can perform automatic inlining
of small functions. To disable automatic inlining
of a small function, set the
inline
directive to
off
for that
function.If a function is inlined, there is no report or separate RTL file for that function. The logic and loops of the sub-function are merged with the higher-level function in the hierarchy.