Optimizing the implementation of real-time Simulink models onto distributed automotive architectures