将电路基准转换为CNF公式用于与SAT求解器求解

发布于 2025-01-20 12:55:09 字数 89 浏览 4 评论 0原文

是否有任何可以将电路基准(ISCA)转换为CNF的工具,以便在SAT求解器中使用它?主要目标是为电路找到一些输入模式,这些输入模式将在某些门中提供一些预定义的输出。

Is there any tool that can convert circuit benchmarks (ISCAS) to CNF so that it can be used in SAT solver? The main goal is to find some input patterns for the circuit which will give some predefined output in some gates.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

自由范儿 2025-01-27 12:55:09

工具问题不超出此网站的范围。

我不知道直接的“ ISCAS到DIMACS”转换器。

您可能会查看 bc2cnf 。 This is a versatile converter which reads a circuit description and writes the corresponding CNF in

Tool questions are out of scope for this site.

I am not aware of a direct "ISCAS to DIMACS" converter.

You may have a look at bc2cnf. This is a versatile converter which reads a circuit description and writes the corresponding CNF in DIMACS format.It also contains a parser/converter for the ISCAS-related EDIMACS format.

放低过去 2025-01-27 12:55:09

ABC 提供 read_bench 和 <代码> write_cnf 。

但是,write_cnf 仅适用于具有一个主输出的电路。您可能需要编辑基准,以便在满足门条件时主输出为 1。

ABC offers both read_bench and write_cnf.

However, write_cnf only works for circuits with one primary output. You will likely need to edit your benchmarks so that the primary output is 1 when your gate conditions are satisfied.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文