RulePlanner: All-in-One Reinforcement Learner for Unifying Design Rules in 3D Floorplanning
Ruizhe Zhong, Xingbo Du, Junchi Yan
TL;DR
RulePlanner tackles the challenging problem of 3D IC floorplanning under multiple real-world hardware design rules by unifying rule handling into an all-in-one reinforcement learning framework. It introduces novel matrix representations (e.g., adjacent terminal and adjacent block masks), direct action-space constraints through an availability mask, and a dense, self-adaptively normalized reward that jointly accounts for rule satisfaction, HPWL, and overlap. The architecture combines a Transformer-based netlist processor with a vision-based module to process rule matrices, and trains under a hybrid action space with PPO, achieving strong zero-shot generalization and transferability to unseen circuits while enabling easy extensibility for new rules. Empirical results on public benchmarks demonstrate RulePlanner’s ability to satisfy complex constraints concurrently and to outperform baselines on design-rule metrics, illustrating potential for practical IC design automation and scalability to future challenges, with code to be released at the project repository.
Abstract
Floorplanning determines the coordinate and shape of each module in Integrated Circuits. With the scaling of technology nodes, in floorplanning stage especially 3D scenarios with multiple stacked layers, it has become increasingly challenging to adhere to complex hardware design rules. Current methods are only capable of handling specific and limited design rules, while violations of other rules require manual and meticulous adjustment. This leads to labor-intensive and time-consuming post-processing for expert engineers. In this paper, we propose an all-in-one deep reinforcement learning-based approach to tackle these challenges, and design novel representations for real-world IC design rules that have not been addressed by previous approaches. Specifically, the processing of various hardware design rules is unified into a single framework with three key components: 1) novel matrix representations to model the design rules, 2) constraints on the action space to filter out invalid actions that cause rule violations, and 3) quantitative analysis of constraint satisfaction as reward signals. Experiments on public benchmarks demonstrate the effectiveness and validity of our approach. Furthermore, transferability is well demonstrated on unseen circuits. Our framework is extensible to accommodate new design rules, thus providing flexibility to address emerging challenges in future chip design. Code will be available at: https://github.com/Thinklab-SJTU/EDA-AI
