AI summary · arXiv: 2204.11478v1 · cs.AR

Automatic Datapath Optimization using E-Graphs

Samuel Coward, George A. Constantinides, Theo Drane
Original paper · DOI 10.1109/arith54963.2022.00016 Submitted to arXiv on 25 Apr. 2022 Published in 2022 IEEE 29th Symposium on Computer Arithmetic (ARITH) (September 2022) License: CC BY 4.0

How to read this summary? Illustrated guide

The essentials

  • The paper proposes a novel approach to automate circuit design space exploration and optimize RTL datapath architectures.
  • The authors utilize graph rewriting techniques, e-graphs, and equality saturation for automating RTL optimization.
  • Complex transformations of one RTL into another equivalent RTL can be broken down into smaller, localized transformations.
  • By representing RTL as a graph and using modern graph rewriting techniques, functionally equivalent but optimized architectures can be discovered.
  • Precisely defined rewrites facilitate efficient design space exploration in designs with multiple bitwidth parameters.
  • The proposed approach generates a library of optimized designs instead of a single design point typically obtained through manual optimization.
  • Fuzzing techniques are used to quantify a "noise floor" in datapath logic synthesis, identifying potential errors or limitations in automated optimizations.
  • Previous work on transformation-based datapath improvement is discussed, including carry-save representation and solving the multiple constant multiplication (MCM) problem.
  • The authors generalize these approaches using their methodology and replicate results from prior studies.
  • Overall, the proposed approach significantly reduces circuit area while considering various bitwidth parameters and has the potential to accelerate circuit design development.

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: RTL optimization Graph rewriting Automated circuit design Bitwidth parameters Noise floor

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
The paper focuses on the manual optimization of Register Transfer Level (RTL) datapath in the industry, which is a time-consuming process. To address this issue, the authors propose a novel approach that utilizes graph rewriting techniques to automate circuit design space exploration and discover optimized architectures. The key contribution of the paper includes the application of e-graphs and equality saturation for automating RTL optimization. The authors demonstrate that complex transformations of one RTL into another equivalent RTL can be broken down into smaller, localized transformations. By representing RTL as a graph and deploying modern graph rewriting techniques, they are able to automate the discovery of functionally equivalent but optimized architectures. The paper also introduces a set of precisely defined rewrites that facilitate efficient design space exploration in designs utilizing multiple bitwidth parameters. This allows for the optimization of architectures based on different bitwidth parameters, resulting in a library of optimized designs rather than a single design point typically generated by manual optimization. Furthermore, the authors quantify a "noise floor" in datapath logic synthesis using fuzzing techniques from software testing. This helps identify potential errors or limitations in automated optimizations and provides insights into improving their effectiveness. In terms of background, the paper discusses previous work on transformation-based datapath improvement such as maximizing carry-save representation and solving the multiple constant multiplication (MCM) problem. The authors generalize these approaches using their methodology and show that their automated optimization approach can replicate results obtained in prior studies. Overall, this paper presents an automated optimization approach for RTL datapath that can significantly reduce circuit area while considering various bitwidth parameters. It not only reproduces typical industrial manual optimizations but also expands upon prior academic work on carry-save representation and multiple constant multiplication. The proposed approach has the potential to accelerate circuit design development by automating time-consuming manual optimizations.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 1 free rewrite left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Continue with Google Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero Zotero guide
Citation alerts 32 papers already cite it: be emailed each new one. Citation alerts guide
Who works on it?

Among the 31 papers around this one, the name that comes back most: Samuel Coward (8 papers)

11 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.

Continue with Google Create a free account: your first map is free
Weekly letter The latest letter of its field, "Computing beyond AI this week" of 30 November 2026: Computing beyond AI this week: What a system reveals, and what it can guarantee · Receive one by email for free

Papers around this one

See them on a map

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Cites this paper
    Automating Constraint-Aware Datapath Optimization using E-Graphs
    Samuel Coward, G. Constantinides, Theo Drane · 2023 · Design Automation Conference · cited 31 times · Not summarized yet
    Abstract

    Numerical hardware design requires aggressive optimization, where designers exploit branch constraints, creating optimization opportunities that are valid only on a sub-domain of input space. We developed an RTL optimization tool that automatically learns the consequences of conditional branches and exploits that knowledge to enable deep optimization. The tool deploys custom built program analysis based on abstract interpretation theory, which when combined with a data-structure known as an e-graph simplifies complex reasoning about program properties. Our tool fully-automatically discovers known floating-point architectures from the computer arithmetic literature and out-performs baseline E…

  2. Very close Cites this paper Uses this paper in depth
    ROVER: RTL Optimization via Verified E-Graph Rewriting
    Samuel Coward, Theo Drane, G. Constantinides · 2024 · IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · cited 20 times · Not summarized yet
    Abstract

    Manual register transfer level (RTL) design and optimization remains prevalent across the semiconductor industry because commercial logic and high-level synthesis tools are unable to match human designs. Our experience in industrial datapath design demonstrates that manual optimization can typically be decomposed into a sequence of local equivalence preserving transformations. By formulating datapath optimization as a graph rewriting problem we automate design space exploration in a tool we call ROVER.We develop a set of mixed precision RTL rewrite rules inspired by designers at Intel and an accompanying automated validation framework. A particular challenge in datapath design is to determin…

  3. Very close
    ASPEN: LLM-Guided E-Graph Rewriting for RTL Datapath Optimization
    Niansong Zhang, Chen-Hui Deng, Johannes Maximilian Kuehn et al. · 2025 · Workshop on Machine Learning for CAD · cited 13 times · Not summarized yet
    Abstract

    Datapath RTL optimization is a challenging multi-objective task that balances power, performance, and area (PPA). Traditionally, this process is done manually due to the complexity of balancing conflicting objectives. Recent approaches have explored rule-based rewriting using equality saturation with e-graphs, which solves the phase ordering problem but relies on manually designed rewrite rules and proxy PPA cost models. Meanwhile, large language models (LLMs) have been applied to RTL code generation and optimization due to their reasoning and programming capabilities. However, existing LLM-based methods lack a structured approach to represent and explore Pareto-optimal design points while e…

  4. Very close Cites this paper
    Multiplier Optimization via E-Graph Rewriting
    Andy Wanna, Samuel Coward, Theo Drane et al. · 2023 · Asilomar Conference on Signals, Systems and Computers · cited 7 times · Not summarized yet
    Abstract

    Multiplier circuits account for significant resource usage in datapath-dominated circuit designs, and RTL designers continue to build bespoke hand-crafted multiplication arrays for their particular application. The construction of an optimized multiplier presents trade-offs between pre-processing to generate a smaller array and array reduction. A data structure known as an e-graph has recently been applied to datapath optimization, where the e-graph's ability to efficiently explore trade-offs has been shown to be crucial. We propose an e-graph based rewriting framework to construct optimized multiplier circuits. Such a framework can express alternative multiplier representations and generate…

  5. Very close
    RTL++: Graph-enhanced LLM for RTL Code Generation
    Mohammad Akyash, Kimia Zamiri Azar, H. Kamali · 2025 · 2025 IEEE International Conference on LLM-Aided Design (ICLAD) · cited 38 times · Not summarized yet
    Abstract

    As hardware design complexity escalates, there is an urgent need for advanced automation in electronic design automation (EDA). Traditional register transfer level (RTL) design methods are manual, time-consuming, and prone to errors. While commercial (instruction-tuned) large language models (LLMs) shows promising performance for automation, they pose security and privacy concerns. Open-source models offer alternatives; however, they frequently fall short in quality/correctness, largely due to limited, high-quality RTL code data essential for effective training and generalization. This paper proposes RTL++, a first-of-its-kind LLM-assisted method for RTL code generation that utilizes graph r…

  6. Very close
    RTLRewriter: Methodologies for Large Models Aided RTL Code Optimization
    Xu-Feng Yao, Yiwen Wang, Xing Li et al. · 2024 · International Conference on Computer Aided Design · cited 59 times · Not summarized yet
    Abstract

    Register Transfer Level (RTL) code optimization is crucial for enhancing the efficiency and performance of digital circuits during early synthesis stages. Currently, optimization relies heavily on manual efforts by skilled engineers, often requiring multiple iterations based on synthesis feedback. In contrast, existing compilerbased methods fall short in addressing complex designs. This paper introduces RTLRewriter, an innovative framework that leverages large models to optimize RTL code. A circuit partition pipeline is utilized for fast synthesis and efficient rewriting. A multi-modal program analysis is proposed to incorporate vital visual diagram information as optimization cues. A specia…

  7. Very close Cites this paper Uses this paper in depth
    Datapath Verification via Word-Level E-Graph Rewriting
    Samuel Coward, Emiliano Morini, Bryan Tan et al. · 2023 · Formal Methods in Computer-Aided Design · cited 8 times · Not summarized yet
    Abstract

    Formal verification of datapath circuits is challenging as they are subject to intense optimization effort in the design phase. Industrial vendors and design companies deploy equivalence checking against a golden or existing reference design to satisfy correctness concerns. State-of-the-art datapath equivalence checking tools deploy a suite of techniques, including rewriting. We propose a rewriting framework deploying bitwidth-dependent rewrites based on the e-graph data structure, providing a powerful assistant to existing tools. The e-graph allows generation of a path of rewrites between the reference and implementation designs, which can then be checked by a trusted industry tool. We demo…

  8. Very close Cites this paper
    E-Syn: E-Graph Rewriting with Technology-Aware Cost Functions for Logic Synthesis
    Chen Chen, Guangyu Hu, Dong-Sheng Zuo et al. · 2024 · Design Automation Conference · cited 34 times · Not summarized yet
    Abstract

    Logic synthesis plays a crucial role in the digital design flow. It has a decisive influence on the final Quality of Results (QoR) of the circuit implementations. However, existing multi-level logic optimization algorithms often employ greedy approaches with a series of local optimization steps. Each step breaks the circuit into small pieces (e.g.,k-feasible cuts) and applies incremental changes to individual pieces separately. These local optimization steps could limit the exploration space and may miss opportunities for significant improvements. To address the limitation, this paper proposes using e-graph in logic synthesis. The new workflow, named E-Syn, makes use of the well-established …

Prior work it builds on

  1. Related* Used in depth by this paper
    Data-Flow Transformations to Maximize the Use of Carry-Save Representation in Arithmetic Circuits
    A. K. Verma, P. Brisk, P. Ienne · 2008 · IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · cited 65 times · Not summarized yet
  2. Related Used in depth by this paper
    egg: Fast and extensible equality saturation
    Max Willsey, Chandrakana Nandi, Y. Wang et al. · 2020 · Proc. ACM Program. Lang. · cited 328 times · Not summarized yet
    Abstract

    An e-graph efficiently represents a congruence relation over many expressions. Although they were originally developed in the late 1970s for use in automated theorem provers, a more recent technique known as equality saturation repurposes e-graphs to implement state-of-the-art, rewrite-driven compiler optimizations and program synthesizers. However, e-graphs remain unspecialized for this newer use case. Equality saturation workloads exhibit distinct characteristics and often require ad-hoc e-graph extensions to incorporate transformations beyond purely syntactic rewrites. This work contributes two techniques that make e-graphs fast and extensible, specializing them to equality saturation. A …

  3. Close
    IMpress: Large Integer Multiplication Expression Rewriting for FPGA HLS
    Ecenur Ustun, Ismail San, Jiaqi Yin et al. · 2022 · IEEE Symposium on Field-Programmable Custom Computing Machines · cited 44 times · Not summarized yet
    Abstract

    Large integer multiplication is becoming a major challenge for FPGA-based acceleration of many cryptographic applications. Existing techniques for decomposing and optimizing large integer multiplication bring about nontrivial trade-offs between different resource types as well as performance. In this work, we regard determining the level and order of multiplication decomposition as a phase ordering problem, which is a notable problem in compiler optimization. Our framework, IMpress, leverages equality saturation to automatically produce a wide range of equivalent integer multiplication expressions corresponding to various hardware implementations. We devise constrained and multi-objective ex…

  4. Related
    Equality saturation: a new approach to optimization
    R. Tate, M. Stepp, Zachary Tatlock et al. · 2009 · ACM-SIGACT Symposium on Principles of Programming Languages · cited 355 times · Not summarized yet
    Abstract

    Optimizations in a traditional compiler are applied sequentially, with each optimization destructively modifying the program to produce a transformed program that is then passed to the next optimization. We present a new approach for structuring the optimization phase of a compiler. In our approach, optimizations take the form of equality analyses that add equality information to a common intermediate representation. The optimizer works by repeatedly applying these analyses to infer equivalences between program fragments, thus saturating the intermediate representation with equalities. Once saturated, the intermediate representation encodes multiple optimized versions of the input program. A…

  5. Related*
    A Difference Based Adder Graph Heuristic for Multiple Constant Multiplication Problems
    Oscar Gustafsson · 2007 · 2007 IEEE International Symposium on Circuits and Systems · cited 133 times · Not summarized yet

Papers that cite it

  1. Close Uses this paper in depth
    Combining Power and Arithmetic Optimization via Datapath Rewriting
    Samuel Coward, Theo Drane, Emiliano Morini et al. · 2024 · IEEE Symposium on Computer Arithmetic · cited 15 times · Not summarized yet
    Abstract

    Industrial datapath designers consider dynamic power consumption to be a key metric. Arithmetic circuits contribute a major component of total chip power consumption and are therefore a common target for power optimization. While arithmetic circuit area and dynamic power consumption are often correlated, there is also a tradeoff to consider, as additional gates can be added to explicitly reduce arithmetic circuit activity and hence reduce power consumption. In this work, we consider two forms of power optimization and their interaction: circuit area reduction via arithmetic optimization, and the elimination of redundant computations using both data and clock gating. By encoding both these cl…

  2. Close Uses this paper in depth
    SEER: Super-Optimization Explorer for High-Level Synthesis using E-graph Rewriting
    Jian-Yi Cheng, Samuel Coward, Lorenzo Chelini et al. · 2024 · International Conference on Architectural Support for Programming Languages and Operating Systems · cited 29 times · Not summarized yet
    Abstract

    High-level synthesis (HLS) is a process that automatically translates a software program in a high-level language into a low-level hardware description. However, the hardware designs produced by HLS tools still suffer from a significant performance gap compared to manual implementations. This is because the input HLS programs must still be written using hardware design principles. Existing techniques either leave the program source unchanged or perform a fixed sequence of source transformation passes, potentially missing opportunities to find the optimal design. We propose a super-optimization approach for HLS that automatically rewrites an arbitrary software program into efficient HLS code …

  3. Close Uses this paper in depth
    SEER: Super-Optimization Explorer for HLS using E-graph Rewriting with MLIR
    Jian-Yi Cheng, Samuel Coward, Lorenzo Chelini et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 7 times · Not summarized yet
    Abstract

    High-level synthesis (HLS) is a process that automatically translates a software program in a high-level language into a low-level hardware description. However, the hardware designs produced by HLS tools still suffer from a significant performance gap compared to manual implementations. This is because the input HLS programs must still be written using hardware design principles. Existing techniques either leave the program source unchanged or perform a fixed sequence of source transformation passes, potentially missing opportunities to find the optimal design. We propose a super-optimization approach for HLS that automatically rewrites an arbitrary software program into efficient HLS code …

  4. Close
    E-morphic: Scalable Equality Saturation for Structural Exploration in Logic Synthesis
    Chen Chen, Guangyu Hu, Cun-Xi Yu et al. · 2025 · Design Automation Conference · cited 17 times · Not summarized yet
    Abstract

    In technology mapping, the quality of the final implementation heavily relies on the circuit structure after technologyindependent 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 conversi…

  5. Close Uses this paper in depth
    SmoothE: Differentiable E-Graph Extraction
    Yao-Hui Cai, Kaixin Yang, Chen-Hui Deng et al. · 2025 · International Conference on Architectural Support for Programming Languages and Operating Systems · cited 16 times · Not summarized yet
    Abstract

    E-graphs have gained increasing popularity in compiler optimization, program synthesis, and theorem proving tasks. They enable compact representation of many equivalent expressions and facilitate transformations via rewrite rules without phase ordering limitations. A major benefit of using e-graphs is the ability to explore a large space of equivalent expressions, allowing the extraction of an expression that best meets certain optimization objectives (or cost models). However, current e-graph extraction methods often face unfavorable scalability-quality trade-offs and only support simple linear cost functions, limiting their applicability to more realistic optimization problems. In this wor…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 5 November 2026.

The illustrated guide to the papers around a paper

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.