Integrated Circuit Including a Programmable Logic Analyzer with Enhanced Analyzing and Debugging Capabilities and a Method Therefor
An integrated circuit including a logic analyzer with enhanced analyzing and debugging capabilities and a method therefor. In one embodiment of the present invention, an embedded logic analyzer (ELA) receives a plurality of signals from a plurality of buses within an integrated circuit (IC). The ELA includes an interconnect module to select a trigger signal and/or a sampled signal from the plurality of received signals. A trigger module sets at least one trigger condition and detects if the trigger signal satisfies the at least one trigger condition. When the trigger condition is satisfied, an output module performs at least one task based upon the satisfied at least one trigger condition. If a sampling process is initiated by the output module, the plurality of sampled signals is sampled and may be stored in a memory. The capability of the output module to perform multiple user-defined tasks enhances the debugging capability of the ELA and makes it more versatile.
Pursuant to 37 C.F.R. §1.78, this application is a continuation-in-part application and claims the benefit of the earlier filing date of application Ser. No. 12/542,976, filed Aug. 18, 2009, entitled “An Integrated Circuit Including a Programmable Logic Analyzer with Enhanced Analyzing and Debugging Capabilities and a Method Therefor,” the content of which is hereby incorporated by reference in its entirety.
BACKGROUND1. Field of the Invention
The present invention relates generally to an embedded logic analyzer, and particularly to a programmable embedded logic analyzer for analyzing an electronic circuit.
2. Description of the Related Art
A logic analyzer is an electronic instrument that is used to capture and display data signals of an electronic circuit. Generally, the logic analyzer captures the data signals that are too fast to be observed by a user. The user observes the data signals captured by the logic analyzer to effectively analyze the electronic circuit and to take preemptive actions or to debug based on the analysis.
Logic Analyzers may be broadly classified as external logic analyzers and embedded logic analyzers. The embedded logic analyzer is generally included within a programmable logic device or an integrated circuit (IC), e.g., a complex programmable logic device (CPLD), field programmable gate array (FPGA), application specific integrated circuit (ASIC), etc. The embedded logic analyzer has the ability to capture large amounts of high speed data signals within the IC.
The embedded logic analyzer may include a memory to store the captured data signals. Usually, the embedded logic analyzer is programmable to capture and store the data signals specified by the user. The data signals stored by the embedded logic analyzer may be transferred to a computer for further analysis. The data signals are generally transferred to the computer through an interface provided on the IC.
IF (<TRIGGER CONDITION>) THEN (SAMPLE SIGNALS(X)),
wherein the TRIGGER CONDITION is any logical operation or a series of logical operations and the SIGNALS (X) are the plurality of signals to be sampled from the interconnect module 110. According to the code executed by the ELA 100, when the trigger condition is satisfied, the ELA 100 samples at least one sampled signal and stores the sampled signal in the memory 140.
However, conventional ELAs are limited to sampling when the trigger condition is satisfied. Further, conventional ELAs do not capture, analyze, and/or debug software data or firmware data signals within the IC, and additional instrument(s) may be necessary in order to analyze these types of data. Additionally, in order to program the ELA or to analyze the data stored within the ELA, the user is required to be present at a workstation where the ELA is installed.
It would be desirable therefore to provide an ELA with enhanced analyzing and debugging capabilities to obviate the above-mentioned problems.
SUMMARY OF THE INVENTIONExemplary embodiments of the present invention overcome the shortcomings in known logic analyzers and thereby satisfy a significant need for a mechanism for effectively testing and debugging a system. In accordance with an exemplary embodiment, there is disclosed an integrated circuit including a logic analyzer having a first input receiving a plurality of signals and a first output for providing selected samples of the signals appearing at the first input; and a first block having a first input coupled to the logic analyzer for receiving one or more of the signals appearing at the first input thereof and an output coupled to the logic analyzer for directly providing a distinct set of one or more signals thereto that is based upon the one or more signals at the first input of the first block according to a predetermined function, the predetermined function being configurable. By providing a distinct signal set to the logic analyzer based upon the one or more signals appearing at the first input of the logic analyzer, the first block provides added flexibility in being able to efficiently perform both system-level and subsystem-level test and debug operations.
According to another exemplary embodiment, there is disclosed a system including an integrated circuit having an embedded logic analyzer block with an input for receiving a plurality of signals and a trigger event block for detecting an occurrence of an event based in part upon the plurality of signals; and a block coupled to the embedded logic analyzer and having an output that is based upon the detection of the occurrence of the event, the output being provided to the embedded logic analyzer for sampling or storage therein. By providing to the embedded logic analyzer an output for sampling or storage that is based upon the detection or occurrence of an event, the block advantageously allows for a more efficient mechanism for sampling and storing system data.
Additional features and advantages of the invention will be set forth in the detailed description which follows, and in part will be readily apparent to those skilled in the art from that description or recognized by practicing the invention as described herein, including the detailed description which follows, the claims, as well as the appended drawings.
It is to be understood that both the foregoing general description and the following detailed description of the present embodiments of the invention and are intended to provide an overview or framework for understanding the nature and character of the invention as it is claimed. The accompanying drawings are included to provide a further understanding of the invention and are incorporated into and constitute a part of this specification. The drawings illustrate various embodiments of the invention and together with the description serve to explain the principles and operation of the invention.
The above-mentioned and other features and advantages of the various embodiments of the invention, and the manner of attaining them, will become more apparent will be better understood by reference to the accompanying drawings, wherein:
Reference will now be made in detail to the exemplary embodiment(s) of the invention, as illustrated in the accompanying drawings. Whenever possible, the same reference numerals will be used throughout the drawings to refer to the same or like parts.
The present invention is directed to a programmable embedded logic analyzer included within an integrated circuit having enhanced analyzing and debugging capabilities.
The IC 260 includes a plurality of buses 265 that carry the plurality of candidate signals. The plurality of signals includes at least one sampled signal and at least one trigger signal. The interconnect module 210 receives the plurality of signals from the plurality of buses 265. The interconnect module 210 is programmable to select at least one sampled signal and/or at least one trigger signal from the plurality of received signals. Essentially, the interconnect module 210 selects the sampled signal(s) and/or trigger signal(s) specified by a user. In one embodiment, the interconnect module 210 may be a multiplexer.
The interconnect module 210 routes the trigger signal to the trigger module 220. The trigger module 220 is programmable to set the trigger condition. The trigger condition may be a single logical operation (e.g., a simple event) or a series of logical operations (e.g., a complex series of events performed by a finite state machine). The trigger module 220 detects if the at least one trigger condition is satisfied by the trigger signal. If the trigger condition is satisfied, the trigger module 220 provides information to the output module 230.
The output module 230 performs at least one task from a group of tasks based upon, in response to, or as a result of the satisfaction of the at least one trigger condition. The group of tasks may include modifying at least one signal from the plurality of received signals, modifying the at least one trigger condition, and initiating a sampling process. In one embodiment, the output module 230 is a field programmable gate array.
If the output module 230 initiates the sampling process, a sampling controller 240 starts sampling the sampled signal from the interconnect module 210. The sampled signal sampled by the sampling controller 240 may be stored in a memory 250. The signals stored in a memory 250 may be transferred to a computer (not shown) for analysis. Such signal transfer to the computer may occur through a communication port 280 such as a USB port. The signals transferred to the computer may then be analyzed by the user.
While
The output module 230 may be programmed or configured to modify at least one signal based upon, in response to, or as a result of the satisfied trigger condition. If the satisfied trigger condition indicates an error, the output module 230 may modify at least one signal from the plurality of signals received by the ELA 200 to correct the indicated error. For example, if a value of signal ‘X’ has to be 30 for error-free operation of the apparatus 300, and if the trigger condition X≠30 is satisfied, the output module 230 modifies the value of signal X to bring the value of the signal to 30 for error free operation of the apparatus 300.
The output module 230 may also instruct a controller 270 (shown in
IF (<CONDITION>) THEN (<ACTION(S)>),
wherein ACTION(S) is at least any one of the above mentioned actions performed by the output module or the controller, and CONDITION is the trigger condition set by the user.
In one embodiment, as shown in
The ELA 200 may be programmed to automatically and periodically send the stored sampled signals to the remote host 410 for analysis. For example, the ELA 200 embedded within a printer may be programmed to automatically and periodically send an encoder signal to the remote host 410. The encoder signal indicates the motion of the motor within the printer. If it is determined that the encoder signals are decaying or going into a bad state, a remote user may provide instruction to service the printer. In one embodiment, the ELA 200 is programmable to transfer stored data signals to the remote host 410 if such instruction or command is received from the remote host 410.
In another embodiment, as illustrated in
Each data signal from the plurality of data signals is associated with a data field and an address field. The data field provides the value of the data signal to be stored and the address field specifies a location in the storage medium 510 where the data signal is stored. The storage medium 510 includes a plurality of memory locations. Each of the plurality of memory locations has a unique address. The plurality of data signals stored in the storage medium 510 is supplied to the interconnect module 210 through the plurality of buses on the IC 260. Essentially, the storage medium 510 is in electrical communication with the plurality of buses on the IC 260 to supply the stored data signals to the interconnect module 210.
The stored data signals supplied to the interconnect module 210 includes the hardware, software and/or firmware data signals. The data signals include a plurality of sampled signals and at least one trigger signal. The interconnect module 210 selects the plurality of sampled signals and at least one trigger signal from the plurality of received data signals. The trigger signal is supplied to the trigger module 220. The trigger module 220 detects if the trigger signal satisfies at least one trigger condition. If the trigger condition is satisfied, the sampling controller 240 samples the plurality of sampled signals from the interconnect module 210. The plurality of sampled signals is stored in the memory 250. The plurality of stored signals along with other stored signals is transferred to the computer for analysis. Therefore, the software, hardware and/or firmware signals can be analyzed simultaneously on the computer.
In another embodiment, as illustrated in
In yet another embodiment, as illustrated in
In an alternate embodiment, the IC 700 may be communicatively coupled to the ELA 200 of
The IC 700 may include the network access device 400. The network access device 400 communicatively couples the IC 700 to the remote host 410. The remote host 410 can program the ELA 100 disposed on the IC 700. The remote host 410 can also analyze the sampled signals stored in the ELA 100. Therefore, the remote host 410 can diagnose an apparatus 730 embedding the ELA 100 and the network access device 400.
Upon the initiation of the sampling process, the sampling controller 240 samples the plurality of software signals that is to be sampled from the interconnect module 210 (block 840). The sampled software signals may then be stored in the memory 250 at block 845. The stored software signals may also be transferred to the computer for analysis by a program running on the computer or by a user.
It will be appreciated by one of ordinary skill in the art the present invention is not limited to software signals. Rather other signals, such as hardware and firmware, may be captured instead of and/or in combination with software signals.
It is further understood that the phrases “test” and “debug” are intended to include those operations typically performed during development, testing, debugging, system analysis and in-field monitoring and servicing of the system and its system modules M, and is not intended to be limited to only one phase or time period of system activity from design through the usable life of the system.
Integrated circuit 900 may also include a custom block 904 which receives one or more signals associated with embedded logic analyzer 902. In particular, custom block 904 may receive as an input one or more signals provided to embedded logic analyzer 902 from the other modules M of the system. Such signals may include signals that are available for sampling or event triggering by embedded logic analyzer 902. Custom block 904 may generate at its output one or more output signals that are based upon the one or more received input signals and which are fed back into embedded logic analyzer 902 for sampling or triggering. By providing to embedded logic analyzer 902 one or more additional signals for sampling and/or event triggering that is based upon signals associated with embedded logic analyzer 902, embedded logic analyzer 902 may more efficiently debug a system in which integrated circuit 900 is disposed.
Custom block 904 may include circuitry that is specific to the particular system and/or system modules M which are available for test and/or debug using embedded logic analyzer 902. In an exemplary embodiment of the present invention, custom block 904 is configurable so that the signals generated thereby may be configurable. Having custom block 904 configurable advantageously allows for substantial flexibility for testing and/or debugging a wide variety of system modules M and system signals generated thereby. Custom block 904 may be implemented as a FPGA or CPLD. Alternatively, custom block 904 may be implemented with a processor having memory coupled thereto for storing code for execution by the processor. By having the memory accessible for loading different code, custom block 904 may provide sufficient flexibility to test and/or debug a substantially large number of different system modules M. In yet another alternative, custom block 904 may include state machine circuitry that is programmable in part by programming and/or storing information into registers that are located in or associated with the state machine. It is understood that custom block 904 may be implemented in any number of ways to provide configurable functionality and signal generation.
As shown in
Integrated circuit 900 may further include an interface 906 which may be used for accessing custom block 904 and embedded logic analyzer 902. In particular, interface 906 may provide a wired or wireless connection with a network device on a network, such as a remote host (not shown). Interface 906 may provide the necessary interface between the network device and various blocks in integrated circuit 900, including embedded logic analyzer 902 and custom block 904. Embedded logic analyzer 902, and particularly interconnect module 210 and trigger module 220, may be controlled, configured and/or programmed using interface 906. In addition, the data sampled by embedded logic analyzer 902 may be downloaded to a network device for analysis via interface 906.
As mentioned above, custom block 904 may be accessible using interface 906. For example, in the event custom block 904 is reconfigurable and/or programmable, custom block 904 may be configured by a network device using interface 906 to generate one or more output signals tailored to the particular system modules M being tested or debugged. In addition or in the alternative, custom block 904 may be controlled by a remote host during system test or debug using interface 906. As a result, custom block 904 may be configured at runtime of a system level test or debug session.
Like custom block 904 in
Further, custom block 920 may receive as an input one or more signals generated by trigger module 220. In particular, one or more trigger signals generated by trigger module 220, which indicates the detection of at least one event, may be provided as an input to custom block 920. One or more output signals generated by custom block 920 may be based upon the one or more trigger signals generated by trigger module 220. In this way, an output signal generated by custom block 920 may be defined based upon signals generated by system modules M under test or debug as well as actions that are defined and executed at runtime of a test or debug session.
For example, a trigger signal generated by trigger module 220 of embedded logic analyzer 902 and provided to custom block 920 may be used to enable signal generating circuitry within custom block 920. In one implementation, custom block 920 may be configured or otherwise programmed as an accumulator to count a number of events, such as the number of words read from memory by a direct memory access (DMA) system module. One testing or debugging the system selects the DMA module to monitor and controls, programs and/or configures trigger module 220 accordingly using interface 906. A trigger program by which trigger module 220 is configured may include an action to trigger accumulation. Upon detection of the condition of one or more signals provided to trigger module 220, a trigger signal generated by trigger module 220 indicates detection of the condition and enables the accumulator configured within custom block 920 to begin accumulating.
Trigger module 220 may also, either via the same trigger signal used to enable custom block 920 or a different trigger signal, disable custom block 920 following its enablement. The signal used for disabling may be driven by circuitry that is configurable and/or programmable and detect the occurrence of at least one trigger event relating to one or more signals received by trigger module 220. In the event custom block 920 is configured as an accumulator, following disablement the output of the accumulator is provided to the input of embedded logic analyzer 902 for selective sampling by memory controller 240 or event triggering by trigger module 220. By controlling the accumulator function within custom block 920 to accumulate only upon the occurrence of a user specified trigger event and providing the accumulated result to embedded logic analyzer 902, substantially less memory is needed to store samples of the output of the accumulator function than would otherwise be necessary in order to count the number of words read by the DMA system module.
The particulars of the trigger event for controlling, enabling and/or disabling custom block 902 may be configured or programmed at runtime of a test or debug session, like any other trigger event monitored by trigger module 220. The trigger event for disabling custom block 920, for example, may be based in part upon a predetermined period of time lapsing following its enablement, wherein the predetermined period of time is configured or otherwise programmed at runtime. It is understood, though that the trigger event may be based upon any of a number of functions or operations defined within trigger module 220 and upon one or more signals received thereby.
It is understood that custom blocks 904 and 920 may be utilized in the same integrated circuit chip.
It is understood that integrated circuits 900, 910 and 940 may be used in virtually any system which may benefit from an embedded mechanism to facilitate the efficient testing and debugging of the system and the system modules M thereof. For example, a printer, all-in-one printing device or multifunction printer may include integrated circuit 900.
Use of custom blocks 904 and 920 has been seen to substantially reduce the amount of memory necessary for storing signals sampled by embedded logic analyzer 902. For instance, a printer or other imaging device may include a serial interface for providing to the printer printhead print data for an entire print job, which may require gigabytes of storage. If it is desired to know the number of times a specific nozzle in the printhead fires, custom block 904 or 920 may be configured to receive the signal from the serial interface and generate a signal indicative of the particular nozzle firing, without any information relating to any other nozzle of the printhead. The generated signal may be provided as an input to embedded logic analyzer 902 for selectively sampling during a test/debug session. Sampling and storage in memory of the custom generated signal has been seen to occupy only kilobytes of memory, substantially less than the amount of memory needed to sample and store the entire serial interface.
A mechanism for testing and debugging a system may include, in addition to custom blocks 904 and 920, software to communicate with embedded logic analyzer 902 and custom blocks 904 and 920. The software provides the user with the ability to select in-system options for such blocks and control or otherwise program them after the system has been synthesized and/or assembled, such as at runtime of a system test or debug session. The software, including a user interface, provides communication with embedded logic analyzer 902 and blocks 904 and 920 via interface 906. The software may be used to receive at a remote device the data sampled and stored by embedded logic analyzer 902 and display the signals to the remote device user.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit and scope of the invention. For example, it is understood that the embedded logic analyzer 902 may include an output module 230 and controller 270 found in embedded logic analyzer 200 of
Claims
1. An apparatus, comprising:
- an integrated circuit, comprising: logic analyzer circuitry having a first input receiving a plurality of signals, and a first output for providing selected samples of the signals appearing at the first input; and a first block having a first input coupled to the logic analyzer circuitry for receiving one or more of the signals appearing at the first input thereof and an output coupled to the logic analyzer circuitry for directly providing a distinct set of one or more signals thereto that are based upon the one or more signals at the first input of the first block according to a predetermined function, the predetermined function being configurable.
2. The apparatus of claim 1, wherein the logic analyzer circuitry includes a second output for providing an indication of a detection, by the logic analyzer circuitry, of at least one trigger event, wherein the first block includes a second input coupled to the second output of the logic analyzer circuitry, and wherein the output of the first block is selectively based upon the signals received at the first and second inputs thereof.
3. The apparatus of claim 2, wherein the first block is configurable as an accumulator, the accumulator being enabled by the second output of the logic analyzer circuitry.
4. The apparatus of claim 2, wherein the first block is configurable to perform a function that is enabled by the second output of the logic analyzer circuitry.
5. The apparatus of claim 1, wherein the logic analyzer circuitry comprises a multiplexer block coupled to the first input of the logic analyzer circuitry, and a trigger event block coupled to an output of the input multiplexer block for detecting at least one trigger event, wherein the distinct set of one or more signals is provided to an input of the trigger event block.
6. The apparatus of claim 1, wherein the logic analyzer circuitry comprises an output control block for selectively sampling signals appearing at the first input of the logic analyzer circuitry and at the output of the first block.
7. The apparatus of claim 1, wherein the first block comprises field programmable circuitry.
8. The apparatus of claim 1, wherein the logic analyzer circuitry comprises an input multiplexer block having a first input coupled to the first input of the logic analyzer circuitry and a second input coupled to the first output of the first block.
9. The apparatus of claim 1, wherein the distinct set of one or more signals provided to the logic analyzer circuitry by the first block is available for at least one of selectively sampling and selectively detecting a trigger event by the logic analyzer circuitry.
10. An integrated circuit, comprising:
- logic analyzer circuitry having a first input receiving a plurality of signals, and a first output for providing selected samples of the signals appearing at the first input; and
- a first block having a first input coupled to the logic analyzer circuitry for receiving one or more of the signals appearing at the first input thereof and an output coupled to the logic analyzer circuitry for directly providing a distinct set of one or more signals thereto that are based upon the one or more signals at the first input of the first block according to a predetermined function, the predetermined function being configurable.
11. The integrated circuit of claim 1, wherein the logic analyzer circuitry includes a second output for providing an indication of a detection, by the logic analyzer circuitry, of at least one trigger event, wherein the first block includes a second input coupled to the second output of the logic analyzer circuitry, and wherein the output of the first block is selectively based upon the signals received at the first and second inputs thereof.
12. The integrated circuit of claim 11, wherein the first block is configurable to perform a function that is enabled by the second output of the logic analyzer circuitry.
13. The integrated circuit of claim 10, wherein the first block comprises field programmable circuitry.
14. The integrated circuit of claim 10, further comprising an interface for configuring the predetermined function of the first block.
15. The integrated circuit of claim 10, wherein the logic analyzer circuitry comprises a multiplexer block coupled to the first input of the logic analyzer circuitry, and a trigger event block coupled to an output of the input multiplexer block for detecting at least one trigger event, wherein the distinct set of one or more signals is provided to an input of the trigger event block.
16. The integrated circuit of claim 10, wherein the logic analyzer circuitry comprises an output control block for selectively sampling signals appearing at the first input of the logic analyzer circuitry and at the output of the first block.
17. The integrated circuit of claim 10, wherein the distinct set of one or more signals provided to the logic analyzer circuitry by the first block is available for at least one of selectively sampling and selectively detecting a trigger event by the logic analyzer.
18. A system, comprising:
- an integrated circuit, comprising: an embedded logic analyzer block having an input for receiving a plurality of signals and a trigger event block for detecting an occurrence of an event based in part upon the plurality of signals; a block coupled to the embedded logic analyzer block and having an output that is based upon the detection of the occurrence of the event, the output being provided to the embedded logic analyzer block for sampling or storage therein.
19. The system of claim 18, wherein the block is configurable to perform a function that is enabled based in part upon the detection of the occurrence of the event.
20. The system of claim 18, wherein the output is based in part upon at least one of the plurality of signals appearing at the input of the embedded logic analyzer block.
Type: Application
Filed: Sep 8, 2010
Publication Date: Feb 24, 2011
Patent Grant number: 8914681
Inventor: James Ray Bailey (Georgetown, KY)
Application Number: 12/877,819
International Classification: G01R 31/3177 (20060101); G06F 11/25 (20060101);