arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.19103cs.LO
收藏

Simplifier:一种用于布尔电路简化的新工具

Simplifier: A New Tool for Boolean Circuit Simplification

Daniil Averkov, Gregory Emdin, Viktoriia Krivogornitsyna, Alexander S. Kulikov, Fedor Kurmazov, Alexander Smal, Vsevolod Vaskin

AI总结:

本文提出开源工具Simplifier,通过预计算优化数据库和线性子电路检查,在几秒内简化布尔电路,对AIG和BENCH电路分别实现平均4%和30%的规模缩减。

摘要:

布尔电路简化问题涉及找到一个更小的电路,该电路计算与给定布尔电路相同的函数。这个问题与多个具有理论和实际应用的关键领域密切相关,例如逻辑综合、可满足性和验证。在本文中,我们介绍了Simplifier,一个用于简化布尔电路的新开源工具。该工具优化具有三个输入和至多三个输出的子电路,力求改进每一个子电路。它被设计为一种低开销方法,对于规模合理的电路,运行时间仅需几秒。这种效率通过结合两个关键策略实现。首先,该工具利用一个预先计算的优化电路数据库,该数据库是在仔细聚类具有三个输入和至多三个输出的布尔函数后,使用SAT求解器生成的。其次,我们证明只需检查相对于原始电路规模呈线性数量的子电路即可。这使得该工具的单次迭代能够在线性时间内执行。我们在广泛的布尔电路上评估了该工具,包括工业和手工制作的示例,采用两种流行的格式:AIG和BENCH。对于AIG电路,在应用最先进的ABC框架后,我们的工具实现了额外的平均4%的规模缩减。对于BENCH电路,该工具平均将电路规模缩减了30%。

英文摘要:

The Boolean circuit simplification problem involves finding a smaller circuit that computes the same function as a given Boolean circuit. This problem is closely related to several key areas with both theoretical and practical applications, such as logic synthesis, satisfiability, and verification. In this paper, we present Simplifier, a new open source tool for simplifying Boolean circuits. The tool optimizes subcircuits with three inputs and at most three outputs, seeking to improve each one. It is designed as a low-effort method that runs in just a few seconds for circuits of reasonable size. This efficiency is achieved by combining two key strategies. First, the tool utilizes a precomputed database of optimized circuits, generated with SAT solvers after carefully clustering Boolean functions with three inputs and up to three outputs. Second, we demonstrate that it is sufficient to check a linear number of subcircuits, relative to the size of the original circuit. This allows a single iteration of the tool to be executed in linear time. We evaluated the tool on a wide range of Boolean circuits, including both industrial and hand-crafted examples, in two popular formats: AIG and BENCH. For AIG circuits, after applying the state-of-the-art ABC framework, our tool achieved an additional 4% average reduction in size. For BENCH circuits, the tool reduced their size by an average of 30%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑