The present invention relates generally to integrated circuit testing techniques and, more particularly, to a method and apparatus for shutting off data capture across asynchronous clock domains during at-speed testing.
The testing of integrated circuits has evolved into a highly developed area of technology. Generally such testing may be implemented through the use of external equipment, Built-In Self-Test (BIST) circuitry, or a combination of the two. Typically, all test methodologies involve shifting data into scannable memory elements of an integrated circuit device (e.g., Level Sensitive Scan Design or LSSD latches), capturing the input to the memory elements, shifting the captured data out and then comparing the captured data with predetermined values to determine whether the circuit has performed according to design. Automatic test pattern generation (ATPG) systems use tools for testing digital circuits after the circuits have been manufactured. In general, an ATPG tool generates a set of test vectors that are applied to a circuit under test. The output of the circuit is analyzed to identify logic faults in the circuit design (i.e., “functional testing”), as well as detecting fabrication defects (i.e., “structural testing”).
“At-speed” testing refers to testing techniques to detect defects that are only apparent when the circuit is running at system speed. Many time-based defects cannot be detected unless the circuit is run at-speed. Examples of time related defects that occur at-speed include high impedance shorts, in-line resistance, and cross talk between signals. One problem of particular concern in regard to at-speed structural testing (ASST) relates to the effects of clock skew (i.e., misalignment of clock signals between clock domains) when signals are exchanged between different clock domains in the circuit at high test-clock speeds. The testing of multiple asynchronous clock domains simultaneously while using functional clocks generated by phase locked loops (PLLs) is difficult because it is impossible to predict the relative positions of clock edges generated by asynchronous PLLs. Existing solutions to the problem of testing multiple asynchronous clock domains include testing only one clock domain at a time, and/or inserting a wrapper of latches or flip-flops between clock domains, and/or ensuring that for each scan chain, all the latches belong to the same clock domain. Thus, only a few scan chains have test data for each test pattern shifted therein. The test still addresses only one domain at a time; however the total time required for scan is now reduced. Unfortunately, such approaches are disadvantageous in that they result in increased test data volume, increased testing time, and an increased hardware overhead.
Accordingly, it would be desirable to be able to simultaneously test the logic in asynchronous clock domains in an economical manner.
The foregoing discussed drawbacks and deficiencies of the prior art are overcome or alleviated by a method for testing logic devices configured across asynchronous clock domains. In an exemplary embodiment, the method includes deactivating, during at-speed fault testing, a local clock signal for each of a first plurality of latches having at least one data input thereto originating from a source located within an asynchronous clock domain with respect thereto. The deactivation of a local clock signal for each of the plurality of latches is implemented in a manner so as to permit data capture within the first plurality of latches, and wherein the deactivation of a local clock signal for each of the plurality of latches is further implemented in a manner so as to permit at-speed data launch therefrom to downstream latches with respect thereto during at-speed testing.
In another embodiment, an apparatus for testing logic devices configured across asynchronous clock domains includes a deactivation mechanism for deactivating, during at-speed fault testing, a local clock signal for each of a first plurality of latches having at least one data input thereto originating from a source located within an asynchronous clock domain with respect thereto; wherein the deactivation mechanism is configured to permit data capture within the first plurality of latches, and wherein the deactivation mechanism is further configured to permit at-speed data launch from the first plurality of latches to downstream latches with respect thereto during at-speed testing.
In still another embodiment, a method for implementing testing of an integrated circuit device includes identifying a first plurality of latches having at least one data input thereto originating from a source located within an asynchronous clock domain with respect thereto; configuring one or more clock splitter devices associated with the first plurality of latches for selectively deactivating, during at-speed fault testing, a local clock signal associated with each of the first plurality of latches; wherein the deactivation of the local clock signal is implemented in a manner so as to permit data capture within the first plurality of latches, and wherein the deactivation of a local clock signal for each of the plurality of latches is further implemented in a manner so as to permit at-speed data launch therefrom to downstream latches with respect thereto during at-speed testing.
Referring to the exemplary drawings wherein like elements are numbered alike in the several Figures:
Disclosed herein is a method and apparatus for shutting off data capture across asynchronous clock domains during at-speed testing. Briefly stated, the present disclosure introduces embodiments of a novel new clock splitter that is configured to selectively shut off asynchronous data capture during at-speed testing, through the use of a “shutoff” signal to deactivate the functional capture in latches whose data inputs are fed from other asynchronous latches in their input cone.
Referring initially to
Although each latch stage 102 is depicted as having a separate local clock splitter device 104 associated therewith, in actuality several latches within a given domain may be coupled to a single clock splitter device. Thus, it will be understood that
As specifically shown in
Accordingly,
It will be appreciated that other circuit topologies may be used to realize the equivalent logical function of the clock splitter circuit 304 of
Although the disclosed embodiments may make use of a single, global shutoff signal, this need not necessarily be the case. For example,
In contrast,
With regard to the design of clock splitter devices that may control latch devices that receive input data only from other latches within the same clock domain (or only from other latches within other synchronous clock domains), different configurations are contemplated. In one embodiment, each clock splitter device is configured with the same type of control logic (e.g., such as shown in any of
Alternatively, the various clock splitter devices may be designed with different logic, depending on the clock domains of the latches associated therewith. For example, clock splitter devices feeding any latches that have at least one input from across an asynchronous boundary would be designed in accordance with one of the embodiments of
On the other hand, if the identified Si within the input cone of Ri is not turned off for at-speed testing, then the system clock for Si is identified as shown at block 910. The system clock for Ri is compared to the system clock for Si, and if the two match as determined at decision block 912 then the currently identified Ri and Si are synchronous. This is an equivalent situation to that described above, where Si is already nominally turned off for at-speed testing. In other words, this would not result in a determination that the input stage of the identified Ri should be deactivated. At that point, the process would advance to decision block 914 to see whether there are additional latches in the input cone of the current Ri. If additional input latches are to be determined for Ri, then the process loops back through return node “A” to block 906 where the next Si is identified. If no additional input latches were to be determined for Ri, then the process 900 would then feed forward as described below.
Referring back to decision block 912, if the system clock for Ri does not match the system clock for Si, then the domains are asynchronous. As such, the input stage of the current Ri is to be configured with shut off capability as indicated in block 816 and as described above. Moreover, no additional latches Si within the input cone of Ri need be checked at this point, since it has already been determined that the current Ri will be configured with shut off capability. Regardless of whether the current latch Ri is designated for shut off capability or has all input latches thereto within the same clock domain or deactivated during at-speed testing, the process 900 proceeds to decision block 918 to check whether all Ri latches have been identified and analyzed as described above. If so, the process 900 ends; otherwise, the process 900 loops back to through return node “B” to block 902 where the next Ri is identified.
Accordingly, through the use of the above described methodology and apparatus embodiments, the logic in asynchronous clock domains may be simultaneously tested in an economical manner. In lieu of other approaches, such as inserting additional structures that would lead to increased overhead, the input latches that receive data from asynchronous domains are selectively deactivated following a scan and a broadside load (or a skewed load) into the input latches. Then, for at-speed testing, the local C (not B) clocks signal is deactivated using a new test signal (SHUTOFF) to prevent them from capturing at-speed. By activating the SHUTOFF signal after the broadside load (or skewed load) allows the input latches to capture for static fault coverage. Moreover, by still permitting the B clocks to switch at-speed allows a latch to launch at-speed transitions into their own domains.
As indicated above, it is not necessary to use the same shutoff signal for all clock domains. A different shutoff signal can be used for each clock domain or group of clock domains, such that latches that receive asynchronous data, in a combination of different clock domains, may be deactivated for each test pattern. The shutoff signal is a slow signal driven by the off-chip test controller. It is also not required to switch at-speed and therefore the shutoff does not need to be designed as a clock signal. This reduces both the design effort and design time.
Advantageously, each test pattern would test all domains, such that test coverage for the chip would rise sharply with test generation. All clock domains may be tested in the same test pattern with all local clock splitters working together off a single enable signal. Moreover, the chip pin used for the SHUTOFF signal can be shared with a scan-in or scan-out pin, since the SHUTOFF signal is not used during scan. Hence the SHUTOFF signal. Hence, there is no extra test pin overhead. Once enough patterns are generated to test all domains together, some “clean-up” test patterns may be generated for one domain at a time while keeping the SHUTOFF signal low (deactivated). This will allow identification of untested faults on paths between two latches that both belong to same domain, in case the path is gated by a signal from another domain and the receiving latch was shut off at an earlier point in time.
While the invention has been described with reference to a preferred embodiment or embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed as the best mode contemplated for carrying out this invention, but that the invention will include all embodiments falling within the scope of the appended claims.