×

Program counter trace system, program counter trace method, and semiconductor device

  • US 20040078690A1
  • Filed: 11/20/2002
  • Published: 04/22/2004
  • Est. Priority Date: 05/30/2000
  • Status: Abandoned Application
First Claim
Patent Images

1. A program counter trace system which operates a processor and an external debugging tool at a same frequency to perform program counter trace for debugging, wherein the processor includes:

  • a trace flag generation unit for holding a program counter value which is outputted from a processor core that executes a program in each operation cycle of the processor, obtaining a difference between a previous program counter value which is held and a present program counter value, and generating on the basis of the difference in each cycle, first and second trace status information indicating that a present status is one of;

    a status corresponding to a head of serial data of a program counter value;

    a status in which displacement from the previous program counter value is “

    0”

    ;

    a status in which displacement from the previous program counter value is “

    1”

    ; and

    an error occurrence status indicating that serial data outputting occurs in a period which overlaps an output period of the serial data, and branch information indicating that the program counter value is branched;

    a parallel/serial conversion unit for converting a program counter value into serial data only when the branch information generated by the trace flag generation unit indicates a branch status, and outputting the serial data as trace serial data; and

    a trace clock generation unit for outputting a trace clock having the same frequency as that of an operation clock for the processor, and the debugging tool receives the trace status information and the trace serial data in synchronization with the trace clock.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×