







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































1. Introduction to Philosophy of Testing
“If anything can go wrong, it will”--A very well known statement known as Murphy’s Law. So, to ensure that only fault free systems are delivered, before deploying any system in the field or shipping a product to a customer, it needs to be Tested. Testing a system comprises subjecting it to inputs and checking its outputs to verify whether it behaves as per the specifications targeted during design. Let us take the simple example of an electric iron. From our daily life experience, testing in this case would be to plug it in 220V AC and see if is heating. In this simple example also, testing may not be so straight foreword as mentioned above. Test for heating is just verifying its “functional” specification, that also partially. A near complete test will require the following Safety: o All exposed metal parts of the iron are grounded o Auto-off on overheating Detailed Functionality o Heating when powered ON. o Glowing of LED to indicate power ON. o Temperature matching with specification for different ranges that can be set using the regulator (e.g., woolen, silk, cotton etc.) Performance o Power consumption as per the specifications o Time required to reach the desired temperature when range is changed using the regulator The story is not over. The list discussed above is the set of tests for ONLY electrical parameters. Similarly, there will be a full list of tests for mechanical parameters , like maximum height from which there is resistance to breaking of plastic parts if dropped on a tiled floor etc.
The number of tests performed depends on the time being allocated and which in turn is decided by the target price of the product. Increasing the number of tests lead to more test time, requirement of sophisticated equipments, working hours of experts etc. thereby adding to cost of the product. In case of example of the iron, if it is a cheap one (may be local made) the only test is to verify “if it heats”, while if it is branded, a lot more tests are done to assure quality, safety and performance of the product. Now let us take an example of testing a NAND gate, shown in Figure 1.
o 1
v (^1)
v (^2)
Figure 1. NAND gate The simple test to verify the proper functionality of the NAND gate would comprise subjecting the gate with inputs listed in Table 1 and then checking if the outputs match the ones listed in the table.
Table 1. Test set for NAND gate Input Output v 1 v 2 o (^1) 0 0 1 0 1 1 1 0 1 1 1 0
Just like the example of the electric iron, this test for the NAND gate is just the starting point. A more detailed test can be enumerated as follows
o Noise generated when the NAND gate switches from 0 to 1 and from 1 to 0 Test at extreme conditions o Performing the tests at temperatures (Low and High Extremes) as claimed in the specification document. These tests are for the “logic level [1,2]” implementation of the NAND gate.
Figure 2 shows the detailed CMOS level implementation of the gate. Tests for the NAND gate at transistor level would be many fold more than the ones discussed above [3]. They would comprise verifying all parameters of a transistor. Some tests for the NMOS (T3) are enumerated below, Output Characteristics o a set of IDS vs VDS curves for different constant values of the gate-source voltage VGS Transfer characteristics o a set of IDS vs VGS curves for different values of the substrate-source voltage VBS , at constant V (^) DS Threshold Voltage Test o Threshold Voltage obtained in test, matches the specifications Further, all the tests for a transistor need to be repeated for all the four transistors involved. Last but not the least, Transistor T1 and T2 are to be matched (i.e., equivalent in terms of parameters) and similarly for T3 and T4. To summarize, as more details of implementation of a gate (or any circuit) is considered, test procedure becomes more complex.
o 1
v (^1)
v (^1)
v (^2)
v (^1)
VDD
GND
T T
T
T
+
-
Gate
Drain
Source
Nmos (T3)
I (^) DS
VDS
VGS
CMOS implementation for the NAND gate
VBS
Body
Figure 2. CMOS implementation of the NAND gate
Now we define DIGITAL TESTING. DIGITAL TESTING is not testing digital circuits (comprised of logic gates); as discussed, all tests possible for a digital circuit are not applied in practical cases. DIGITAL TESTING is defined as testing a digital circuit to verify that it performs the specified logic functions and in proper time.
For the discussion so far, it may appear that testing digital VLSI circuits and other systems like electrical iron are similar. However, there are some fundamental differences that make VLSI circuit testing more important step to assure quality, compared to classical systems like electric iron, fan etc. The intension to make single chip implementation of complex systems has reached a point where effort is made to put millions of transistors on a single chip and increase the operation speed to more than a GHz. This has initiated a race to move into deep sub-micron technology, which also increases the possibility of faults in the fabricated devices. Just when a technology matures and faults tend to decrease, a new technology based on lower sub-micron devices evolves, thereby always keeping testing issues dominant. Figure 4 shows the transistor count (which rises with lowering the sub-micron of the manufacturing technology) versus years. This is unlike traditional systems where the basic technology is matured and well tested, thereby resulting in very less number of faults. In case of detection of faults in a traditional system it is diagnosed and repaired. However, in case of circuits, on detection of a fault the chip is binned as defective and scrapped (i.e., not repaired). In other words, in VLSI testing chips are to be binned as normal/faulty so that only fault free chips are shipped and no repairing is required for faulty ones.
2. Digital Testing In A VLSI Design Flow
Figure 5 illustrates a typical digital VLSI design and test flow. This starts with the development of the specifications for the system from the set of requirements, which includes functional (i.e., input-output) characteristics, operating characteristics (i.e., power, frequency, noise, etc.), physical and environmental characteristics (i.e., packaging, humidity, temperature, etc.) and other constraints like area, pin count, etc. This is followed by an architectural design to produce a system level structure of realizable blocks for the functional specifications. These blocks are then implemented at resister transfer level (RTL) using some hardware definition language like Verilog or VHDL. The next step, called logic design, further decomposes the blocks into gates maintaining operating characteristics and other constraints like area, pin count, etc. Finally, the gates are implemented as physical devices and a chip layout is produced during the physical design. The physical layout is converted into photo masks that are used in the fabrication process. Fabrication consists of processing silicon wafers through a series of steps involving photo resist, exposure through masks, etching, ion implantation, etc. Backtrack from an intermediary stage of the design and test flow may be required if the design constraints are not satisfied. It is unlikely that all fabricated chips would satisfy the desired specifications. Impurities and defects in materials, equipment malfunctions, etc. are some causes leading to the mismatches. The role of testing is to detect the mismatches, if any. As shown in Figure 5, the test phase starts in form of planning even before the logic synthesis and hardware based testing is performed after the fabrication. Depending on the type of circuit and the nature of testing required, some additional circuitry, pin out, etc. need to be added with the original circuit so that hardware testing becomes efficient in terms of fault coverage, test time, etc.; this is called design for testability (DFT). After logic synthesis, (binary) test patterns are generated that need to be applied to the circuit after it gets manufactured. Also, the expected responses (golden response) for these test patterns are computed which are matched with the response obtained from the manufactured circuit.
Figure 5. A typical digital VLSI design flow
3.Taxonomy of Digital Testing Digital testing can be classified according to several criteria. Table 2 summarizes the most important attributes of various digital testing methods and the associated terminology.
Table 2. Taxonomy of digital testing Criterion Attributes of testing method
Terminology
When tested? 1. Once after manufacture
Where is the source of Test patterns?
4.Test Economics The basic essence of economics of a product is “minimum investments and maximum returns”. To under test economics the investments (price paid) and returns (gains) for a VLSI testing process are to be enumerated. o Investments
1. Man hours for test plan development: Expert test engineers are required to make elaborate test plans. 2. CAD tools for Automatic Test Pattern Generation Given a circuit, binary input patters required for testing is automatically generated by commercial CAD tools. 3. Cost of ATE ATE is a multimillion dollar instrument. So cost of testing a chip in an ATE is dependent on time a chip is tested, the number of inputs/outputs pins frequency the test patters are to be applied
From the next lectures, we will go into the details of Digital VLSI Testing. The tentative breakup of the lectures would be the following
Module VII: Introduction to Digital Testing Lecture-I: Introduction to Digital VLSI Testing Lecture-II: Functional and Structural Testing Lecture-III: Fault Equivalence
Module VIII: Fault Simulation and Testability Measures Lecture-I, II and III: Fault Simulation Lecture-IV: Testability Measures (SCOAP)
Module IX: Combinational Circuit Test Pattern Generation Lecture-I: Introduction to Automatic Test Pattern Generation (ATPG) and ATPG Algebras Lecture-II and III: D-Algorithm
Module X: Sequential Circuit Testing and Scan Chains Lecture-I: ATPG for Synchronous Sequential Circuits Lecture-II and III: Scan Chain based Sequential Circuit Testing o Module XI: Built in Self test (BIST) Lecture I and II: Built in Self Test Lecture III and IV: Memory Testing
References [1] J. A. Abraham and H.C. Shih. Transistor-level test generation for physical failures in CMOS circuits. Design Automation Conference, pages 243–249, 1986. [2] M. Abramovici, M.A. Breuer, and A.D. Friedman. Digital Systems Testing and Testable Design. Wiley-IEEE Press, 1994. [3] Phillip E. Allen, Douglas R. Holberg. CMOS Analog Circuit Design, Oxford University Press, Second Edition, 2002. [4] http://www.teradyne.com/ [5] Moore’s Law, From Wikipedia, Whttp://en.wikipedia.org/wiki/Moore%27s_law
We need to apply 2^25 test patterns to complete the test. If we apply 1000000 patterns per second (Mega Hz Tester), then time required is 33 Seconds per chip. In a typical scenario about 1 million chips are to be tested in a run, thereby taking about 33000000 Seconds or 550000 Hours or 22916 Days or 62 years. So one can understand the complexity when a circuit has 100+ inputs. So for a typical circuit even Functional Testing cannot be performed due to extremely high testing time. To solve this issue we perform Structural Testing, which takes many fold less time compared Functional Testing yet maintaining the quality of test solution. Structural testing, introduced by Eldred, verifies the correctness of the specific structure of the circuit in terms of gates and interconnects. In other words, structural testing does not check the functionality of the entire circuit rather verifies if all the structural units (gates) are fault free. So structural testing is a kind of functional testing at unit (gate) level. In the next section we elaborate the gain in test time for structural testing using the example of the 25 input ANDing circuit. Also, the cost that needs to be paid is illustrated using the same example.
2. Structural Testing: An Example Of 25 Input Bit Wise ANDing Circuit To perform structural testing a white box view of the circuit (i.e., gate level implementation) is required. Following that functional testing would be performed on the individual gates. Figure 2 shows a gate level implementation of the 25 input bit wise ANDing circuit (of Figure 1). Structural testing for the circuit would comprise the patters discussed below:
Figure 2. Gate level implementation for Bit wise ANDing circuit