Hello 642142357@qq.com,
So if you want the whole subsystem A to be generated first, and then the whole subsystem B, you have to right click on subsystem A, go to Properties, then write a number in the Priority edit box (e.g.: 5). Then go to subsystem B, do the same (right click -> Properties), and enter a higher number (lower priority) than what you've inserted in subsystem A (e.g.: 10). Now, if you build the model, you'll see that code generated for subsystem A is before code generated for subsystem B. You can check Simulink's order by pressing CTRL+D on your keyboard, while in the model. This will force an update to the model, which, among other things, will update the priorities (you can see them in the corner of every block, denoted with 2 numbers - e.g.: 5:21).


Following the same approach, you can set priorities for each and every block in Simulink (be it from Standard Simulink block set, our toolbox or any other toolbox).
Hope this helps,
Razvan.