Main Content

Model Architecture and Design

Model componentization, hierarchy, and execution order considerations for code generation

When developing Simulink® models for code generation, consider:

  • Scheduling requirements and relevant modeling techniques

  • Products and blocks that support code generation

  • Code generation treatment of Simulink modeling semantics

Decide whether to represent application components as subsystems, reference models, or Stateflow® charts. Consider whether you want to generate reusable code.

Configure test or production hardware or control the location of generated code files.

As you evolve your model, use the Model Advisor to check whether the model is ready for code generation.