Fungible Memories for Automated Technology Mapping and Retargeting
Authors:
Open Access
- 8 June 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 10 (PLDI) , 1178-1201
Abstract
During chip development, engineers must target different technologies, such as simulation and various ASIC and FPGA technologies. Conventionally, they split parts of the code (e.g., memories) into separate technology-specialized blocks implementing the same high-level behavior. This leads to brittle code, with multiple but subtly different blocks describing the same semantic behavior, harming verification, agility, and extensibility. We propose fungible memories, an HDL-level "write once, map anywhere" memory abstraction with rich enough semantics to automatically target all relevant technologies using a single generic interface. We incorporate fungible memories into a compiler called Memo. For designs without a specific technology mapping, we also present a memory decompiler which lifts memories from an existing gate-level design to Memo, enabling automated technology re-targeting, which is a holy grail for digital designers. We present a structure-aware equality saturation technique which scales to netlists with millions of cells and identifies memories that the state of the art cannot. We demonstrate that Memo effectively targets backends across different technology platforms (simulation, ASIC, and FPGA) over a suite of representative designs, including a RISC-V multicore SoC.Keywords
Funding Information
- National Science Foundation (2237379)
- National Science Foundation (2450426)
This publication has 29 references indexed in Scilit:
- EqMap: FPGA LUT Remapping using E-Graphs2025
- E-morphic: Scalable Equality Saturation for Structural Exploration in Logic Synthesis2025
- Multiplier Optimization via E-Graph Rewriting2023
- Automatic Datapath Optimization using E-Graphs2022
- IMpress: Large Integer Multiplication Expression Rewriting for FPGA HLS2022
- The Lean 4 Theorem Prover and Programming Language2021
- A Multi-ported Memory Compiler Utilizing True Dual-Port BRAMs2016
- Synopsys' Educational Generic Memory Compiler2014
- ABC: An Academic Industrial-Strength Verification Tool2010
- Fixpoint iteration with subsumption in deductive databasesJournal of Intelligent Information Systems, 1995