Scan Chain Wirelength Optimization via Q-Learning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current scan chain optimization methods are inefficient in reducing wirelength and power consumption, as they do not effectively utilize Q-learning based reinforcement learning to reorder scan chains, leading to suboptimal test times and chip area.

Innovation Solution

The implementation of a Q-learning based reinforcement learning algorithm to optimize scan chain wirelength by reordering scan nets based on the physical location of latches, using a Q-table to guide the optimization process and incorporate constraints such as design for testability limits and local clock buffer clustering.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Length of moving object

If traditional scan chain optimization methods are used, then the optimization process is simpler, but the wirelength reduction effectiveness is insufficient

Engineering Contradiction:
Improvescan chain wirelengthVSAvoidoptimization algorithm complexity
Core Design Contradiction:
Length of moving objectVSDevice complexity

Solution Approach 1:

The patent implements a Q-learning reinforcement learning algorithm that uses feedback mechanisms to iteratively optimize scan chain ordering. The algorithm learns from the wirelength outcomes of previous ordering decisions and adjusts future decisions to minimize total wirelength. This feedback-driven approach resolves the contradiction by enabling effective wirelength reduction through learned optimization patterns without requiring excessively complex manual design processes.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The Q-learning algorithm performs self-service optimization by automatically learning the optimal scan chain ordering strategy through iterative training and evaluation. The system serves itself by generating training data from random initial orderings, learning from the results, and progressively improving its ordering decisions without external intervention. This self-service capability enables effective wirelength reduction while keeping the optimization process autonomous and manageable.

Inventive Principle:
Principle #25Self-service

2Loss of energy

If Q-learning based reinforcement learning is applied to optimize scan chains, then wirelength and power consumption are reduced, but the computational complexity and training time increase

Engineering Contradiction:
Improvepower consumptionVSAvoidoptimization training time
Core Design Contradiction:
Loss of energyVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-training the Q-learning algorithm offline to establish an optimized scan chain ordering policy before actual circuit operation. The training phase generates a Q-table that stores optimal ordering decisions for various states, which can then be directly applied during production without requiring additional training time. This preliminary training resolves the contradiction by separating the time-consuming learning process from the operational phase, enabling low power consumption during actual use.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent utilizes parameter changes by adjusting the Q-learning hyperparameters (learning rate, discount factor, exploration rate) and training configuration to optimize the balance between training time and optimization effectiveness. By carefully tuning these parameters, the system achieves sufficient wirelength and power reduction while minimizing the computational time required for training, thus resolving the contradiction between energy savings and training time investment.

Inventive Principle:
Principle #35Parameter changes

3Area of stationary object

If scan chains are reordered to reduce wirelength, then test time and chip area are improved, but the design complexity and constraint management become more difficult

Engineering Contradiction:
Improvechip areaVSAvoiddesign constraint management
Core Design Contradiction:
Area of stationary objectVSDevice complexity

Solution Approach 1:

The patent applies local quality by incorporating design constraints directly into the Q-learning reward function and state representation. Different regions of the state space correspond to different constraint satisfaction levels, and the reward function provides localized guidance to steer the optimization toward feasible solutions. This approach resolves the contradiction by enabling chip area reduction through scan chain reordering while managing design constraints through localized reward signals that guide the learning process toward valid configurations.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent uses the Q-table as an intermediary that mediates between the optimization goals (wirelength reduction, area minimization) and the design constraints. The Q-table learns to map states to actions that simultaneously satisfy multiple objectives and constraints, acting as an intermediary layer that translates complex constraint requirements into actionable ordering decisions. This intermediary mechanism resolves the contradiction by enabling area reduction while automatically handling constraint management through the learned policy.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11507721B2Scan chain wirelength optimization using Q-learning based reinforcement learning
Publication Date: 2022.11.22 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11507721B2 patent drawing
  • US11507721B2 patent drawing
  • US11507721B2 patent drawing

AI summary

A method, a computer system, and a computer program product for scan chain wirelength optimization is provided. Embodiments of the present invention may include obtaining root nodes details from the root nodes. Embodiments of the present invention may include optimizing a connectivity of the root nodes. Embodiments of the present invention may include identifying a best start node and a best end node for each of the root nodes. Embodiments of the present invention may include optimizing child nodes in each of the root nodes. Embodiments of the present invention may include determining that a wirelength of a full tour is shorter or longer than a nearest neighbor. Embodiments of the present invention may include applying or skipping a solution.