Claims
- 1. A data processing system, comprising:
a central processing unit coupled to a bus for receiving instructions including a first debug instruction; and a debug circuit, comprising:
registers for being loaded with set-up data; at least one of trigger circuitry coupled to the registers and the central processing unit and combining logic coupled to the registers and to the trigger circuitry; wherein the central processing unit is characterized as providing a debug communication signal in response to the first debug instruction to at least one of the trigger circuitry and the combining logic.
- 2. The data processing system of claim 1, further comprising action select and control logic coupled to the combining logic wherein the bus is further characterized as providing a debug halt instruction to the central processing unit and the central processing unit is further characterized as providing a halt signal to the action select and control logic in response to receiving the debug halt instruction.
- 3. The data processing system of claim 2, wherein the first debug instruction is a debug action select instruction, and the action select and control logic responds to the debug action select instruction by altering an action of the action select and control logic.
- 4. The data processing system of claim 1, wherein the first debug instruction is a debug event instruction, the debug communication signal is coupled to the combining logic, and the combining logic provides a complex trigger in response to the debug communication signal.
- 5. The data processing system of claim 4, wherein the action select and control logic provides a first debug action in response to the complex trigger.
- 6. The data processing system of claim 4, wherein the counter performs at least one of a start and stop in response to the complex trigger.
- 7. The data processing system of claim 1, wherein the first debug instruction is a debug event instruction coupled to the counter circuitry, and the counter performs at least one of a start and stop in response to the debug event instruction.
- 8. The data processing system of 1, wherein the first debug instruction is a DEBUGCTR ON instruction, the debug communication signal is coupled to the counter, and the counter turns on in response to the DEBUGCTR ON instruction.
- 9. The data processing system of claim 1, wherein the first debug instruction is a DEBUGCTR OFF instruction, the debug communication signal is coupled to the counter, and the counter turns off in response to the DEBUGCTR OFF instruction.
- 10. The data processing system of claim 1, wherein the first debug instruction is a DEBUGCTR HALT instruction, the debug communication signal is coupled to the counter, and the counter is prevented from restarting in response to the DEBUGCTR HALT instruction.
- 11. The data processing system of claim 1, wherein the first debug instruction is a DEBUGCTR RELOAD instruction, the debug communication signal is coupled to the counter, and the counter is reloaded in response to the DEBUGCTR RELOAD instruction.
- 12. The data processing system of claim 1, further comprising a trace history buffer coupled to the counter, wherein the first debug instruction is a DEBUGCTR TO-TRACE instruction, the debug communication signal is coupled to the counter, and the trace history buffer is loaded with the contents of the counter in response to the DEBUGCTR TO-TRACE instruction.
- 13. The data processing system of claim 1, further comprising transmit and receive circuitry coupled to the counter, wherein the first debug instruction is a DEBUGCTR TO-TX instruction, the debug communication signal is coupled to the counter, and the transmit and receive circuitry is loaded with the contents of the counter in response to the DEBUGCTR TO-TX instruction.
- 14. A data processing system, comprising:
a central processing system coupled to a bus for receiving instructions including a first debug instruction and a halt debug instruction and for providing a debug communication signal in response to the first debug instruction and a halt debug signal in response to the halt debug instruction; and a debug circuit, comprising:
registers for being loaded with set-up data; debug processing means, coupled to the central processing unit, for receiving the debug communication signal; and action select and control logic coupled to the debug processing means and the central processing unit for receiving the halt debug signal.
- 15. The data processing system of claim 14, wherein the debug processing means provides a complex trigger to the action select and control logic in response to the debug communication signal.
- 16. A method of operating a data processing system coupled to a bus that carries instructions to the data processing system, comprising:
providing a debug instruction on the bus; providing a debug circuit comprising registers, a debug processing circuit, and action select and control logic; loading registers with set-up data; providing a debug communication signal to the debug processing circuit in response to the step of providing the debug instruction; and providing a complex trigger to the action select and control logic in response to the step of providing the debug communication signal.
- 17. The method of claim 16, further comprising:
providing a debug halt instruction on the bus; providing a debug halt signal to the action select and control logic in response to the step of providing the debug halt instruction on the bus.
- 18. The method of claim 16, wherein the debug instruction comprises a DEBUGEV instruction.
- 19. The method of claim 16, wherein the action select and control logic provides a first debug action in response to the complex trigger.
- 20. The method of claim 16, wherein the debug processing circuit comprises a counter, and the counter performs at least one of a start and stop in response to the complex trigger.
- 21. A data processing system, comprising:
a central processing unit coupled to a bus for receiving instructions including a first debug instruction; and a debug circuit, comprising:
registers for being loaded with set-up data; a debug port resource comprising at least one of transmit and receive circuitry coupled to the registers and to the central processing unit and a counter coupled to the registers and to the central processing unit; wherein the central processing unit is characterized as providing a debug communication signal in response to the first debug instruction for selectively enabling or disabling at least one of the transmit and receive circuitry and the counter.
- 22. The method of claim 21, wherein the counter is characterized as having contents and wherein the first debug instruction is further characterized as being for routing the contents of the counter to the debug port resource.
- 23. The data processing system of claim 21, wherein the first counter is coupled to the bus, counts occurrences of a predetermined address in a first mode of operation, and counts a number of occurrences of a predetermined action provided by the action means in a second mode.
- 24. The data processing system of claim 21, wherein the first counter is coupled to the bus and counts occurrences of a first type of event in a first mode and a second type of event in a second mode.
- 25. The data processing system of claim 21, wherein the first counter is coupled to the bus and starts counting in response to a first command from the central processing unit and stops counting in response to second command from the central processing unit.
RELATED APPLICATIONS
[0001] This application is related to:
[0002] U.S. patent application docket number SC12021TH, entitled “METHOD AND APPARATUS FOR DEBUGGING A DATA PROCESSING SYSTEM,” filed simultaneously herewith, and assigned to the assignee hereof; and
[0003] U.S patent application docket number SC12022TH, entitled “METHOD AND APPARATUS FOR DEBUGGING A DATA PROCESSING SYSTEM,” filed simultaneously herewith, and assigned to the assignee hereof.