11.07.2015 Views

ModelSim SE Tutorial

ModelSim SE Tutorial

ModelSim SE Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

T-28 Lesson 2 - Basic simulationcClick the Run -All icon.The simulation runs until the breakpoint is hit. When thesimulation hits the breakpoint, it stops running, highlights theline with a blue arrow in the Source view (Figure 12), and issues a Breakmessage in the Transcript pane.When a breakpoint is reached, typically you want to know one or moresignal values. You have several options for checking values:• look at the values shown in the Objects window (Figure 13).• set your mouse pointer over the count variable in the Sourcewindow, and a "balloon" will pop up with the value (Figure 12)• highlight the count variable in the Source window, right-click it, andselect Examine from the pop-up menu• use the examine command to output the value to the Main windowTranscript (i.e., examine count)Figure 12: Resting the mouse pointer on a variable in the Source view5 Try out the step commands.a Click the Step icon on the Main window toolbar.This single-steps the debugger.Experiment on your own. Set and clear breakpoints and use theStep, Step Over, and Continue Run commands until you feel comfortablewith their operation.Figure 13: Values shown in the Objects window<strong>ModelSim</strong> <strong>SE</strong> <strong>Tutorial</strong>

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

Saved successfully!

Ooh no, something went wrong!