Abstract
Chip placement is a critical and time-consuming stage in semiconductor design, traditionally requiring weeks of manual effort by human experts. This paper introduces a deep reinforcement learning (RL) approach that learns from past experience to place new, unseen chip netlists. By training a graph neural network-based policy on a variety of chip blocks, the RL agent can generate superhuman or expert-level placements in under 6 hours. The method demonstrates significant improvements in power, performance, and area (PPA) while maintaining computational efficiency through transfer learning.
Introduction
The design of modern integrated circuits involves mapping a massive graph of components—including large memory blocks (macros) and millions of logic gates (standard cells)—onto a 2D silicon canvas. This process, known as chip placement, must optimize for Power, Performance, and Area (PPA) while adhering to strict routing and density constraints. Historically, this has been addressed using simulated annealing or analytic solvers. However, these traditional algorithms start from scratch for every new chip, failing to leverage knowledge from previous designs. Consequently, human experts often spend weeks iteratively refining placements to achieve a viable solution.
Methodology
The authors frame chip placement as a Markov Decision Process (MDP) solved via Reinforcement Learning, specifically using Proximal Policy Optimization (PPO).
The RL Workflow
The placement process is divided into two main stages. First, the RL agent places the large macros sequentially onto a discretized grid. Once all macros are positioned, a fast, classical force-directed method is employed to place the millions of standard cells.
Reward Function
To avoid the long evaluation times of commercial Electronic Design Automation (EDA) tools, the authors utilize a fast proxy reward. This reward is defined as the negative weighted sum of the approximate wirelength (Half-Perimeter Wirelength, or HPWL) and routing congestion, subject to hard density constraints.
Transfer Learning and Architecture
A key innovation is the use of transfer learning to allow the agent to generalize to unseen chips. The architecture incorporates a novel Graph Neural Network (GNN) that serves as a state encoder. This GNN is pre-trained in a supervised setting to predict wirelength and congestion for thousands of diverse placements. The resulting embeddings provide a rich representation of the netlist graph, enabling the policy and value networks to understand novel chip topologies.
Datasets and Evaluation
The model was pre-trained on a dataset of 10,000 chip placements. RL training utilized sets of 2, 5, and 20 proprietary Google TPU blocks. Evaluation was conducted on five unseen TPU blocks and the open-source Ariane RISC-V CPU to test both zero-shot and fine-tuned performance.
Key Insights
- Experience Scales: Performance on unseen chips improved significantly as the variety of training data increased. Training on 20 blocks yielded better generalization than training on 2 or 5.
- Emergent Strategies: The RL agent independently learned to create "donut-shaped" placements—placing macros at the edges and clustering standard cells in the center—a strategy commonly used by human experts to reduce wirelength.
- Hybrid Approach: Decoupling macro placement (via RL) from standard cell placement (via fast heuristics) effectively manages the massive state-space complexity.
Results
The RL method generates expert-level placements in under 6 hours, a massive speedup compared to the weeks required for manual design. In zero-shot scenarios, a pre-trained policy can produce a viable placement in less than one second. Furthermore, the RL approach outperformed state-of-the-art analytic solvers like RePlAce, which failed to produce feasible placements on several test blocks. Compared to simulated annealing, the RL method achieved 14.4% lower wirelength and 24.1% lower congestion while converging three times faster.
Conclusion and Future Work
While highly effective, the current method relies on a rudimentary force-directed placer for standard cells. Integrating more advanced placers could further refine the reward signal. Future work may also explore joint optimization of macro ordering and placement, or extending this domain-adaptive policy paradigm to other stages of the chip design pipeline, such as logic synthesis and verification.
Summary updated