Skip to content
VLSI

Power-Aware ATPG: Reducing Switching Activity During Scan Testing

  • 14 min read

As semiconductor devices become more complex, testing them efficiently is becoming increasingly challenging. Modern System-on-Chip (SoC) designs contain millions of logic gates, large numbers of flip-flops and complex interconnections. Design-for-Testability (DFT) techniques help engineers identify manufacturing defects in these circuits, and scan-based testing is one of the most widely used approaches.

However, scan testing can create a power consumption problem. During normal operation, a chip follows its intended functional activity. During scan testing, large numbers of scan flip-flops may change their states as test patterns are loaded and responses are captured. This can create switching activity that is significantly higher than normal functional operation.

Excessive switching can increase dynamic power, create local temperature hotspots and cause voltage drops across the power delivery network. These effects may lead to unreliable test results, yield loss or, in severe cases, device reliability problems.

This is where power-aware Automatic Test Pattern Generation (ATPG) becomes important. Instead of generating test patterns based only on fault coverage, power-aware ATPG also considers the switching activity produced by those patterns. Its objective is to generate effective test patterns while keeping power consumption within acceptable limits.

Understanding this approach is essential for VLSI engineers working in DFT, scan architecture, test generation and SoC verification.

Understanding ATPG in Scan-Based Testing

Automatic Test Pattern Generation is the process of creating input patterns that help detect manufacturing defects in a digital circuit. ATPG tools analyse the circuit structure and generate patterns to identify faults such as stuck-at faults and transition faults.

In a scan-based design, ordinary flip-flops are replaced or supplemented with scan flip-flops. These cells provide an additional test mode that allows internal circuit states to be controlled and observed.

A typical scan-based testing process involves three main stages:

Scan shifting: Test patterns are serially loaded into scan chains through scan flip-flops. Each scan clock pulse shifts data from one scan cell to the next.

Capture operation: After loading the required pattern, the circuit operates for one or more capture clock cycles. The resulting internal responses are stored in the scan flip-flops.

Scan-out: The captured responses are shifted out and compared with the expected values to determine whether the circuit behaves correctly.

This process makes internal circuit testing easier because engineers can control and observe a large portion of the sequential logic.

However, scan operations can cause many internal nodes to switch within a short period. If ATPG does not consider the power impact of generated patterns, the resulting test activity may exceed the circuit's safe operating limits.

Why Switching Activity Increases During Scan Testing

Switching activity refers to the number of logic transitions occurring within a circuit over a given period. Every time a signal changes from 0 to 1 or from 1 to 0, the circuit may consume dynamic power.

During functional operation, switching activity depends on actual application data and operating conditions. During scan testing, the test patterns can cause many scan cells to change states, producing additional transitions in both the scan chains and the connected combinational logic.

For example, consider a scan chain containing several flip-flops. If consecutive scan bits contain different logic values, each shift operation can cause state changes across the chain. These changes can also propagate into the combinational logic connected to the scan cells.

The resulting power consumption depends on several factors:
  • Number of scan flip-flops switching during a test operation.
  • Differences between consecutive scan pattern bits.
  • Combinational logic activity caused by scan transitions.
  • Scan clock frequency and capture clock behaviour.
  • Circuit capacitance, supply voltage and switching frequency.
  • Physical location of active logic and available power delivery capacity.

The relationship between dynamic power and switching activity can be expressed using the following simplified equation:

[
P_{dynamic} = \alpha C V^2 f
]

Where:
  • (\alpha) represents the switching activity factor.
  • (C) represents the effective load capacitance.
  • (V) represents the supply voltage.
  • (f) represents the operating frequency.

This equation explains why reducing unnecessary signal transitions can help control dynamic power during testing.

Shift Power and Capture Power: Two Important Test Conditions

Power consumption during scan testing is generally divided into two major categories: shift power and capture power. Both need to be considered when developing a low-power test strategy.

Shift Power

Shift power is the power consumed while test patterns are loaded into scan chains or captured responses are shifted out.

During this operation, scan flip-flops receive new values through repeated scan clock pulses. Transitions in the scan cells may also propagate into the combinational logic, increasing overall switching activity.

High shift power can create excessive heating, especially when long scan chains operate continuously. It can also affect the reliability of scan operations if the circuit experiences power-related instability.

Capture Power

Capture power is the power consumed when the circuit captures its response after a test pattern has been loaded.

During capture, the combinational logic evaluates the applied test stimulus and produces responses that are stored in scan flip-flops. A large number of internal logic transitions can occur within a short time.

Capture power is particularly important in at-speed testing, where the circuit receives clock pulses at or near its functional operating frequency. Excessive peak switching activity can create sudden voltage drops and affect the timing of critical paths.

Parameter

Shift Power

Capture Power

Operation

Loading and unloading scan data

Capturing circuit responses

Main activity

Scan chain transitions

Combinational logic transitions

Key concern

Average power and accumulated heating

Peak power and voltage droop

Common optimisation

X-filling and scan chain optimisation

Capture-aware ATPG and X-filling


A successful power-aware ATPG flow should consider both conditions rather than optimising only one stage.

How Power-Aware ATPG Reduces Switching Activity

Traditional ATPG primarily focuses on achieving fault coverage and generating an efficient test set. Power-aware ATPG introduces additional constraints during test-pattern generation or optimisation.

The ATPG process considers how a pattern may affect switching activity and attempts to reduce unnecessary transitions without losing the ability to detect the target faults.

Several techniques can support this objective.

X-Filling Techniques

X-filling is one of the commonly used approaches for reducing switching activity during scan testing.

During ATPG, a generated test pattern may contain unspecified bits, commonly represented by X. These bits are called don't-care bits because their values do not affect the detection of the targeted fault under the given test conditions.

Instead of assigning arbitrary values to these positions, an X-filling strategy selects 0 or 1 based on the desired power reduction.

For example, consider two consecutive scan values:

  • Previous pattern: 0 1 0 1 1 0
  • New pattern: 0 X 0 X 1 X

The unspecified positions can be filled to minimise transitions between the two patterns.

One possible filled pattern is:

  • Optimised pattern: 0 1 0 1 1 0

In this example, the selected values match the corresponding previous values, avoiding unnecessary transitions at those positions.

However, X-filling must respect the specified fault-detection requirements. The ATPG tool cannot freely change every bit if doing so would affect the test response or fault coverage.

Different X-filling strategies can target shift power, capture power or both, depending on the test architecture and optimisation objective.

Scan Chain Reordering

Scan chain reordering is another technique that can help reduce switching activity.

In a scan architecture, the order in which scan flip-flops are connected can influence the number of transitions produced during scan shifting. Reordering scan cells can help place cells in an arrangement that reduces unnecessary data transitions.

For example, if two consecutive scan cells frequently receive different values during test-pattern loading, the scan sequence may produce more switching than necessary.

An optimised ordering can reduce such transitions while preserving the required scan connectivity and test functionality.

Physical considerations are also important. Scan chain reordering may take into account the physical placement of flip-flops, routing complexity and scan-chain connections.

Engineers must ensure that any reordering remains compatible with scan architecture, timing requirements and ATPG pattern generation.

Power-Aware Test Pattern Generation

Power-aware test pattern generation considers switching activity while generating test patterns rather than treating power optimisation as a completely separate task.

The ATPG process can include switching constraints that guide the selection of internal states and test assignments.

For example, the tool may attempt to:

  • Reduce unnecessary transitions between scan patterns.
  • Limit the number of simultaneously switching scan cells.
  • Control transitions in sensitive combinational logic.
  • Maintain capture activity within a defined power budget.
  • Preserve fault coverage while optimising test patterns.

This approach helps engineers balance test quality and power consumption during the ATPG process.

Test Vector Reordering

Test vector reordering focuses on changing the sequence in which generated test patterns are applied.

Two consecutive test vectors may create a large number of transitions when loaded into scan chains. By changing their application order, engineers can sometimes reduce the differences between consecutive patterns.

For example, if pattern A and pattern B have many different bit values, applying them consecutively may result in significant switching activity. If another pattern has fewer differences from pattern A, placing it next may reduce the number of transitions.

This technique is useful when the generated test set allows flexibility in pattern ordering. However, engineers must preserve any required test sequence, protocol dependencies and test application constraints.

Managing Peak Power During At-Speed Scan Testing

At-speed scan testing is used to identify timing-related defects that may not be detected through slower test operations.

Although the scan pattern is usually loaded at a lower frequency, the capture phase uses faster clock pulses to evaluate the circuit's response under more realistic timing conditions.

This creates an important challenge: the circuit may experience a sudden increase in switching activity during capture.

When many logic gates switch simultaneously, the power demand can increase rapidly. If the power delivery network cannot supply the required current without excessive voltage drop, the circuit may experience IR drop.

IR drop can affect the operating voltage of logic cells and increase gate delays. During at-speed testing, this may cause a circuit to fail a test even when the underlying functional logic is not defective.

Power-aware ATPG helps address this problem by considering the switching activity associated with capture patterns.

Engineers can use capture-power constraints, suitable X-filling strategies and test-pattern optimisation to reduce excessive activity.

The goal is not simply to minimise all switching. Test patterns must still activate and propagate the required faults. The challenge is to maintain sufficient fault excitation while avoiding unnecessary switching in other parts of the circuit.

The Role of Power Constraints in ATPG

Power constraints provide guidelines that help ATPG tools generate test patterns within the acceptable operating limits of a design.

These constraints can be based on the power budget, switching activity, scan architecture and physical characteristics of the chip.

Some important considerations include:

Maximum switching limit: Defines the acceptable amount of switching activity during scan shift or capture operations.

Peak power limit: Helps control sudden increases in power consumption, especially during at-speed capture.

Average power limit: Helps prevent excessive power accumulation during long scan sequences.

Clock constraints: Define how scan and capture clocks should operate during different test modes.

Physical power limitations: Consider the ability of the power delivery network to support the current demand across different regions of the chip.

These constraints should be aligned with the design's power intent and physical implementation. If the ATPG power limits are too restrictive, the tool may struggle to generate sufficient patterns or achieve the required fault coverage.

If the limits are too relaxed, the generated patterns may create power conditions that are unsafe for the device.

Therefore, engineers need to establish realistic constraints using design information and appropriate power analysis.

Challenges in Implementing Power-Aware ATPG

Although power-aware ATPG improves control over test-related switching activity, implementing it in a real design flow requires careful planning.

Maintaining Fault Coverage

Reducing switching activity should not compromise the ability to detect manufacturing defects. Some test patterns require specific logic assignments to activate and propagate faults.

Changing these assignments without considering their impact can reduce fault coverage or make certain faults difficult to detect.

Managing Test Pattern Count

Power optimisation can introduce additional restrictions during pattern generation. Depending on the ATPG algorithm and design complexity, these restrictions may increase pattern count or generation time.

Engineers need to balance power reduction with test data volume, test application time and fault coverage.

Handling X-Bit Availability

X-filling depends on the availability of unspecified bits in the generated test patterns. If most pattern positions are already specified, the opportunities for further power reduction may be limited.

Test compression and encoding constraints can also affect how freely X bits can be assigned.

Balancing Shift and Capture Power

A pattern that reduces shift power may not necessarily reduce capture power. These two operations have different switching characteristics and may require different optimisation strategies.

A practical low-power ATPG flow should evaluate both conditions independently.

Physical Design and Power Delivery Considerations

Power consumption during scan testing is influenced by the physical implementation of the chip. Placement, routing, clock distribution and power distribution networks can affect the voltage available to active logic.

An ATPG pattern that appears acceptable from a logical switching perspective may still create localised power problems in a physically dense region.

For this reason, DFT engineers need to work closely with physical design and power integrity teams.

A Practical Power-Aware ATPG Workflow

A structured workflow helps engineers introduce power optimisation without affecting the overall test strategy.

Step 1: Analyse the design and scan architecture

Review the scan chains, scan flip-flops, clock domains, test modes and available design constraints. Understand how scan activity can affect the connected combinational logic.

Step 2: Establish power limits

Define acceptable shift and capture power limits based on the design's power budget and physical implementation.

Step 3: Generate initial ATPG patterns

Create the initial test patterns using the required fault models and coverage objectives. Record the baseline pattern count and fault coverage.

Step 4: Apply power optimisation techniques

Use suitable methods such as X-filling, scan chain reordering, power-aware test generation and test vector reordering.

Step 5: Evaluate switching activity

Analyse the resulting patterns to understand how much switching occurs during scan shift and capture. Identify patterns or circuit regions that exceed the defined limits.

Step 6: Validate fault coverage and power

Confirm that the optimised patterns retain the required fault coverage and satisfy the applicable power constraints. Review any changes in pattern count and test application time.

Step 7: Complete physical and test validation

Coordinate with implementation and power analysis teams to evaluate potential IR drop, localised switching and other physical effects. Finalise the test patterns only after the required checks are complete.

This workflow creates a connection between ATPG optimisation and the physical behaviour of the chip during manufacturing test.

What VLSI and DFT Engineers Should Understand

Power-aware ATPG requires more than basic knowledge of test-pattern generation. Engineers working in this area should understand how scan architecture, digital logic and physical power behaviour interact.

Some important knowledge areas include:

  • Digital Design: Understanding combinational logic, sequential circuits, flip-flops and state transitions.
  • Design-for-Testability: Knowledge of scan insertion, scan chains, test modes and test architecture.
  • ATPG Concepts: Understanding stuck-at faults, transition faults, fault coverage, test cubes and pattern generation.
  • Scan Testing: Understanding scan shift, capture operations, scan-out and at-speed testing.
  • Low-Power Testing: Knowledge of X-filling, switching activity reduction and power-aware test generation.
  • Physical Design: Understanding placement, routing, clock distribution and power delivery networks.
  • Power Integrity: Understanding dynamic power, IR drop and the impact of switching activity on supply voltage.

Engineers should also become familiar with industry DFT tools and the practical process of analysing test patterns, reviewing power reports and validating generated test sets.

Combining these skills helps engineers understand not only how ATPG patterns detect faults but also how safely those patterns can be applied to complex semiconductor devices.

Why Power-Aware ATPG Matters for Modern SoCs

Modern SoCs integrate multiple processing units, memory interfaces, accelerators and other functional blocks into a single chip. Their scan architectures may contain large numbers of scan cells distributed across multiple physical regions.

Testing these designs can create significant power demands, particularly when several scan chains operate simultaneously.

Power-aware ATPG helps address these challenges by making test power an important consideration during pattern generation.

Its benefits include:

  • Reduced unnecessary switching during scan operations.
  • Better control over shift and capture power.
  • Lower risk of excessive voltage droop during testing.
  • Improved test reliability under defined power constraints.
  • Better coordination between ATPG, DFT and physical design activities.
  • More efficient use of available test power budgets.

These benefits depend on the design architecture, optimisation techniques and validation process. Power-aware ATPG does not eliminate every test-related power problem, but it provides an important way to manage switching activity as semiconductor designs become more complex.

Conclusion

Power-aware ATPG plays an important role in modern scan-based testing by balancing fault coverage with power consumption. Conventional ATPG focuses primarily on generating patterns that detect manufacturing defects, while power-aware approaches also consider the switching activity created during scan shift and capture operations.

Techniques such as X-filling, scan chain reordering, test vector reordering and power-aware test generation help reduce unnecessary transitions without compromising the required test objectives.

For VLSI and DFT engineers, understanding these methods is valuable when developing reliable test strategies for complex SoCs. By considering power constraints early in the ATPG flow and validating patterns against physical implementation requirements, engineering teams can improve test quality while keeping scan-related power consumption under control.

As semiconductor technology continues to advance, power-aware test generation will remain an important part of building reliable and production-ready integrated circuits.

Share LinkedIn X WhatsApp