aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/abc9.cc
diff options
context:
space:
mode:
Diffstat (limited to 'passes/techmap/abc9.cc')
-rw-r--r--passes/techmap/abc9.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc
index 4bb4058b1..51bea4d57 100644
--- a/passes/techmap/abc9.cc
+++ b/passes/techmap/abc9.cc
@@ -520,8 +520,9 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
continue;
}
else if (cell->type.in("$_FF_")) {
- SigBit D = cell->getPort("\\D");
- SigBit Q = cell->getPort("\\Q");
+ RTLIL::Wire *D = cell->getPort("\\D").as_wire();
+ RTLIL::Wire *Q = cell->getPort("\\Q").as_wire();
+ Q->attributes.swap(D->attributes);
module->connect(Q, D);
it = module->cells_.erase(it);
continue;