US 20050257087 A1
Among the embodiments of the present invention is a technique that includes executing a first protocol on test bus (40) in accordance with an established test standard to operate a first topology of several test ports (70) and activating to a shadow controller (60) by executing a second protocol on test bus (40). Operation of the test ports (70) is suspended during execution of the second protocol. During activation, the shadow controller (60) can be used to set-up a second topology of one or more of test ports (70) for operation after the test port suspension is discontinued.
16. A method, comprising
providing a device responsive to a test clock, the device including a first test controller and a second test controller;
operating the first test controller while the second test controller is inactive;
establishing a suspension of the test clock to activate the second test controller; and
operating the second test controller.
17. The method of
18. The method of
19. The method of
20. The method of
21. The method of
22. The method of
running the test clock during operation of the second test controller; and
suspending the test clock to halt the operation of second test controller; and
resuming running of the test clock after said suspending to operate the first test controller.
23. An apparatus, comprising:
a test bus;
several test ports each including a controller, the test ports being operable in accordance with an established standard during a first mode of operation; and
a first shadow controller coupled between the test bus and the test ports, the first shadow controller including a storage device to store information corresponding to a selection of one or more of the test ports during a second mode of operation, the test ports being inactive during the second mode of operation, the one or more of the test ports selected with the information being operable in accordance with the established test standard upon return to the first mode of operation, the first shadow controller being inactive during the first mode of operation.
24. The apparatus of
25. The apparatus of
26. The apparatus of
27. The apparatus of
28. The apparatus of
the test bus includes a serial data out path, a serial data in path, a test clock path, and a test mode selection path;
the established test standard is the JTAG standard, the serial data out path corresponds to a TDO bus line of the JTAG standard, the serial data in line corresponds to a TDI bus line of the JTAG standard, the test clock path corresponds to the TCK bus line of the JTAG standard, the test mode selection path corresponds to the TMS bus line of the JTAG standard; and
a circuit device includes the test bus, the test ports, and the first shadow controller, and further comprising equipment coupled to the test bus.
29. An apparatus, comprising: a processor-readable device encoded with a plurality of processor instructions executable to: perform a boundary scan test through a serially concatenated chain of several test access ports in accordance with an established test bus protocol, halt a test clock signal to suspend operation of the test access ports, and operate the shadow controller during suspension of the test access ports.
30. The apparatus of
31. The apparatus of
32. The apparatus of
33. The apparatus of
34. The apparatus of
35. A method, comprising:
providing a circuit device with several test ports operating in a first topology in accordance with an established test standard;
suspending operation of the test ports to establish a second topology of one or more of the test ports with a shadow controller coupled to a test bus; and
operating the one or more of the test ports of the second topology in accordance with the established test standard after said suspending, the shadow controller being inactive during said operating.
36. The method of
activating the shadow controller during said suspending to operate in accordance with the established test standard; and
deactivating the shadow controller during said suspending.
37. The method of
38. The method of
39. The method of
40. A method, comprising:
halting a test clock to suspend operation of several test ports;
operating a shadow controller while the test ports are suspended; and
resuming operation of one or more of the test ports after said operating.
41. The method of
42. The method of
43. The method of
The present invention relates to electronic devices, and more particularly, but not exclusively, relates to utilization of test circuitry for debugging operations and the ability to reconfigure test circuit topology.
Testing of electronic circuit boards and corresponding component connections can be performed with a so-called “bed of nails” tester. Typically, this type of tester includes probes to contact selected electrical nodes and generate test signals to verify proper electrical continuity and isolation. With the advent of circuit boards having multiple conductive layers and more complex integrated circuit devices, bed of nails testers have often proved inadequate.
One effort to provide better testing of circuitry resulted in the Joint Test Action Group (JTAG) creation of IEEE/ANSI standard 1149.1. As used herein, “JTAG standard” refers to the latest revision of the IEEE/ANSI standard 1149.1 in effect on or before 1 Nov. 2001. The JTAG standard is based on a test bus that includes at least four signal lines: a Test Data Output (TDO) line, a Test Data Input (TDI) line, a Test Mode Select (TMS) line, and a Test Clock (TCK) line. The JTAG test bus may optionally include a fifth line for Test Logic Reset (TRST). The JTAG test bus is arranged to communicate with JTAG compliant Test Access Ports (TAPs) embedded in the circuitry to be tested. Several TAPs can be utilized in a given device under test that each have a corresponding TDO interface and TDI interface. The TDO interface of one TAP can be connected to the TDI interface of another TAP to form a serially connected chain. Test equipment can be connected to the test bus to exercise the device under test, with the TDO bus line connected to the unconnected TDI interface of the TAP at one end of the chain and the TDI bus line connected to the TDO interface of the TAP at the other end of the chain to form a serially interconnected communication ring.
In contrast, the TMS and TCK bus lines are provided to each of the TAPs in parallel. The JTAG standard defines a finite state machine synchronized by with the test clock signal TCK. The various states of this machine facilitate the communication of data or commands to the TAPs through the chain, such that a boundary scan operation can be performed. The sequence of JTAG states are provided as a function of the state of TMS relative to the number of cycles TCK has run.
With the continued increase in circuit complexity, including, but not limited to the development of “System on a Chip” (SoC) technology, it has become desirable to include many TAPs on a circuit device, and possibly in the same integrated circuit. Indeed, SoC devices typically include memory, one or more processors, and other logic that would be desirable to test. For these complex technologies, the ability to single-out circuitry associated with only one TAP or to serially concatenate less than all available TAPs can be useful in the performance of various debug operations. To conserve chip space and/or reduce or eliminate the need for debug-dedicated interconnections, there is frequently a preference to perform debug operations with existing test architecture, such as the JTAG bus and TAPs.
One attempt to utilize existing test architecture for the JTAG standard is based on the JTAG by-pass command. While this command may be used to isolate a selected TAP; it does so by hampering the restoration of instruction registers in other TAPs. In another attempt, a TAP linking module has been proposed that selectively addresses subordinate TAPs. Unfortunately, this linking module scheme requires that address information be appended to standard JTAG communication packets by the host equipment, preventing backwards compatibility. As a consequence, an additional linking module override I/O pin has been proposed. Such modifications are problematic in many instances.
Thus, there is a need for further contributions in this area of technology. The present invention addresses this need.
One embodiment of the present invention is a unique technique for utilizing test circuitry. Other embodiments of the present invention include unique devices, methods, systems, and apparatus to test circuitry and/or debug device operation.
A further embodiment of the present invention includes halting a test clock to suspend operation of several test ports; operating a shadow controller while the test ports are suspended; and resuming operation of one or more of the test ports after said operating.
In another embodiment of the present invention, an apparatus includes a test bus, several test ports each including a controller, and a shadow controller coupled between the test bus and the test ports. The test ports are each operable in accordance with an established test standard during a first mode of operation. The shadow controller includes a storage device to store information corresponding to a selection of one or more of the test ports during a second mode of operation. The test ports are inactive during the second mode of operation. The one or more of the test ports selected with the information operate in accordance with the established test standard upon return to the first mode of operation.
Still another embodiment includes a processor-readable device encoded with processor instructions that are executable to perform a boundary scan test through a scan chain of several test access ports in accordance with an established test bus protocol. The instructions are further executable to suspend a test clock signal, store information in a shadow controller to define a different configuration of the test access ports, and operate the different configuration of the test access ports in accordance with the established test bus protocol.
Yet a further embodiment of the present invention includes: providing a device responsive to a test clock signal that includes a number of test ports arranged in a first configuration; suspending operation of the test ports; defining a second configuration of the test ports during the suspension; and operating the device in accordance with the second configuration.
One object of the present invention is to provide a unique technique for utilizing test circuitry.
Another object of the present invention is to provide a unique device, method, system, or apparatus to test circuitry and/or debug device operation.
Further objects, embodiments, forms, features, benefits, and advantages of the present invention shall become apparent from the description and figures included herewith.
While the present invention may be embodied in many different forms, for the purpose of promoting an understanding of the principles of the invention, reference will now be made to the embodiments illustrated in the drawings and specific language will be used to describe the same. It will nevertheless be understood that no limitation of the scope of the invention is thereby intended. Any alterations and further modifications in the described embodiments, and any further applications of the principles of the invention as described herein are contemplated as would normally occur to one skilled in the art to which the invention relates.
Components 30 are operatively coupled to test bus 40. Test bus 40 includes parallel test clock bus line 42, test mode select bus line 44, and test logic reset bus line 46, corresponding to the TCK, TMS, and TRST signals, respectively, of the JTAG standard. Test bus 40 also includes serial scan chain 48. Chain 48 includes the Test Data Out (TDO) bus line 48 a which is provided to test data input (I/P) 32 a of SoC device 32. Chain 48 also includes serial test data line 48 b interconnecting test data output (O/P) 32 b of SoC device 32 to test data input 34 a of SoC device 34 and serial test data line 48 c interconnecting test data output 34 b of SoC 34 to test data input 36 a of circuit device 36. Chain 48 also includes Test Data Input (TDI) bus line 48 d connected to test data output 36 b.
Test bus lines 42, 44, 46, 48 a and 48 d are connected to bus master equipment 50. Equipment 50 includes one or more operator input (I/P) device(s) 50 a and one or more operator output (O/P) device(s) 50 b. Input device(s) 50 a can include a conventional mouse, keyboard, trackball, light pen, voice recognition subsystem, and/or different input device type as would occur to those skilled in the art. Output device(s) 50 b can include a conventional graphic display, such as a color or non-color plasma, Cathode Ray Tube (CRT), or Liquid Crystal Display (LCD) type; color or non-color printer; aural output system; and/or different output device type as would occur to those skilled in the art. Further, in other embodiments, more or fewer operator input device(s) 50 a or operator output device(s) 50 b maybe utilized.
Equipment 50 also includes one or more processor(s) 52 operatively coupled to input device(s) 50 a, output device(s) 50 b, and memory 54. Processor(s) 52 are of a programmable type that can execute software-programming instructions stored in at least a portion of memory 54. Equipment 50 includes one or more programs to control test bus 40 as a bus master under the JTAG standard, and provide signal emulation for testing in accordance with the JTAG standard. This programming further provides for the execution of routine 120, including a hidden, non-JTAG protocol, as more fully described in connection with
Processor(s) 52 can be comprised of one or more integrated circuit components defining one or more Central Processor Units (CPUs). Processor(s) 52 can include appropriate supporting logic, analog devices, and power supply units. In one form, processor(s) 52 are based on at least one microprocessor of a standard variety. Embodiments including multiple processor(s) 52 can be provided in a common computing device, arranged to provide distributed processing from multiple units at different locations connected by a computer network, and/or in a different manner as would occur to one skilled in the art. In other embodiments some or all of the logic executed by processor(s) 52 in the form of software programming is replaced with firmware; dedicated digital and/or analog circuitry; and/or using such different techniques as would occur to one skilled in the art.
At least a portion of memory 54 is comprised of Removable Memory Device (RMD) 56. RMD 56 is of a non-volatile type that can include a storage disk 58 as schematically represented in
Besides RMD 56, memory 54 can be comprised one or more components of a solid-state, electronic type and additionally or alternatively may include another type, such as the magnetic or optical variety, to name just a few. For example, memory 54 may include solid-state electronic Random Access Memory (RAM), Sequentially Accessible Memory (SAM) (such as the First-In, First-Out (FIFO) variety or the Last-In First-Out (LIFO) variety), Programmable Read Only Memory (PROM), Electrically Programmable Read Only Memory (EPROM), or Electrically Erasable Programmable Read Only Memory (EEPROM); a mass memory in the form of an optically read disk (such as one or more CDs or DVDs) or a magnetically encoded disk (such as one or more hard disks or floppy disks); or a combination of any of these types. Also, memory 54 may be volatile, non-volatile, or a combination of volatile and non-volatile varieties.
Equipment 50 is illustrated as a host device separate from device 22 in
Each of the illustrated components 30 includes a corresponding Shadow controller (SC) 60 coupled between test bus 40 and at least one Test Port (TP) 70. Referring additionally to
SoC device 34 includes three test ports 70, that are each alternatively designated in
The flowchart of
Conditional 134 tests whether to change operating modes. If the test of conditional 134 is negative, TPs 70 are operated in stage 136 under the control of equipment 50 using the current test access port topology. Stage 136 provides for standard JTAG operation of TPs 70 to verify proper manufacture and operation of device 22, while SCs 60 continue to be transparent to test bus operations. The execution of stage 136 can include operator input via input device(s) 50 a and/or output to an operator via output device(s) 50 b, with a number of different operational parameters or options. Stage 136 loops back to conditional 134 after execution; however, it should be understood that the execution loop of conditional 134/stage 136 loop is merely descriptive of one illustrative form of the present invention. In other embodiments, stage 136 could idle upon completion with conditional 134 being embodied as a program or operator input. For example, conditional 134 could be embodied as a operator-selected option provided by programming of equipment 50. In one form, operator input could be provided with a Graphical User Interface (GUI) button, menu, or check box. Alternatively or additionally, conditional 134 could be dependent upon the results of execution of another stage and/or be embodied in other ways as would occur to one skilled in the art.
If the test of conditional 134 is affirmative, then mode 130 is terminated and SC operating mode 140 begins with stage 142 of routine 120. In stage 142, test clock TCK on bus line 42 is suspended at a low logic level by equipment 50. Under the JTAG standard, when test clock TCK is clamped at a low logic level, operation of JTAG compliant TAPs is also suspended. Accordingly, by halting the test clock of test bus 40, operation of each TP 70 is halted.
Routine 120 proceeds from stage 142 to stage 144 to activate a signal protocol to access SCs 60. This signal protocol is hidden from the operation of test bus 40 in accordance with the JTAG standard due to continued suspension of test clock TCK at a low logic level. For this hidden signal protocol, the test mode select signal TMS is toggled to provide control signals and to clock information into and out of SCs 60. Referring additionally to the timing diagram of
Routine 120 proceeds from stage 144 to stage 146. Stage 146 corresponds to the selection of one of SCs 60. Under the hidden signal protocol, each SC 60 is assigned a unique address. After the BAS of stage 144, SC addressing is provided by: (a) maintaining test clock TCK at a low logic level, (b) toggling TMS to operate as a clock relative to logic state changes of the TDO signal, and (c) changing state of TDO to communicate the unique address with clocking by TMS.
The addressed SC 60 is placed in a fully active state through the performance of stage 146, while the other SCs 60 remain in a bus alert state. Once addressing is performed in stage 146, operation of test clock TCK is resumed in stage 147. The addressed SC 60 recognizes test clock TCK, operating as a TAP under the JTAG standard in stage 148, while all the SCs 60 in a bus alert mode continue to ignore test clock TCK and all TPs 70 (including those associated with the active SP 60) remain suspended. Accordingly, for stage 148 the activated SC 60 is the only operational TAP controller, facilitating debug and special testing of SoC 34. An optional command under the JTAG standard also provides a vehicle for altering the topology of the TPs 70 subordinate to the active SC 60 during stage 148. In one non-limiting example where SC 60 of SoC 34 is activated, map register 64 can be loaded using this optional command. For the three TAPs 72 a, 72 b, 72 c of SoC 34, mapping of different TAP topologies with register 64 can be in accordance with Table I as follows:
From stage 148, routine 120 continues with conditional 149. Conditional 149 tests whether a new SC 60 is to be addressed and consequently activated. If a different SC 60 is to be activated, routine 120 loops back to repeat stages 142, 144, 146, 147, and 148. If the test of conditional 149 is negative, routine continues with conditional 150. Conditional 150 tests if mode 140 is to remain active. If the test of conditional 150 is affirmative, routine loops back to stage 148 to continue isolated operation of the activated SC 60 under mode 140. If the test of conditional 150 is negative, routine 120 proceeds to return to mode 130. Conditionals 149 and 150 can be implemented in any of the ways described in connection with conditional 134.
The return to mode 140 begins with suspension of test clock TCK in stage 151 at a low logic level. During this suspension, a Bus Normalize Sequence (BNS) is sent on test bus 40 in stage 152. Referring additionally to
Routine 120 proceeds from stage 152 to stage 154 to resume operation of test clock TCK on test clock bus line 42. With test clock TCK running, mode 130 is resumed with stage 136 (
Many alternative embodiments of the present invention are contemplated. For example, in other embodiments, a different arrangement of more or fewer components with an SC 60 and/or more or fewer TPs 70 per SC 60 are utilized. In another embodiment, the established test protocol utilized in mode 130 can deviate from the JTAG standard. In still another embodiment, different standards and/or signal protocols can be used to change topologies of a group of test ports through a shadow controller that may or may not be JTAG compatible. These alternatives can include, but are not limited to, different values and/or sequences for the hidden signal protocols established with the test mode select TMS and test data out TDO while the test clock TCK is suspended. In a further alternative embodiment, a process in accordance with the present invention need not include performance of a boundary scan test upon power-up or test logic reset. Indeed, test logic reset (TRST) aspects may be absent in alternative JTAG-based embodiments. A further alternative provides a combination of test ports (TAPs) that are compliant with the JTAG standard and one or more test ports that are not compliant with the JTAG standard, where such test ports are each subordinate to a corresponding shadow controller. For this alternative, access and/or operation of a non-compliant test port could be provided during activation of its corresponding shadow controller under a hidden protocol invisible to JTAG operation. Alternatively or additionally, a shadow controller can be arranged to perform non-compliant testing, debugging, or other operations when in an active mode that is invisible to JTAG operation. Further embodiments of the present invention include one or more software programs stored on a processor-readable device executable by one or more of the processor(s) 52 of equipment 50 or other equipment according to the present invention; where such execution performs some or all of the aspects of routine 120 or another routine, process, or procedure in accordance with the present invention.
Any theory, mechanism of operation, proof, or finding stated herein is meant to further enhance understanding of the present invention, and is not intended to limit the present invention in any way to such theory, mechanism of operation, proof, or finding. While the invention has been illustrated and described in detail in the drawings and foregoing description, the same is to be considered as illustrative and not restrictive in character, it being understood that only selected embodiments have been shown and described and that all equivalents, changes, and modifications that come within the spirit of the inventions as defined herein or by the following claims are desired to be protected.