# Patent

## Title
Apparatus and method for testing and debugging an integrated circuit

## Abstract

An integrated circuit which utilizes a serial trace output interface instead of the known parallel trace output interface for transferring test data from the integrated circuit, thereby reducing the number of pins needed for outputting test data. Specifically, a preferred embodiment of the present invention uses a serializer/deserializer (SERDES) interface which captures output testing data in frames, serializes the framed data, and outputs the serialized data on at least one pin. The output serialized data is deserialized, and the deserialized data is synchronized in order to find the frame boundaries. The synchronized frames are then unpacked to retrieve the original testing data. Another preferred embodiment of the present invention uses a bi-directional SERDES both for inputting testing and debugging instructions and data from the analysis software and for outputting testing and debugging results and data to the analysis software.

## Background
BACKGROUND OF THE INVENTION
1. Field of the Invention
This invention relates generally to testing systems and devices and specifically to a system and method for downloading trace information from an integrated circuit.
2. Description of the Related Art
One disadvantage of shrinking microelectronics is that the testing of integrated circuits becomes exponentially more complex. A convenient and efficient means of testing increasingly complex integrated circuits is to design them with testing hardware already built-in. In 1985, a consortium of European electronics companies formed the Joint Test Action Group (JTAG) in order to create an industry standard which would define an architecture and software protocol for built-in testing hardware. The resulting standard, sometimes referred to as JTAG, was adopted by the Institute of Electrical and Electronics Engineers (IEEE) as IEEE Standard 1149.1.
The JTAG standard uses a boundary-scan architecture, so called because the JTAG circuitry is connected to a dedicated path around the integrated circuit's boundary (where the I/O pins are located). JTAG uses this boundary path to directly input to, and download data and instructions from, the I/O pins of the integrated circuit. The JTAG capability of an integrated circuit is accessed through a four pin JTAG test access port (TAP), through which instructions and data from external testing software are input and instructions and data from the integrated circuit are output.
The JTAG interface and circuitry can be used to implement debugging and emulation functions. In debugging embodiments, the JTAG interface is used to download code, execute it, and examine register and memory values. In system-on-a-chip (SOC) embodiments which perform emulation, an in-circuit emulator (ICE) is often embedded in the SOC. The embedded ICE is an actual processor, or a specially modified version of the standard processor, combined with special purpose instrumentation logic to perform the debugging and emulation functions. With emulation, one can test the embedded processor software with techniques such as code trace, benchmarking, trapping, evaluating breakpoints, profiling, etc. However, such extra functions usually require extra pins (besides the JTAG TAP) to output the resulting data.
FIG. 1 shows a conventional SOC 100 with an embedded ICE 105 located within the embedded processor 110 of the SOC 100. An external debugging and emulation program, located in personal computer (PC) 120, uses the JTAG interface logic 125 (by means of JTAG TAP, not shown here) to access and control ICE 105. When running, ICE 105 takes over the functions of the SOC 100. As such, ICE 105 can access, control, upload, and download from any of the memory 130 or peripheral modules 135 which control other SOC components 137.
The output of the debugging and emulation is forwarded to trace logic 140 and, more particularly, to trace FIFO (First-In, First-Out) buffer 145, where the trace output is collected for download, through trace port and status analyzer 150, to the external debugging and emulation program on PC 120, where the trace output is analyzed.
One problem with the prior art design is that the trace port and status analyzer 150 uses multiple pins of the SOC for the parallel output of the trace data. The amount of data is thus limited by the number of pins which can be designated as trace output pins in the SOC design. As SOCs become more complex, not only does the total number of I/O pins needed for critical functions increase—thus reducing the number of available pins which can be designated as trace output pins—but also the amount of trace data increases, thus requiring more trace output pins for transferring the increased trace data.
Usually, it is the number of trace output pins that are sacrificed for other uses in integrated circuit design, thereby causing difficulties as well as a bottleneck at the trace port output of the integrated circuit. One solution to this problem is to create a larger trace FIFO buffer 145 so that more data may be stored while the parallel output is downloading as much data as it can. However, area on an integrated circuit is in short supply, and using up more area for a trace FIFO buffer is expensive and wasteful.
Therefore, there is a need for an improved trace output interface for SOCs using in-circuit emulators (ICEs).
SUMMARY OF THE INVENTION
The invention is directed to a system and method for testing an integrated circuit wherein a SERDES (Serializer/Deserializer) is used for outputting testing results from the integrated circuit. In one aspect, the SERDES is also used for inputting testing instructions and data into the integrated circuit.
In a preferred embodiment, the testing system comprises: a test host for running a debugging and testing analysis program, wherein said debugging and testing analysis program transmits testing instructions and data to the target integrated circuit, receives testing results from the target integrated circuit, and analyzes the received testing results; a testing interface on the target integrated circuit for receiving the testing instructions and data from the test host and forwarding the testing instructions and data; a testing unit on the target integrated circuit for receiving the testing instructions and data from the testing interface and for performing testing and debugging of the integrated circuit; a SERDES (Serializer/Deserializer) for serializing testing results, outputting the serialized testing results from the target integrated circuit, and for deserializing the serialized testing results; and an analyzer for receiving the testing results from said SERDES, for storing the testing results, and forwarding the testing results to the test host.
In another preferred embodiment, the SERDES additionally comprises a serializer for serializing incoming testing instructions and data, an input on the integrated circuit for receiving the serialized testing instructions and data, and a deserializer on the integrated circuit for deserializing the input testing instructions and data before forwarding the testing instructions and data to the testing interface.
In a preferred embodiment, the method for testing a target integrated circuit comprises the steps of: generating testing instructions and data; transmitting the testing instructions and data to the target integrated circuit; receiving the testing instructions and data at the target integrated circuit and forwarding the testing instructions and data to a testing unit on the integrated circuit; performing testing and debugging of the integrated circuit according to the received testing instructions and data; serializing testing results; outputting the serialized testing results from the target integrated circuit; deserializing the serialized testing results; forwarding the testing results; and performing debugging and testing analysis of the target integrated circuit with the received testing results.
In another preferred embodiment, the step of transmitting the testing instructions comprises the sub-step of serializing the testing instructions and data, and the step of receiving the testing instructions comprises the sub-steps of: receiving the serialized testing instructions and data; and deserializing the received testing instructions and data before forwarding them to the testing unit.
In a preferred embodiment, an integrated circuit comprises: an embedded processor; an embedded in-circuit emulator (ICE) for testing and debugging the integrated circuit; a trace buffer for storing testing and debugging data from said embedded ICE and said embedded processor; a frame capture unit for receiving the testing data from said trace buffer, and for packaging the testing data into frames; and a serializer for receiving the framed data from said frame capture unit, for serializing the framed data, and for outputting the serialized data.
In another preferred embodiment, the integrated circuit further comprises deserializing means for receiving serialized testing instructions and data from a testing and debugging analysis system, for deserializing the received testing instructions and data, and for forwarding the deserialized testing instructions and data to said testing means.
Other features of the present invention will become apparent from the following detailed description considered in conjunction with the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention, for which reference should be made to the appended claims. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.



BRIEF DESCRIPTION OF THE DRAWINGS
In the drawings:
FIG. 1 is a block diagram of a prior art debugging and emulation system for a system-on-a-chip (SOC);
FIG. 2 is a block diagram of a debugging and emulation system for an SOC according to a preferred embodiment of the present invention;
FIG. 2A is a block diagram of a debugging and emulation system for an SOC according to another preferred embodiment of the present invention;
FIG. 3 is a flowchart showing a method for outputting debugging and emulation data from an SOC according to a preferred embodiment of the present invention; and
FIG. 3A is flowchart showing the sub-steps comprising step 320 in FIG. 3 according to another embodiment of the present invention.



DETAILED DESCRIPTION OF THE PRESENTLY PREFERRED EMBODIMENT
FIG. 2 shows an SOC 200 with a debugging and emulation system according to a preferred embodiment of the present invention. Similarly to FIG. 1, embedded ICE 105 is located within embedded processor 110. An external debugging and emulation program, located in PC 120, uses the JTAG interface logic 125 (by means of JTAG TAP, not shown here) to access and control ICE 105. ICE 105 can access, control, upload, and download from any memory 130 or peripheral modules 135 which control other SOC components 137. The output of the debugging and emulation is forwarded to trace logic 140 and, more particularly, to trace FIFO (First-In, First-Out) 145.
Although the preferred embodiment in FIG. 2 uses a JTAG interface 125, it should be understood that the present invention is not limited to such an interface. In fact, any debugging and testing hardware, with or without an emulator, may be used with the present invention. Furthermore, the memory 130 may be any sort of memory, whether volatile or non-volatile, in an integrated circuit, and the trace buffer 145 may have any sort of configuration (i.e., it is not limited to a FIFO configuration).
Unlike FIG. 1, the output of trace FIFO 145 does not go directly to a trace output 150 port. Instead, the trace FIFO 145 output is forwarded to Frame Capture Unit 220 where it, along with other data, is packaged into frames. In other embodiments, it is possible for Frame Capture Unit 220 to capture data from the memory subsystems of the SOC (indicated by line 221) or from peripheral modules 135 (indicated by line 222). The frames into which this data is packaged are the communication units used by the serial output. Once a frame is completed it is forwarded to Serializer 230, which converts the parallel format of the frames to serial format for output. Once serialized, the data is transferred out of SOC 200 on communication link 235. To connect with SOC 200, communication link 235 only requires the minimum number of pins. In the preferred embodiment, there are only two pins used for serial differential output versus the nine or more pins used in the prior art.
In the present invention, a SERDES interface capable of transmission rates in the gigabit range is used to serially transmit data from the trace FIFO to the analyzing software on PC 120. In the preferred embodiment, a 10 Gb SERDES using XAUI circuitry requiring two (differential) pins is employed.
After the serialized data has crossed communication link 235, it arrives at Deserializer 240, where the data is reconfigured into its original parallel format. Thereafter, the data enters Frame Sync Unit 250 which synchronizes the parallel data so that the correct boundaries between an incoming frame and the next incoming frame can be located or otherwise established. In the preferred embodiment, the frames are Ethernet MAC frames, although any frame format can be used.
Once the frame boundaries are restored, the original data can be unpackaged from the frames and sent to the debugging and emulation software on PC 120. Such a transmission could be carried out, for example, by an interface connecting Frame Sync Unit 250 with a local area network (LAN), such as an Ethernet LAN. In other embodiments, it would be possible to connect the Frame Sync Unit 250 directly with a wide area network (WAN), such as the Internet, so that troubleshooting may be performed remotely. The Trace Port and Status Analyzer 150 captures the data now in parallel format in a large SRAM buffer for later analysis by the software on PC 120.
JTAG Monitor 210 receives configuration information from the external debugging and emulation program, located in PC 120, through JTAG interface logic 125 and ICE 105. This information is used to appropriately configure the Frame Capture Unit 220 to accept incoming data from trace FIFO buffer 145. This is needed because the timing and manner in which framing should be performed will be affected by the nature of the testing being performed, the nature of the testing output, the timing of the testing output, synchronization with the external system bus, etc. The JTAG monitor 210 may be very simple (e.g., comprised of a few registers) or very complex, depending on the embodiment of the present invention, and particularly depending on the types and sources of data being input into Frame Capture Unit 220.
FIG. 2A is a block diagram of a debugging and emulation system for an SOC according to another preferred embodiment of the present invention. The SERDES in FIG. 2A is bi-directional, in contrast to the uni-directional SERDES of FIG. 2. Thus, in addition to serving as the output for the testing and debugging data, the SERDES in FIG. 2A also serves as the input for the instructions and data which the testing and debugging program on PC 120 sends to embedded ICE 105 and embedded processor 110.
Some of the components of the SERDES in FIG. 2A have dual functions. For instance, Frame Sync Unit 250 in FIG. 2A acts as both a Frame Sync unit for the testing and debugging of data returning to the analysis software on PC 120, and as a Frame Capture Unit for the instructions and data which the analysis software on PC 120 is sending to the embedded ICE 105 and embedded processor 110. Both Serializer 230 and Deserializer 240 in FIG. 2A are combination Serializer/Deserializers for the bi-directional data traffic. Also, the Frame Sync Unit 250 and Frame Capture Unit 220 serve dual functions, namely frame synchronizing and frame capturing. The bi-directional SERDES of FIG. 2A may or may not need JTAG Monitor 210. It is contemplated that configuration data for Frame Capture Unit 220 may come directly from the analysis software on PC 120 through the bi-directional SERDES itself, thereby obviating any need for a separate JTAG Monitor 210. Furthermore, the present invention is not limited to using a JTAG interface, so that any hardware/firmware/software protocol for testing and debugging an integrated circuit may be used with the present invention.
A flow chart generally illustrating a method for testing and debugging an integrated circuit according to a preferred embodiment of the present invention is shown in FIG. 3. In step 310, the testing and debugging analysis software on PC 120 is initiated. In step 320, instructions for testing the integrated circuit and testing data are sent from the analysis software to the integrated circuit. In step 330, testing is performed on the integrated circuit in accordance with the testing instructions and data sent from the analysis software. The results of this testing and other data is stored in step 340. The stored data is serialized in step 350, and output off the integrated circuit in step 360. In step 370, the output data is deserialized and sent back to the analysis software in step 380. Finally, the testing results and data is analyzed in step 390 by the testing and debugging analysis software on PC 120.
Although the steps in FIG. 3 are shown in a particular order, it should be understood that these steps may occur in a different order, or even simultaneously. For example, steps 320 through 380 may be occurring substantially simultaneously, i.e., a train of instructions may be input (step 320) at the same time as results from the first instructions are arriving back at the analysis software in PC 120 (step 380). Furthermore, the steps should be understood in their broadest context. For example, storing step 340 may comprise storing testing results and data in longer term large-scale memory, such as ROM or RAM, for later framing operations, or in short term small scale memory, such as a bank of registers, for immediate processing and output.
FIG. 3A is a flowchart illustrating the sub-steps comprising the step of sending instructions for testing the integrated circuit and testing data from the analysis software to the integrated circuit (step 320 from FIG. 3) according to another embodiment of the present invention. These steps generally illustrate the operation of the embodiment shown in FIG. 2A. In such an embodiment, the inventive SERDES serves as both the input and the output for the testing and debugging operations. Returning to FIG. 3A, in step 322, the instructions and data from the analysis software on PC 120 are serialized before being input in step 324 into the integrated circuit. Once on-chip (i.e., in integrated circuit 200), the instructions and data are deserialized in step 326 so that they may be used by the on-chip testing and debugging hardware.
Some of the advantages of the present invention can be seen in the preferred embodiment described herein. Specifically, the number of pins required for the output of trace FIFO and other data is substantially reduced. Since there are a limited number of pins on an integrated circuit, the reduction of trace output pins increases the number of I/O pins available for other functions. This advantage will have increasing importance as integrated circuits become more complex and smaller. Another advantage is that, depending on the speed of the SERDES link, the data will be downloaded more quickly from the integrated circuit to the analyzing software. Yet another advantage is the elimination of the prior art high speed parallel interfaces which greatly increase chip power. Still another advantage is the reduced cost of packaging when implementing the present invention.
Thus, while there have shown and described and pointed out fundamental novel features of the invention as applied to a preferred embodiment thereof, it will be understood that various omissions and substitutions and changes in the form and details of the devices illustrated, and in their operation, may be made by those skilled in the art without departing from the spirit of the invention. For example, it is expressly intended that all combinations of those elements and/or method steps which perform substantially the same function in substantially the same way to achieve the same results are within the scope of the invention. Moreover, it should be recognized that structures and/or elements and/or method steps shown and/or described in connection with any disclosed form or embodiment of the invention may be incorporated in any other disclosed or described or suggested form or embodiment as a general matter of design choice. It is the intention, therefore, to be limited only as indicated by the scope of the claims appended hereto.

## Claims

1. A system for testing a target integrated circuit, comprising:
a test host for running a debugging and testing analysis program, wherein said debugging and testing analysis program transmits testing instructions and data to the target integrated circuit, receives testing results from the target integrated circuit, and analyzes the received testing results;
a testing interface on the target integrated circuit for receiving the testing instructions and data from the test host and forwarding the testing instructions and data;
a testing unit on the target integrated circuit for receiving the testing instructions and data from the testing interface and for performing testing and debugging of the integrated circuit;
a serializer for serializing testing results, and outputting the serialized testing results from the target integrated circuit;
a deserializer for deserializing the serialized testing results;
an analyzer for receiving the testing results from said deserializer, for storing the testing results, and forwarding the testing results to the test host; and
a Joint Task Action Group (JTAG) monitor in communication with the testing unit, wherein the analyzer receives the testing results based in part on input from the JTAG monitor.

2. The testing system of claim 1, wherein the testing interface is a Joint Task Action Group (JTAG) interface for receiving JTAG testing instructions and data.

3. The testing system of claim 1, wherein the testing unit is an embedded in-circuit emulator (ICE) for emulating the functionality of at least one processor on the target integrated circuit.

4. The testing system of claim 1, wherein the testing results comprise data from at least one of i) the testing unit, ii) at least one embedded processor on the target integrated circuit, iii) at least one memory on the target integrated circuit, iv) at least one peripheral module on the target integrated circuit; and v) any pin, register, datapath, or instruction path on the target integrated circuit.

5. The testing system of claim 1, further comprising:
a frame capture unit on the target integrated circuit for receiving testing results, for packaging the testing results into frames, and for forwarding the frames to the serializer.

6. The testing system of claim 5, further comprising:
a frame sync unit for receiving testing results from the deserializer, for synchronizing the received testing results to identify frame boundaries for unpacking the synchronized frames, and for forwarding the frames to the analyzer.

7. The testing system of claim 1, further comprising:
a trace buffer on the target integrated circuit for storing testing results and for forwarding the stored testing results to the serializer.

8. The testing system of claim 7, wherein the trace buffer comprises a trace first in, first out (FIFO) buffer.

9. The testing system of claim 1, wherein the serializer;
includes an input on the target integrated circuit for receiving the serialized testing instructions and data; and
the deserializer is located on the target integrated circuit.

10. A system for testing a target integrated circuit, comprising:
transmitting means for transmitting testing instructions and data to the target integrated circuit, for receiving testing results from the target integrated circuit, and for performing debugging and testing analysis of the target integrated circuit with the received testing results;
testing interface means on the target integrated circuit for receiving the testing instructions and data from the transmitting means and for forwarding the testing instructions and data;
testing means on the target integrated circuit for receiving the testing instructions and data from the testing interface means and for performing testing and debugging of at least one processing means on the integrated circuit;
serializing means for serializing testing results;
outputting means for outputting the serialized testing results from the target integrated circuit;
deserializing means for deserializing the serialized testing results;
analyzing means for receiving the testing results from the deserializing means, for storing the testing results, and for forwarding the testing results to the transmitting means; and
Joint Task Action Group (JTAG) monitor means for communicating with the testing means, wherein the analyzing means receives the testing results based in part on input from the JTAG monitor means.

11. The testing system of claim 10, wherein the testing interface means comprises a Joint Task Action Group (JTAG) interface means for receiving JTAG testing instructions and data.

12. The testing system of claim 10, wherein the testing means comprises an embedded in-circuit emulator (ICE) for emulating the functionality of at least one processor on the target integrated circuit.

13. The testing system of claim 10, wherein the testing results comprise data from at least one of: i) the testing unit, ii) at least one embedded processor, iii) at least one memory on the target integrated circuit, iv) at least one peripheral module on the target integrated circuit; and v) any pin, register, datapath, or instruction path on the target integrated circuit.

14. The testing system of claim 10, further comprising:
packaging means on the target integrated circuit for receiving testing results, for packaging the testing results into frames, and for forwarding the frames to the serializing means.

15. The testing system of claim 14, further comprising:
frame synchronizing means for receiving testing results from the deserializing means, for synchronizing the received testing results to identify frame boundaries, for unpacking synchronized frames corresponding to the identified frame boundaries, and for forwarding the frames to the analyzing means.

16. The testing system of claim 15, further comprising:
trace buffer means on the target integrated circuit for storing testing results and for forwarding the stored testing results to the frame synchronizing means.

17. The testing system of claim 16, wherein the trace buffer means comprises a trace first in, first out (FIFO) buffer.

18. The testing system of claim 10, further comprising:
a second serializing means for serializing incoming testing instructions and data;
an input means on the integrated circuit for receiving the serialized testing instructions and data; and
a second deserializing means on the integrated circuit for deserializing the input testing instructions and data before forwarding the testing instructions and data to the testing interface.

19. The testing system of claim 18, wherein the first and second serializing means, the first and second deserializing means, the input means, and the output means comprise a SERDES (serializer/deserializer).

20. A method for testing a target integrated circuit, comprising the steps of:
a) generating testing instructions and data;
b) transmitting the testing instructions and data to the target integrated circuit;
c) receiving the testing instructions and data at the target integrated circuit and forwarding the testing instructions and data to a testing unit on the integrated circuit;
d) performing testing and debugging of the integrated circuit according to the received testing instructions and data;
e) serializing testing results based in part on input from a Joint Task Action Group (JTAG) monitor;
f) outputting the serialized testing results from the target integrated circuit;
g) deserializing the serialized testing results;
h) forwarding the testing results from step (g); and
i) performing debugging and testing analysis of the target integrated circuit with the received testing results.

21. The method of claim 20, wherein step (c) is performed by a Joint Task Action Group (JTAG) interface means.

22. The method of claim 20, wherein step (d) is performed by an embedded in-circuit emulator (ICE) for emulating the functionality of the at least one processor on the target integrated circuit.

23. The method of claim 20, wherein the testing results comprise data from at least one of: i) the testing unit, ii) at least one embedded processor, iii) at least one memory on the target integrated circuit, iv) at least one peripheral module on the target integrated circuit; and v) any pin, register, datapath, or instruction path on the target integrated circuit.

24. The method of claim 20, further comprising the steps of:
receiving the testing results before step (e);
packaging the received testing results into frames; and
forwarding the frames to be serialized in step (e).

25. The method of claim 24, further comprising the steps of:
receiving deserialized testing results from step (g);
synchronizing the received testing results to identify frame boundaries; and
unpacking the synchronized frames corresponding to the identified frame boundaries;
wherein the testing results from the unpacked frames are forwarded in step (h).

26. The method of claim 20, further comprising the step of:
storing testing results on the target integrated circuit before step (e).

27. The method of claim 26, wherein the testing results are stored in a trace first in, first out (FIFO) buffer.

28. The method of claim 20, wherein step (b) further comprises the step of:
serializing the testing instructions and data.

29. The method of claim 28, wherein step (c) further comprises the steps of:
receiving the serialized testing instructions and data; and
deserializing the received testing instructions and data before forwarding them to the testing unit.

30. The testing system of claim 29, wherein a serializer performs the step of serializing the testing instructions and data, and the step of receiving the serialized testing instructions and data, and a deserializer performs the step of deserializing the received testing instructions and data before forwarding them to the testing unit.

31. An integrated circuit comprising:
an embedded processor;
an embedded in-circuit emulator (ICE) for testing and debugging the integrated circuit;
a trace buffer for storing testing and debugging data from said embedded ICE and said embedded processor;
a frame capture unit for receiving the testing data from said trace buffer, and for packaging the testing data into frames;
a serializer for receiving the framed testing data from said frame capture unit, for serializing the framed testing data, and for outputting the serialized data; and
a Joint Task Action Group (JTAG) monitor in communication with said embedded ICE and said frame capture unit for receiving configuration information from JTAG interface logic, wherein said frame capture unit is responsive to said JTAG monitor.

32. The integrated circuit of claim 31, further comprising at least one of:
at least one memory; and
at least one peripheral module;
wherein said frame capture unit receives data from the at least one of said at least one memory and said at least one peripheral module.

33. The integrated circuit of claim 31, wherein said trace buffer is a first-in, first-out (FIFO) buffer.

34. The integrated circuit of claim 31, further comprising:
a deserializer for receiving serialized testing instructions and data from a testing and debugging analysis system, for deserializing the received testing instructions and data, and for forwarding the deserialized testing instructions and data to said embedded ICE.

35. An integrated circuit comprising:
embedded processing means for processing data;
testing means for testing and debugging the integrated circuit;
memory means for storing testing and debugging data received from said testing means and said embedded processing means;
packaging means for packaging testing data received from said memory means in frames;
serializing means for serializing framed testing data received from said packaging means;
output means for outputting the serialized data; and
Joint Action Task Group (JTAG) monitoring means in communication with said testing means and said packaging means for receiving configuration information from Joint Task Action Group (JTAG) interface logic, wherein said packaging means is responsive to said monitoring means.

36. The integrated circuit of claim 35, further comprising at least one of:
at least one memory means; and
at least one peripheral module;
wherein said packaging means receives data from the at least one of said at least one memory means and said at least one peripheral module.

37. The integrated circuit of claim 35, wherein said memory means comprises a first-in, first-out (FIFO) buffer.

38. The integrated circuit of claim 35, further comprising:
deserializing means for receiving serialized testing instructions and data from a testing and debugging analysis system, for deserializing the received testing instructions and data, and for forwarding the deserialized testing instructions and data to said testing means.

39. A method of testing a target integrated circuit comprising the steps of:
receiving testing instructions and data;
testing the target integrated circuit according to the received testing instructions and data;
storing testing results in a trace buffer;
packaging the stored testing results into frames based in part on input from a Joint Task Action Group (JTAG) monitor;
serializing the framed testing results; and
outputting the serialized testing results.

40. The method of claim 39, wherein the testing results comprise data generated by at least one of: i) at least one of a testing unit, ii) at least one embedded processor, iii) at least one memory on the target integrated circuit, iv) at least one peripheral module on the target integrated circuit; and v) any pin, register, datapath, or instruction path on the target integrated circuit.

41. The method of claim 39, further comprising the step of:
receiving configuration information from Joint Task Action Group (JTAG) interface logic on the integrated circuit, wherein the step of packaging is performed in accordance with the configuration information.

42. The method of claim 39, wherein the testing results are stored in a first-in, first-out (FIFO) buffer.

43. The method of claim 39, wherein the step of receiving testing instructions and data comprises the steps of:
deserializing serialized testing instructions and data.

44. An integrated circuit comprising:
combinatorial logic for testing and debugging the integrated circuit;
a trace buffer for storing testing and debugging data from said combinatorial logic;
a frame capture unit for receiving the testing data from said trace buffer, and for packaging the testing data into frames;
a serializer for receiving the framed testing data from said frame capture unit, for serializing the framed testing data, and for outputting the serialized data; and
a Joint Task Action Group (JTAG) monitor in communication with said combinatorial logic and said frame capture unit for receiving configuration information from JTAG interface logic, wherein said frame capture unit is responsive to said JTAG monitor.

45. The integrated circuit of claim 44, further comprising at least one of:
at least one memory; and
at least one peripheral module;
wherein said frame capture unit receives data from the at least one of said at least one memory and said at least one peripheral module.

46. The integrated circuit of claim 44, wherein said trace buffer is a first-in, first-out (FIFO) buffer.

47. The integrated circuit of claim 44, further comprising:
a deserializer for receiving serialized testing instructions and data from a testing and debugging analysis system, for deserializing the received testing instructions and data, and for forwarding the deserialized testing instructions and data to said combinatorial logic.

48. An integrated circuit comprising:
combinatorial logic means for testing and debugging the integrated circuit;
memory means for storing testing and debugging data received from said combinatorial logic;
packaging means for packaging testing data received from said memory means in frames;
serializing means for serializing framed testing data received from said packaging means;
output means for outputting the serialized data; and
Joint Action Task Group (JTAG) monitoring means in communication with said combinatorial logic means and said packaging means for receiving configuration information from Joint Task Action Group (JTAG) interface logic, wherein said packaging means is responsive to said monitoring means.

49. The integrated circuit of claim 48, further comprising at least one of:
at least one memory means; and
at least one peripheral module;
wherein said packaging means receives data from the at least one of said at least one memory means and said at least one peripheral module.

50. The integrated circuit of claim 48, wherein said memory means comprises a first-in, first-out (FIFO) buffer.

51. The integrated circuit of claim 48, further comprising:
deserializing means for receiving serialized testing instructions and data from a testing and debugging analysis system, for deserializing the received testing instructions and data, and for forwarding the deserialized testing instructions and data to said testing means.

52. An integrated circuit comprising:
an embedded processor;
an embedded in-circuit emulator (ICE) for testing and debugging the integrated circuit;
a trace buffer for storing testing data and debugging data from said embedded ICE and said embedded processor;
a frame capture unit for receiving the testing data from said trace buffer, and for packaging the testing data into frames;
a serializer for receiving the framed testing data from said frame capture unit, for serializing the framed testing data, and for outputting the serialized data; and
a monitor in communication with said embedded ICE and said frame capture unit for transmitting configuration information to the frame capture unit, wherein said frame capture unit is responsive to said configuration information.