DFT Interview Questions on Scan and ATPG

Design for Testability (DFT) is an essential part of the VLSI design flow because a chip must not only function correctly but also be testable after manufacturing. DFT engineers design structures that help detect manufacturing defects, evaluate fault coverage, and improve the efficiency of production testing.

For freshers preparing for DFT Engineer, ASIC Design, or Test Engineering roles, scan and Automatic Test Pattern Generation (ATPG) are particularly important interview topics. Interviewers commonly ask about scan-chain operation, fault models, stuck-at faults, transition faults, test coverage, and debugging failed patterns.

This guide explains the most important DFT interview questions on scan and ATPG, with practical examples and scenario-based answers.

What Is Design for Testability (DFT)?

Design for Testability is a collection of design techniques that make it easier to detect manufacturing defects in integrated circuits. DFT structures are incorporated during the design process to improve access to internal logic during testing.

Without DFT, internal states in a complex sequential circuit may be difficult to control and observe through primary inputs and outputs alone.

Common DFT techniques include:

  • Scan-chain insertion
  • Automatic Test Pattern Generation (ATPG)
  • Scan compression
  • Boundary scan using JTAG
  • Memory Built-In Self-Test (MBIST)
  • Logic Built-In Self-Test (LBIST)

For example, a logic gate may be physically defective even though the RTL design is functionally correct. DFT structures and test patterns help expose such defects after fabrication.

Read this introduction to DFT and chip testability for a broader overview of the role of DFT in the semiconductor development flow.

What Is a Scan Chain, and Why Is It Required?

A scan chain is a serial connection of scan-enabled flip-flops that allows internal sequential states to be loaded and observed during test mode.

In normal functional operation, a flip-flop captures data from its functional input. In scan mode, a scan flip-flop selects its scan input and shifts test data from one scan cell to the next.

A typical scan cell provides a functional data input, scan input, scan output, and scan-enable control.

Scan improves two important properties:

  • Controllability: The ability to set internal states to required values.
  • Observability: The ability to observe internal states or their effects at accessible outputs.

Practical example: Imagine a block containing 100 flip-flops. Without scan access, reaching a particular internal state might require a complex sequence of functional input patterns. With scan, test data can be shifted directly into the scan cells, making internal states much easier to control.

Scan chains are therefore central to structural testing of many digital ASICs.

How Does Scan Testing Work?

Scan testing generally involves three phases: shift-in, capture, and shift-out.

  1. Shift-in: Test data is shifted into the scan chains.
  2. Capture: The circuit evaluates the applied test conditions, and the response is captured in scan cells.
  3. Shift-out: Captured data is shifted out and compared with the expected response.

For a simple example, consider three scan flip-flops connected as follows:

Scan In → FF1 → FF2 → FF3 → Scan Out

When scan enable is active, a test sequence is shifted through the chain. After the required data is loaded, the design performs the appropriate capture operation. The resulting values are then shifted out for comparison.

The exact procedure depends on the test pattern type and the scan architecture.

Interview tip: Do not describe scan testing as only shifting data through flip-flops. Explain that shifting establishes the test state, capture evaluates the circuit response, and shifting out enables response comparison.

What Is Scan Insertion?

Scan insertion is the process of replacing eligible functional flip-flops with scan-capable cells and connecting them into scan chains.

A typical scan insertion flow includes:

  • Reviewing the design and DFT requirements.
  • Checking test clocks, resets, and scan-enable signals.
  • Running DFT design-rule checks.
  • Replacing suitable sequential cells with scan cells.
  • Connecting scan chains.
  • Validating chain connectivity and test operation.
  • Generating the required test information for ATPG.

Scan insertion can introduce additional cell area and routing requirements. It can also affect timing, particularly when scan cells have different characteristics from the original flip-flops.

A practical DFT engineer must therefore check both testability and implementation constraints. Learn more about why scan insertion is critical in the VLSI flow.

What Is ATPG?

Automatic Test Pattern Generation is the process of generating test patterns that detect specified faults in a circuit model.

ATPG tools analyze the design structure and fault models to determine input conditions that activate a fault and make its effect observable at a primary output or scan-captured response.

For a fault to be detected, the test generally needs to:

  1. Activate the fault by setting the relevant signal to a value that exposes the difference between the good and faulty circuits.
  2. Propagate the fault effect through the logic.
  3. Make the effect observable at an accessible output or scan point.

Example: Suppose an AND gate implements Y=A∧BY=A\land B, and its output is modeled as stuck-at-0. Applying A=1A=1 and B=1B=1 should produce Y=1Y=1 in the fault-free circuit. The faulty circuit produces Y=0Y=0, so the fault effect can be observed if the output is accessible.

This simplified example illustrates fault activation and observation. Real ATPG also considers the surrounding circuit, constraints, and fault propagation paths.

For a deeper explanation, read how ATPG works to detect modeled faults.

What Is a Stuck-at Fault?

A stuck-at fault models a signal that behaves as though it is permanently fixed at logic 0 or logic 1, regardless of the value that should be present.

The two common types are:

  • Stuck-at-0 (SA0): The signal behaves as though it is always 0.
  • Stuck-at-1 (SA1): The signal behaves as though it is always 1.

Consider a signal XX that should become 1 under a particular test condition. If the signal has an SA0 fault, the faulty circuit produces 0 instead.

To detect an SA0 fault, a test must attempt to drive the fault site to 1 and propagate the resulting discrepancy to an observable point. To detect an SA1 fault, the test must attempt to drive the site to 0 and propagate the discrepancy.

Common interview follow-up: Are stuck-at faults identical to physical defects? No. They are abstract fault models used to represent certain defect behaviors. A physical manufacturing defect can have more complex effects than a simple stuck-at condition.

What Is the Difference Between Stuck-at and Transition Faults?

Stuck-at faults model a signal that is permanently fixed at a logic value. Transition faults model a signal transition that is too slow to meet the required timing.

Transition fault testing considers two cases:

  • Slow-to-rise: A 0-to-1 transition occurs too slowly.
  • Slow-to-fall: A 1-to-0 transition occurs too slowly.

For example, a signal may eventually reach logic 1 but arrive too late for the receiving register to capture it correctly at the intended clock edge. A static stuck-at test may not expose this timing-related defect, whereas an at-speed transition test may detect it.

Transition testing generally requires suitable launch and capture conditions and appropriate clocking support.

A useful interview answer distinguishes the purpose of each model: stuck-at testing targets static logical faults, while transition testing targets delay-related behavior at a signal transition.

What Is Fault Coverage in ATPG?

Fault coverage measures how effectively generated test patterns detect the faults considered by a specified fault model and analysis.

A simplified definition is:

Fault Coverage=Detected FaultsTotal Testable Faults×100%\text{Fault Coverage}= \frac{\text{Detected Faults}}{\text{Total Testable Faults}}\times100\%

The denominator and treatment of fault categories can vary by tool and reporting methodology. Some reports distinguish detected, undetected, untestable, aborted, and unclassified faults. Always check the report definition before interpreting a coverage percentage.

Example: If 900 faults are detected out of 1,000 faults included in a simplified coverage calculation, the coverage is 90%.

A high coverage percentage is important, but it does not automatically mean every possible physical defect will be detected. Coverage depends on the fault model, design constraints, test architecture, and pattern quality.

For additional practice, review methods for improving ATPG fault coverage.

What Is the Difference Between Fault Coverage and Test Coverage?

Fault coverage is associated with the detection of modeled faults during structural testing. Test coverage is a broader term whose meaning depends on the context and metric being discussed.

In functional verification, coverage may refer to exercised features, scenarios, or code structures. In DFT, engineers often focus on fault coverage, pattern effectiveness, and the status of modeled faults.

For example, a functional testbench might achieve high functional coverage while the manufactured circuit still contains defects that its tests cannot expose. Conversely, ATPG can target structural faults without proving that every functional requirement has been verified.

Interview tip: Clarify which coverage metric is being discussed instead of treating all forms of coverage as interchangeable.

What Is Scan Chain Testing, and Why Can a Scan Chain Fail?

Scan-chain testing checks whether scan cells are connected and operating as intended. Problems can arise from incorrect connectivity, unsuitable scan controls, clock issues, reset behavior, or scan-cell implementation errors.

Possible symptoms include:

  • Incorrect shifted-out data.
  • A chain that stops shifting at a particular point.
  • Unexpected values in scan cells.
  • Chain-length or connectivity mismatches.
  • Scan tests that fail even when the expected functional behavior is correct.

Practical scenario: A scan chain is expected to contain 200 cells, but the observed shift sequence does not match the expected pattern. A DFT engineer should check the chain definition, scan-in and scan-out connectivity, scan enable, clock behavior, and any reset conditions that affect the cells.

Do not immediately assume that the scan cells are defective. A test configuration or connectivity problem can produce similar symptoms.

What Is Scan Compression?

Scan compression reduces the amount of external test data and can reduce tester memory requirements and test application time.

A typical compressed scan architecture uses on-chip decompression logic to distribute test data to internal scan chains and compaction logic to combine responses for observation.

Compression allows a design to support many internal scan chains without requiring an equivalent number of external tester channels.

However, compression introduces additional considerations, including unknown-value propagation, response masking, diagnosis complexity, and possible coverage changes.

For example, a design may contain many internal scan chains but only a limited number of external scan channels. A compression architecture helps deliver test data to those chains efficiently, subject to the design’s compression scheme and constraints.

What Is ATPG DRC, and Why Is It Important?

ATPG design-rule checking (DRC) identifies conditions in the design or test setup that may prevent correct test generation or application.

Depending on the tool and flow, checks may involve scan-chain connectivity, clocks, resets, controllability, test-mode configuration, and other structural or procedural requirements.

If ATPG DRC reports an issue, the engineer should understand the specific rule, locate the affected logic or constraint, and correct the underlying problem before generating or relying on patterns.

Example: If a required test clock is not defined correctly, ATPG may be unable to generate valid patterns for sequential elements controlled by that clock. Correcting the clock setup and rerunning the relevant checks is more appropriate than attempting to improve fault coverage without resolving the configuration issue.

Why Can ATPG Fault Coverage Be Low?

Low fault coverage can result from several conditions:

  • Some faults are untestable under the current constraints.
  • Fault effects cannot be propagated to an observable point.
  • Test clocks or resets are constrained incorrectly.
  • Scan chains contain structural or connectivity problems.
  • Unknown values interfere with pattern generation or response comparison.
  • ATPG encounters difficult faults or reaches resource limits.
  • Test points or other testability structures may be needed.

A systematic investigation begins with the fault report. Separate untestable faults from aborted or undetected faults, and investigate the reasons reported by the tool.

For example, if a group of faults remains undetected because a control signal cannot be set to the required value in test mode, the issue may be limited controllability rather than an ATPG algorithm failure.

Potential remedies include correcting constraints, improving test access, adding suitable test points, or revisiting the test architecture. Each change should be validated against design behavior and implementation requirements.

What Is ATPG Pattern Simulation, and Why Is It Required?

ATPG pattern simulation checks whether generated patterns produce the expected responses when applied to the relevant design model.

Simulation helps detect problems such as incorrect pattern application, scan connectivity issues, unexpected unknown values, and mismatches between expected and simulated responses.

Practical scenario: ATPG generates a pattern, but gate-level simulation produces an unexpected value at the scan output. The engineer should check the failing cycle, scan-chain connectivity, clock and reset sequencing, test-mode signals, and the source of any unknown values.

A mismatch does not automatically prove that the pattern generator is wrong. It may indicate a design, constraint, modeling, or testbench problem.

The goal is to identify the cause, correct it, and rerun the required validation.

Scenario-Based Interview Question: How Would You Improve ATPG Coverage?

Start by examining the fault summary and identifying the categories responsible for the coverage shortfall. Check whether faults are undetected, untestable, aborted, or affected by configuration issues.

Next, inspect representative failing faults and determine whether the problem involves controllability, observability, clocking, scan access, unknown values, or resource limits.

Depending on the findings, possible actions include:

  1. Correcting test constraints or test-mode configuration.
  2. Fixing scan-chain or DFT rule violations.
  3. Improving observability or controllability through appropriate test structures.
  4. Reviewing X-handling and response-masking settings.
  5. Evaluating additional patterns or supported ATPG options.
  6. Rerunning fault simulation and reviewing the updated reports.

A strong answer emphasizes evidence-based debugging. Adding more patterns alone may not solve a coverage issue caused by an incorrectly constrained signal or a structural testability problem.

How Should Freshers Prepare for Scan and ATPG Interviews?

Freshers should first understand scan-chain operation, scan insertion, controllability, observability, stuck-at faults, transition faults, and fault coverage. They should then practise explaining how ATPG activates faults and propagates their effects to observable points.

Review common DFT reports and learn to explain what you would investigate when scan chains fail, ATPG DRC reports errors, or fault coverage is lower than expected.

For structured preparation, explore the DFT Interview Preparation course at VLSIGuru and the DFT Interview Preparation Training at InSkill. These resources cover scan insertion, ATPG, fault models, coverage analysis, simulation debugging, and related interview topics.

If you have completed a DFT project, prepare to explain the flow you followed, the reports you examined, one problem you investigated, and how you validated the result. If you have not used commercial DFT tools, clearly distinguish conceptual examples from hands-on experience.

Conclusion

Scan and ATPG are core topics for DFT interviews because they connect circuit structure with manufacturing test. Candidates should be able to explain how scan chains improve controllability and observability, how ATPG detects modeled faults, and how fault coverage is interpreted.

Practise the scenario-based questions as carefully as the definitions. When a scan chain fails or ATPG coverage drops, explain how you would inspect the reports, isolate the cause, and verify the fix. This approach demonstrates practical understanding rather than memorization alone.

Leave a Reply

Your email address will not be published. Required fields are marked *