1. Field of the Invention
The present invention relates generally to the test and debug of a target processor and, more particularly, to a controllable initiation of the test and debug procedure.
2. Description of the Related Art
Referring to
The host interface unit 105 reformats signal groups and applies the reformatted signal groups to the target interface unit 155. The target interface unit 155 reformats the signal groups into a format suitable for use in the test and debug procedure. In addition, the target interface unit 155, using defined portions of the signal groups, sorts the signal groups categories and forwards the signal groups to the appropriate portion of the target processing unit 151.
After the test and debug procedure is completed, the results of the procedure are transferred from the target processing unit 151 to the target interface unit 155. In the target interface unit 155, the results of the test and debug procedure are formatted and transferred with a predetermined protocol. The results of the test and debug procedure are transferred from the target interface unit 155 to the host interface unit 105, the transferred signal groups are unformatted in a format acceptable to the host processing unit 101 and transferred thereto. The host processing unit 101 analyzes the data resulting from the test and debug procedure.
The apparatus described in
A need has therefore felt for apparatus and an associated method having the feature that the interruption of a target processing unit would occur at designated state of the target processing unit. It is yet another feature of the apparatus and associated method to provide a plurality of selectable target processing unit states at which to begin a test and debug procedure. It is a more particular feature of the apparatus and associated method to generate a test and debug command and wait to execute the command until the target processing unit enters a preselected state.
The aforementioned and other features of the apparatus and associated method are accomplished, according to the present invention, by the providing of a storage unit for storing, in the interface unit, a command for executing a test and debug procedure. The host processing unit also provides a signal group indicative of the selected state of the host processing unit when the command is to be executed. When the selected state of the host processing unit is identified, the command stored in the storage unit is retrieved from the storage unit, the contents of the storage unit cleared, and the test and debug procedure executed in response to the command.
The event/command may also be initiated from the target processing unit itself. An example of this would be where the CPU encounters an instruction that generates an event relevant to debug.
Other features and advantages of the present invention will be more clearly understood upon reading of the following description along with the accompanying figures and claims.
1. Detailed Description of the Drawings
Referring now to
2. Operation of the Preferred Embodiment
The operation of the present invention can be understood as follows. The present invention does not limit the test and debug procedure to being executed immediately, but permits the test and debug procedure to be executed in a predetermined state of the target processing unit. Or, when the proper input terminal of the selection unit is coupled to the output terminal by the appropriate control signal being applied to the control terminal of the selector unit, the event/execution procedure can be immediately executed.
The command/event that is typically stored in the storage unit is the debug halt command. This command halts the operation of the target processing unit so the test and debug procedures can be initiated.
Examples of the target processing machine states that can be used in the present invention are the immediate state of the target processing unit, next cycle boundary, interrupt capable boundary, reset vector, branch boundary, etc. The particular target processing unit state is determined by the user and, in the case of the preferred embodiment, forwarded to the target processor by the host processing unit.
Although the present invention has been described with respect to the preferred embodiment and drawings of the invention, it will be apparent to those skilled in the art that various adaptations, modifications, and alterations may be accomplished without departing from the spirit and scope of the present invention. Accordingly, it is to be understood that the accompanying drawings as set forth hereinabove are not intended to limit the breadth of the present invention, which should be inferred only from the following claims and their appropriately construed legal equivalents.
This Application claims the benefit of Provisional Application No. 60/927,952, filed May 7, 2007.
Number | Date | Country | |
---|---|---|---|
60927952 | May 2007 | US |