2.10 Debugging the
How to use Model Debugger to execute and debug a built model.
- Click the Debug button on the System Canvas toolbar.
Figure 2-18 Debug Simulation dialog
- In the Debug Simulation dialog, select the required radio buttons to
launch Model Debugger and attach to your target. The radio buttons that are available
depend on the target settings.
If required, enter additional command line options by using
the Additional Model Debugger command line options field. You
can also set the application and parameter files to be simulated
by using the Application and Parameter
file drop-down menus.
- Click OK.
The Configure Model Parameters dialog displays the instantiation
parameters for the top-level components in the model.
Figure 2-19 Configuring Model Parameters dialog
To display parameter sets:
For different views of the system parameters, select the List
View or Tree View tabs.
No changes are required in this case.
- Click OK to close the dialog.
The Select Targets dialog opens.
Figure 2-20 Select Targets dialog
The Select Targets dialog displays the components to use in
Model Debugger. The ARM processor component is the default.
You can select additional targets to load in their own instances of Model Debugger.
This is not required in this case.
Click OK to start Model Debugger.
The debugger loads the model library from the build directory of
the active configuration. One instance of Model Debugger starts.
If the Load Application Code dialog does not appear
automatically, select Load Application Code from the
File menu, and select
%PVLIB_HOME%\images\dhrystone.axf as the application.
This needs dhrystone.axf, which is in the Third Party IP add-on
for the Fast Model Portfolio.
- Click Run to start the simulation.
A Model Debugger Application Input pop-up window appears.
Figure 2-21 Model Debugger Application Input window
1000000 into the Application input
After a short pause, the results of the benchmark are shown in the
StdIO tab of Model Debugger.