• Aucun résultat trouvé

To change the trace format

1 Select Analysis Format.

2 Use the arrow keys to move to one of the label fields.

3 Tab or Shift-Tab to change the label to one of the following:

addr (for address lines) data (for data lines)

mne (for instruction mnemonics) stat (for processor status information) count (state and time counts)

seq (sequencer state change indicator)

—OFF— (no label in this position)

Press <Enter> to accept the new label definition.

4 If a base specification is available for the label, you can move to it with the arrow keys. Press <Tab> to select one of the following bases:

Chapter 5: Using the Analyzer Displaying the Trace List

Press <Enter> to accept the base specification.

5 For the addr label, you may specify a width parameter in the range 4..50. Type in the desired value and press <Enter>.

6 For the count label, you may specify rel to show the count (or time) relative to the previous state , or abs to show the absolute count between this state and the trigger state. Press Tab to select the desired setting and press <Enter>.

7 Press <End>, then <Enter> to save the format changes and exit the format screen.

Press <Esc> to exit the format screen and discard your changes.

The Analysis Format form specifies how data is arranged on the screen when you display the trace list. You can specify multiple options on the form. The sequence of the options in the form determines the sequence of the columns in the trace list display. Each row of the form specifies what will appear in one column of the output. The rows on the form—from top to bottom, correspond to the columns—from left to right, of the trace list display.

When you enter an Analysis Format command with a new set of options, the previous trace format is destroyed, and the new options determine the new format.

So if you display the trace list, then change the format and display the trace list again, you will see the same data as before, but formatted differently.

Example If you want to set counting relative to the trigger state, perform the following:

Access the format screen:

Analysis Format

Use the arrow keys to move to a label field and enter:

Tab (to select count) <Enter>

Use the arrow keys to move to the count qualifier field and enter:

Tab (to select abs) <Enter>

Save the changes and exit the format screen:

Chapter 5: Using the Analyzer Displaying the Trace List

To display the trace list

1 Select: Analysis Display.

2 The cursor is in the “Dequeuing” field. Tab to select on if you want software dequeuing of the instruction stream (see next page), or off to disable dequeuing.

Press <Enter>.

3 Now the cursor is in the “Start” field. Type in a number to specify the first state to be displayed (0 is the trigger state) from the trace list. Press <Enter>.

4 Now the cursor is in the “End” field. Type in a number to specify the last state to be displayed from the trace list. Press <Enter>.

5 If you enabled software dequeuing in step 2, the cursor will be in the “Operand”

field. (This field appears only the first time that you display the most recent trace, or if you changed the “start” state in step 3.) Type in a number that represents the operand cycle associated with the first disassembled instruction. (You may need to examine the trace list first before specifying this value). Press <Enter>.

6 The cursor is now in the “Cycles” field. Tab to select all if you want to see all instruction and operand cycles as they were captured by the analyzer, or select instr only if you want to see only the instruction cycles. Press <Enter>.

7 The cursor is now in the “Address mode” field. Tab to select Absolute if you want to see numeric addresses in the address field, Symbols if you want to see only symbols in that field (when available), or Both if you want to see a mix of the numeric addresses and symbols. Press <Enter>.

8 The cursor is now in the “Start on” field. (This field appears only the first time that you display a trace, or if you entered a start state other than the default.) Tab to select high word if you want the analyzer to disassemble instructions beginning Chapter 5: Using the Analyzer

Displaying the Trace List

The trace list is a 512 or 1024 state deep buffer. You can selectively display portions of the buffer using the Analysis Display form. The trigger state is always state 0, so a negative number indicates a state prior to the trigger (if any).

The MC68040 PC Interface presents trace lists with the trace data disassembled into an instruction stream. You can choose to show all bus cycles (instructions and operands) or only the instruction cycles.

Each analyzer bus state may have two words. An opcode can appear in either word.

Usually the disassembler starts with the upper word of the first trace state, however you can force disassembly to begin with the lower word. If the disassembled trace list isn’t what you expected, try using this option.

A dequeued trace list is available through the disassembly options. In the dequeued trace list, unused instruction prefetch cycles are discarded, and operand cycles are placed immediately following the corresponding instruction fetch. If you choose a non-dequeued trace list, instruction and operand fetches are shown exactly as captured by the analyzer.

Once the dequeuer has been started on the correct opcode, it will continue to disassemble correctly unless an unusual condition causes it to misinterpret the data.

By specifying the first instruction state for disassembly and the number of the first operand cycle for that instruction, you can resynchronize the disassembly. (You may also need to use the low word option.)

You may see TAKEN, NOT TAKEN, or ?TAKEN? beside a branch in your dequeued trace list. TAKEN is shown beside the branch if the dequeuer determines that the branch was taken. NOT TAKEN is shown if the dequeuer determines that the branch was not taken. ?TAKEN? means the dequeuer was not able to definitely determine whether or not the branch was taken. If you read down the trace list and see that the branch was taken, restart disassembly at the trace list line number of the branch destination. You will need to use the low word option if the destination opcode is in the low word at the destination address.

Chapter 5: Using the Analyzer Displaying the Trace List

Example Suppose you want to display ten states from the trace list, starting at the trigger, without dequeuing. Access the trace list display screen and set up the display using the “Dequeuing,” “Start,” and “End” fields:

Analysis Display

Tab (to select off) <Enter>

Tab (to select 0) <Enter>

Tab (to select 10) <Enter>

Save the changes and exit the display screen:

<End><Enter>

Documents relatifs