mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-04 06:15:47 +00:00
Improved sat generator and sat_solve pass
This commit is contained in:
parent
46fbe9d262
commit
56b593b91c
6 changed files with 57 additions and 15 deletions
|
@ -129,7 +129,7 @@ struct SatSolvePass : public Pass {
|
|||
std::vector<std::pair<std::string, std::string>> sets;
|
||||
std::vector<std::string> shows;
|
||||
|
||||
log_header("Executing SAT_SOLVE pass (detecting logic loops).\n");
|
||||
log_header("Executing SAT_SOLVE pass (solving SAT problems in the circuit).\n");
|
||||
|
||||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
|
@ -189,7 +189,7 @@ struct SatSolvePass : public Pass {
|
|||
satgen.importCell(c.second);
|
||||
import_cell_counter++;
|
||||
}
|
||||
log("Imported %d cells.\n", import_cell_counter);
|
||||
log("Imported %d cells to SAT database.\n", import_cell_counter);
|
||||
|
||||
std::vector<int> modelExpressions;
|
||||
std::vector<bool> modelValues;
|
||||
|
@ -227,7 +227,7 @@ struct SatSolvePass : public Pass {
|
|||
}
|
||||
}
|
||||
|
||||
log("Solving problem with %d variables and %d clauses..\n", ez.numCnfVariables(), int(ez.cnf().size()));
|
||||
log("Solving problem with %d variables and %d clauses..\n", ez.numCnfVariables(), ez.numCnfClauses());
|
||||
if (ez.solve(modelExpressions, modelValues))
|
||||
{
|
||||
log("SAT solving finished - model found:\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue