Hello!
We are trying to understand how exactly works the branch prediction of theTMS570LC4357 (Cortex 5). Our goal is that the BP behaviour is deterministic for the worst-case execution time analysis that we have to perform.
We are not planning to use normal operation as it seems difficult to demonstrate the dynamic configuration is deterministic.
Our code contains many loops with a constant number of iterations. For that reason we expected the "always taken" configuration to be quicker that the "always not taken" configuration. Unfortunately the result of measuring a code snippet shows almost no differences between the two configurations. Does anyone understand why it is like that?
normal operation -> 239.65 us
always taken -> 340.65 us
always not taken -> 339.95 us
Best regards
Mathieu