| Contents | Index |
By default, script generation takes place automatically, as part of the code and test bench generation process.
The coder generates all script files in the target folder.
When you generate HDL code for a model or subsystem system, the coder writes the following script files:
system_compile.do: Mentor Graphics ModelSim compilation script. This script contains commands to compile the generated code, but not to simulate it.
When you generate test bench code for a model or subsystem system, the coder writes the following script files:
system_tb_compile.do: Mentor Graphics ModelSim compilation script. This script contains commands to compile the generated code and test bench.
system_tb_sim.do: Mentor Graphics ModelSim simulation script. This script contains commands to run a simulation of the generated code and test bench.
By default, the coder does not generate a synthesis script. To enable synthesis script generation, select a synthesis tool from the Choose synthesis tool pulldown menu, as described in Synthesis Script Options.
![]() | Overview of Script Generation for EDA Tools | Custom Script Generation | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |