Data processing system for controlling execution of a debug function and method thereof
First Claim
1. A data processor, comprising:
- a memory location in a memory circuit which is identified by an internal address;
a debug module, the debug module processing an external request to access the memory location of the data processor, the debug module asserting a bus request signal to initiate an access operation of the memory location and executing the access operation of the memory location upon receipt of a bus grant signal;
a central processing unit for controlling operation of the data processor, the central processing unit executing a plurality of data processing instructions using a pipeline method of operation wherein a first pipeline indicates a plurality of data processing instructions to be executed, the central processing unit selectively asserting a bus grant signal in response to the bus request signal when the plurality of data processing instructions have been executed;
bus means for communicating information between each of the debug module, the central processing unit, and the memory, the bus means communicating a data value stored at the memory location to the debug module when the bus grant signal is asserted.
17 Assignments
0 Petitions
Accused Products
Abstract
A central processing unit (2) and a debug module (10) execute concurrent operations without requiring a data processor (3) to operate in a special debug mode. The use of a bus (25) to communicate data, address, and control information between a core (9) and debug module (10) allows debug module (10) to have access the same internal registers and memory locations as central processing unit (2). While debug module (10) and central processing unte (2) both have the ability to access the same internal registers and memory locations, central processing unit (2) may not modify a value stored in a plurality of breakpoint registers (50) when an Inhibit Processor Writes to Debug Registers (IPW) bit in a CSR (FIG. 8) of a plurality of control registers (40) is set. The IPW bit may only be modified by a command provided by an external development system (7).
130 Citations
22 Claims
-
1. A data processor, comprising:
-
a memory location in a memory circuit which is identified by an internal address; a debug module, the debug module processing an external request to access the memory location of the data processor, the debug module asserting a bus request signal to initiate an access operation of the memory location and executing the access operation of the memory location upon receipt of a bus grant signal; a central processing unit for controlling operation of the data processor, the central processing unit executing a plurality of data processing instructions using a pipeline method of operation wherein a first pipeline indicates a plurality of data processing instructions to be executed, the central processing unit selectively asserting a bus grant signal in response to the bus request signal when the plurality of data processing instructions have been executed; bus means for communicating information between each of the debug module, the central processing unit, and the memory, the bus means communicating a data value stored at the memory location to the debug module when the bus grant signal is asserted. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A method for operating a data processor, comprising the steps of:
-
receiving a command to access a memory device from an external system; receiving an address to access a memory location in the memory device from the external system; decoding the command to determine a function to be executed by the data processor using a control circuit of a debug module of the data processor; storing the address in a first address register in the debug module; enabling the control circuit of the debug module to generate a bus request signal in a first logic state; stalling an internal instruction pipeline of a central processing unit when a current plurality of pipelined instructions are executed and the bus request signal is in the first logic state; enabling the central processing unit to generate a bus grant signal in a second logic state when the internal instruction pipeline of the central processing unit is stalled; providing the address in the first address register in the debug module to the memory device when the bus grant signal is in the second logic state; and accessing the memory location in the memory device to execute the function specified by the command provided by the external system. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
-
19. A method for operating a data processor, comprising the steps of:
-
receiving a command to access a memory device from an external system; receiving an address to access a memory location in the memory device from the external system; storing the address in a first address register in a debug module; enabling a control circuit to generate a bus request signal; enabling a bus granting unit to generate a bus grant signal when the bus is available; providing the address in the first address register of the debug module to the memory device when the bus grant signal is received; and accessing the memory location in the memory device to access the address specified by the command provided by the external system.
-
-
20. A data processor, comprising:
-
a memory location in a memory circuit, wherein the memory location is identified by an internal address; a debug module, the debug module for processing an external request to access the memory location of the data processor, wherein the debug module asserts a bus request signal to initiate an access operation of the memory location and executes the access operation of the memory location upon receipt of a bus grant signal; a central processing unit for controlling operation of the data processor, wherein the central processing unit asserting a bus grant signal in response to the bus request signal; a bus for communicating information between each of the debug module, the central processing unit, and the memory. - View Dependent Claims (21, 22)
-
Specification