MATLAB / Simulink code generation using our directed graph made of device function