aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/abc9.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-15 09:46:35 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-15 09:46:35 -0700
commita76c8a7ffdfb879971c8c3d1b1f7e8392ddf2c91 (patch)
tree49e471ade09346f2c17ebd00205e3dc70d1f7691 /passes/techmap/abc9.cc
parent6d74b3e004455a98d785bd27c4276b787af637a7 (diff)
downloadyosys-a76c8a7ffdfb879971c8c3d1b1f7e8392ddf2c91.tar.gz
yosys-a76c8a7ffdfb879971c8c3d1b1f7e8392ddf2c91.tar.bz2
yosys-a76c8a7ffdfb879971c8c3d1b1f7e8392ddf2c91.zip
Fix initialisation of flops
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;