|Home > Using Model Debugger > Model Debugger application windows > Menu bar|
The main menu bar provides access to most Model Debugger functions and commands.
The File menu has the following options:
Opens the source code for the application.
Displays the Source File Manager dialog box.
Loads application code to the model.
Loads debug information only.
Loads a model.
Displays the Connect to Target dialog box to connect to a model file.
Displays the Debug Isim System dialog box to start and debug an isim system.
Displays the Debug SystemC Simulation dialog box to start and debug a SystemC simulation.
Closes the currently open model. If Model Debugger is connected to a CADI server, the connection is closed but the simulation continues to run.
Opens a previously saved session.
Saves the current debug session.
Saves the current debug session to a new location and name.
Displays the Preferences dialog box to enable you to modify the user preferences.
Displays a list of the most recently opened model files. To open the file, click a list entry. By default, the last 16 files are displayed in the list. The number of files to display can be set in the Preferences dialog box.
To remove a file from the list, move the mouse cursor over the file name. Press the Delete key or right click and select Remove from list from the context menu.
Displays a list of the most recently opened applications. To open the application, click a list entry. By default, the last 16 applications are displayed in the list. The number of applications to display can be set in the Preferences dialog box.
To remove an application from the list, move the mouse cursor over the application name. Press the Delete key or right click and select Remove from list from the context menu.
Displays a list of the most recently opened sessions. To open the session, click a list entry. By default, the last 16 sessions are displayed in the list. The number of sessions to display can be set in the Preferences dialog box.
To remove a session from the list, move the mouse cursor over the session name. Press the Delete key or right click and select Remove from list from the context menu.
Ends Model Debugger. If you have modified files or sessions, a dialog box prompts you to save your changes.
The Search menu has the following options:
Opens a dialog box that enables searching for a string in a currently active window.
Repeats the last defined search to find the next occurrence.
Repeats the last defined search, but the search direction is backwards in the document.
The Control menu has the following options:
This option resets the simulation without reloading the application.
Click to cause a reset of the target model. The application is reloaded automatically.
Cause a reset of the target model. The application
is reloaded. The model runs until the
of the application source code is reached.
main()can be found in the debug information of the application file.
Run the simulation until a breakpoint is hit or some exception occurs. An example would be simulation halt.
Pause or continue the current high-level simulation step command. An example would be a source-level step.
Cause a source-level step to execute until the simulation reaches a different source line.
Cause source-level steps to execute control command until the current function is exited.
Advance the simulation by executing one source-level instruction.
Advance the simulation by one source-level instruction without following any call instructions.
Advance the simulation until a return instruction is executed.
Advance the simulation by the number of instructions in the <- n -> edit box. The default is 1000 cycles.
Advance the simulation by a single cycle.
Advance the simulation by the number of cycles in the edit box. The default is 1000 cycles.
Enable or disable stepping back by cycles.
Step the simulation backwards by one cycle.
Step the simulation backwards by the number of cycles in the edit box. The default is 1000 cycles.
To enable independent execution of cores, that is, targets, use the Configure cores for MP stepping dialog box.
In cluster (multiprocessor) debugging, each Model Debugger window is connected to a particular target, and the controls in that window apply only to that target. It is the simulation that determines how other connected targets behave when you click Stop, Step, or Run within a window. Typical behavior is to stop and run the whole simulation.
You use the Configure cores for MP stepping dialog box to enable Model Debugger to override the default behavior. Model Debugger can control each target to which it is connected. It can force that target to stop executing code while the simulation is running or stepping. In that instance, Model Debugger does not stop any target to which it is not connected. To stop during independent stepping, connect to a target, even if you do not specifically want to view or control that target.
The available MP stepping modes are as follows:
Use Default - step whole simulation to place all execution control with the simulator. In this mode, Model Debugger does not explicitly stop any targets.
Foreground core only - other attached targets are stopped enables the foreground target to run, and to stop all other targets to which it is connected.
Custom - single-step selected targets together enables a fixed set of targets to run, and to stop all other targets to which Model Debugger is connected. This mode disables step and run controls for deselected targets.
The Debug menu has the following options:
Display debug messages.
Clear the log of debug messages.
Clears all output messages from the model.
Clear the summary output messages.
Display the Breakpoint Manager dialog box.
Display the Profiling Manager dialog box.
Display the Profile Information dialog box.
Save the current model state. If reloaded, simulation continues from the point where the model state was saved.
Reload a previously saved model state.
Load debug information for the module.
Set parameter values for the model.
Select the execution target within the model.
The Layout menu has the following options:
To set layout options such as tiling, display this window.
Load a previously saved window layout.
Save the current layout. Model state is not saved.
Use a recently used window layout.
Restore the window layout to the defaults. This option is useful if the layout has become disorganized.
The Window menu has the following options:
Display a new debug view.
Hide an existing debug view.
Display view that was most recently hidden.
Displays all previously hidden views.
Close the window in focus.
Tile all view windows horizontally.
Tile all view windows vertically.
Move a view to the new position specified on the submenu.
Dock or undock the view list on the submenu.
The Help menu has the following options:
Opens this book in Adobe Acrobat Reader.
Displays the standard About dialog box displaying version and license information.
Opens the text file that contains the release notes.