[Paper Review] The EPFL Logic Synthesis Libraries
The paper presents the EPFL Logic Synthesis Libraries, a C++ and Python framework for logic synthesis that enables generic, high-performance logic network manipulation through a layered, concept-based design. It introduces mockturtle, a generic library abstracting logic networks via interfaces, allowing algorithms to work across diverse network implementations without runtime overhead, with demonstrated efficiency and extensibility through Python scripting and multiple language examples.
We present a collection of modular open source C++ libraries for the development of logic synthesis applications. These libraries can be used to develop applications for the design of classical and emerging technologies, as well as for the implementation of quantum compilers. All libraries are well documented and well tested. Furthermore, being header-only, the libraries can be readily used as core components in complex logic synthesis systems.
Motivation & Objective
- To design a generic, high-performance logic synthesis framework independent of specific network implementations.
- To enable seamless integration of logic synthesis algorithms across diverse logic network data structures through concept-based C++17 design.
- To provide a Python interface for scripting and automation of logic synthesis workflows.
- To decouple algorithms from data structure details to improve maintainability and performance.
- To support extensibility through multiple language bindings (Python, C#, Scala) and logging for reproducibility.
Proposed method
- Designing a four-layer C++ library stack: network interface API, generic algorithms, network implementations, and performance tuning layers.
- Using C++20 concepts and static polymorphism to enforce interface contracts without dynamic dispatch, preserving performance.
- Defining a minimal, standardized API for network operations (e.g., is_pi, size, foreach_node) to enable generic algorithm implementation.
- Implementing algorithmic components like cut_enumeration that work across any conforming network type via interface abstraction.
- Enabling Python scripting via a compiled Python module that maps each command to a function with input/output semantics.
- Supporting command logging in JSON format to enable reproducibility and workflow tracking.
Experimental results
Research questions
- RQ1How can logic synthesis algorithms be made generic across diverse logic network data structures without performance loss?
- RQ2What design patterns in modern C++ enable high-performance, generic logic network manipulation?
- RQ3Can a unified interface support both C++ and Python-based logic synthesis workflows with full reproducibility?
- RQ4How can logging and JSON output enhance automation and debugging in logic synthesis pipelines?
- RQ5What is the impact of avoiding dynamic polymorphism on performance and extensibility in logic synthesis libraries?
Key findings
- The mockturtle library successfully decouples algorithms from network implementations using C++20 concepts, enabling generic algorithms that work across multiple network types without dynamic dispatch.
- The use of static polymorphism and interface abstractions results in high performance, as demonstrated by efficient execution of algorithms like cut_enumeration on various network types.
- The Python interface enables concise, readable scripting for logic synthesis workflows, such as comparing optimization results before and after synthesis.
- Command logging via the -l flag produces structured JSON output, allowing full reproducibility and integration into automated pipelines.
- The framework supports extensibility through multiple language bindings (Python, C#, Scala), with example workloads demonstrating its practical utility.
- The library design enables algorithm reuse across different gate libraries and network representations without code duplication or performance penalties.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.