Fixed dfflibmap for unused output ports

This commit is contained in:
Clifford Wolf 2013-12-21 20:47:22 +01:00
parent 8856cec308
commit 334b0cc803
1 changed files with 1 additions and 0 deletions

View File

@ -419,6 +419,7 @@ static void dfflibmap(RTLIL::Design *design, RTLIL::Module *module)
if (port.second == '0' || port.second == '1') { if (port.second == '0' || port.second == '1') {
sig = RTLIL::SigSpec(port.second == '0' ? 0 : 1, 1); sig = RTLIL::SigSpec(port.second == '0' ? 0 : 1, 1);
} else } else
if (port.second != 0)
log_abort(); log_abort();
new_cell->connections["\\" + port.first] = sig; new_cell->connections["\\" + port.first] = sig;
} }