mirror of https://github.com/YosysHQ/yosys.git
Fixed inserting of Q-inverters in dfflibmap
This commit is contained in:
parent
cfb4338319
commit
d148b0af0d
|
@ -409,6 +409,11 @@ static void dfflibmap(RTLIL::Design *design, RTLIL::Module *module)
|
|||
if ('A' <= port.second && port.second <= 'Z') {
|
||||
sig = cell_connections[std::string("\\") + port.second];
|
||||
} else
|
||||
if (port.second == 'q') {
|
||||
RTLIL::SigSpec old_sig = cell_connections[std::string("\\") + char(port.second - ('a' - 'A'))];
|
||||
sig = module->addWire(NEW_ID, SIZE(old_sig));
|
||||
module->addNotGate(NEW_ID, sig, old_sig);
|
||||
} else
|
||||
if ('a' <= port.second && port.second <= 'z') {
|
||||
sig = cell_connections[std::string("\\") + char(port.second - ('a' - 'A'))];
|
||||
sig = module->NotGate(NEW_ID, sig);
|
||||
|
|
Loading…
Reference in New Issue