mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-28 17:14:11 +02:00
opt_dff: Fix NOT gates wired in reverse.
This commit is contained in:
@@ -318,9 +318,9 @@ struct OptDffWorker
|
||||
if (!ff.pol_clr) {
|
||||
module->connect(ff.sig_q[i], ff.sig_clr[i]);
|
||||
} else if (ff.is_fine) {
|
||||
module->addNotGate(NEW_ID, ff.sig_q[i], ff.sig_clr[i]);
|
||||
module->addNotGate(NEW_ID, ff.sig_clr[i], ff.sig_q[i]);
|
||||
} else {
|
||||
module->addNot(NEW_ID, ff.sig_q[i], ff.sig_clr[i]);
|
||||
module->addNot(NEW_ID, ff.sig_clr[i], ff.sig_q[i]);
|
||||
}
|
||||
log("Handling always-active SET at position %d on %s (%s) from module %s (changing to combinatorial circuit).\n",
|
||||
i, log_id(cell), log_id(cell->type), log_id(module));
|
||||
|
||||
Reference in New Issue
Block a user