English

Bounded Dynamic Level Maintenance for Efficient Logic Optimization

Computational Complexity 2025-12-16 v1

Abstract

Logic optimization constitutes a critical phase within the Electronic Design Automation (EDA) flow, essential for achieving desired circuit power, performance, and area (PPA) targets. These logic circuits are typically represented as Directed Acyclic Graphs (DAGs), where the structural depth, quantified by node level, critically correlates with timing performance. Modern optimization strategies frequently employ iterative, local transformation heuristics (\emph{e.g.,} \emph{rewrite}, \emph{refactor}) directly on this DAG structure. As optimization continuously modifies the graph locally, node levels require frequent dynamic updates to guide subsequent decisions. However, a significant gap exists: existing algorithms for incrementally updating node levels are unbounded to small changes. This leads to a total of worst complexity in O(V2)O(|V|^2) for given local subgraphs {ΔGi}i=1V\{\Delta G_i\}_{i=1}^{|V|} updates on DAG G(V,E)G(V,E). This unbounded nature poses a severe efficiency bottleneck, hindering the scalability of optimization flows, particularly when applied to large circuit designs prevalent today. In this paper, we analyze the dynamic level maintenance problem endemic to iterative logic optimization, framing it through the lens of partial topological order. Building upon the analysis, we present the first bounded algorithm for maintaining level constraints, with O(VΔlogΔ)O(|V| \Delta \log \Delta) time for a sequence V|V| of updates {ΔGi}\{\Delta G_i\}, where Δ=maxiΔGi\Delta = \max_i \|\Delta G_i\| denotes the maximum extended size of ΔGi\Delta G_i. Experiments on comprehensive benchmarks show our algorithm enables an average 6.4×\times overall speedup relative to \rw and \rf, driven by a 1074.8×\times speedup in the level maintenance, all without any quality sacrifice.

Keywords

Cite

@article{arxiv.2512.12554,
  title  = {Bounded Dynamic Level Maintenance for Efficient Logic Optimization},
  author = {Junfeng Liu and Qinghua Zhao and Liwei Ni and Jingren Wang and Biwei Xie and Xingquan Li and Bei Yu and Shuai Ma},
  journal= {arXiv preprint arXiv:2512.12554},
  year   = {2025}
}
R2 v1 2026-07-01T08:23:48.662Z