MATLAB: Simulink & Real time Workshop (RTW)

mpsocrtwsimulinksimulink coder

I am going to simulate an MPSOC system with simulink and going to map it on a many-core target platfrom. Can I use Real Time Workshop for this purpose? Can I use my own developed code for mapping and scheduling? Which types of processors does RTW support(PowerPC, ARM, …)?

Best Answer

RTW is intended to generate ISO/ANSI C code, and as a result of that, it doesn't generate any special commands in the code for targeting multiple cores. It doesn't prevent you from doing this in any way, but it also doesn't generate anything extra for multiple cores either. There are a variety of techniques, such as S-functions, Custom Storage classes, and customizing your own "main" that would allow you to add extra code that may help do this.
Along similar lines, as long as you have an ISO/ANSI-compliant compiler, you should be able to use the generated code on any processor you like.