12.07.2015 Views

ModelSim SE GUI Reference - Parent Directory

ModelSim SE GUI Reference - Parent Directory

ModelSim SE GUI Reference - Parent Directory

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GR-2561 - Simulator windowsCreating and managing breakpointsSignal breakpointsFile-line breakpoints<strong>ModelSim</strong> supports both signal (i.e., when conditions) and file-line breakpoints.Breakpoints can be set from multiple locations in the <strong>GUI</strong> or from the command line.Breakpoints within SystemC portions of the design can only be set using File-linebreakpoints (GR-256).Signal breakpoints (when conditions) instruct <strong>ModelSim</strong> to perform actions when thespecified conditions are met. For example, you can break on a signal value or at a specificsimulator time (see the when command (CR-406) for additional details). When a breakpointis hit, a message in the Main window transcript identifies the signal that caused thebreakpoint.Setting signal breakpoints from the command lineYou use the when command (CR-406) to set a signal breakpoint from the VSIM> prompt.See the Command <strong>Reference</strong> for further details.Setting signal breakpoints from the <strong>GUI</strong>Signal breakpoints are most easily set in the Objects pane (GR-182) and the Wave window(GR-209). Right-click a signal and select Insert Breakpoint from the context menu. Abreakpoint is set on that signal and will be listed in the Breakpoints dialog.Alternatively you can set signal breakpoints from the "Modify Breakpoints dialog" (GR-105).File-line breakpoints are set on executable lines in your source files. When the line is hit,the simulator stops and the Source window opens to show the line with the breakpoint. Youcan change this behavior by editing the PrefSource(OpenOnBreak) variable. See"Simulator <strong>GUI</strong> preferences" (GR-269) for details on setting preference variables.Since C Debug is invoked when you set a breakpoint within a SystemC module, your CDebug settings must be in place prior to setting a breakpoint. See Setting up C Debug (UM-348) for more information. Once invoked, C Debug can be exited using the C Debug menu.Setting file-line breakpoints from the command lineYou use the bp command (CR-71) to set a file-line breakpoint from the VSIM> prompt. Seethe Command <strong>Reference</strong> for further details.Setting file-line breakpoints from the <strong>GUI</strong>File-line breakpoints are most easily set using your mouse in the Source window (GR-197).Click on a blue line number at the left side of the Source window, and a red diamonddenoting a breakpoint will appear. The breakpoints are toggles – click once to create thecolored diamond; click again to disable or enable the breakpoint. To delete the breakpointcompletely, click the red diamond with your right mouse button, and select RemoveBreakpoint.<strong>ModelSim</strong> <strong>SE</strong> <strong>GUI</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!