E-morphic: Scalable Equality Saturation for Structural Exploration in Logic Synthesis
Chen Chen, Guangyu HU, Cunxi Yu, Yuzhe Ma, Hongce Zhang
TL;DR
The paper addresses structural bias in technology mapping by proposing E-morphic, a scalable equality-saturation framework for resynthesis after technology-independent optimization. E-morphic enables parallel structural exploration before mapping, using direct DAG-to-DAG conversion, a simulated annealing-based extraction engine, solution-space pruning, and dual cost models to balance runtime and QoR, with multi-threading and optional ML cost estimation. Empirical results on EPFL large-scale circuits show average improvements of $12.54\%$ in area and $7.29\%$ in delay over a state-of-the-art delay-optimized flow, along with notable runtime efficiency gains when using the ML cost model. The approach demonstrates the practicality of large-scale e-graph-based optimization in logic synthesis and offers integration points with ABC and commercial tools to deliver better post-mapping QoR.
Abstract
In technology mapping, the quality of the final implementation heavily relies on the circuit structure after technology-independent optimization. Recent studies have introduced equality saturation as a novel optimization approach. However, its efficiency remains a hurdle against its wide adoption in logic synthesis. This paper proposes a highly scalable and efficient framework named E-morphic. It is the first work that employs equality saturation for resynthesis after conventional technology-independent logic optimizations, enabling structure exploration before technology mapping. Powered by several key enhancements to the equality saturation framework, such as direct e-graph-circuit conversion, solution-space pruning, and simulated annealing for e-graph extraction, this approach not only improves the scalability and extraction efficiency of e-graph rewriting but also addresses the structural bias issue present in conventional logic synthesis flows through parallel structural exploration and resynthesis. Experiments show that, compared to the state-of-the-art delay optimization flow in ABC, E-morphic on average achieves 12.54% area saving and 7.29% delay reduction on the large-scale circuits in the EPFL benchmark.
