Violation of Latency Constraint for Function Calls

Description

This message reports that the parent function contains sub-functions of different latencies.

Explanation

The code is violating latency optimization rules. The parent function contains sub-functions of different latencies which will be added to the total parent latency as shown in the below code.

func1(...)
{
// latency of func1 = ~(func2+fun3) + ~(func1) = ~75
func2(..) # latency of this sub-func - 30
func3(...) # latency of this sub-func - 40
}

Solution

Consider taking into account the latency of the sub-function when applying the latency pragma.