mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-14 04:48:46 +00:00
abc9_ops: -prep_dff_map to check $_DFF_[NP]_.Q drives module output
This commit is contained in:
parent
489e83fc1e
commit
8bad885e78
|
@ -175,6 +175,10 @@ void prep_dff_map(RTLIL::Design *design)
|
||||||
// because ABC9 doesn't support them
|
// because ABC9 doesn't support them
|
||||||
Q = cell->getPort(ID::Q);
|
Q = cell->getPort(ID::Q);
|
||||||
log_assert(GetSize(Q.wire) == 1);
|
log_assert(GetSize(Q.wire) == 1);
|
||||||
|
|
||||||
|
if (!Q.wire->port_output)
|
||||||
|
log_error("Module '%s' contains a %s cell where its 'Q' port does not drive a module output!\n", log_id(module), log_id(cell->type));
|
||||||
|
|
||||||
Const init = Q.wire->attributes.at(ID::init, State::Sx);
|
Const init = Q.wire->attributes.at(ID::init, State::Sx);
|
||||||
log_assert(GetSize(init) == 1);
|
log_assert(GetSize(init) == 1);
|
||||||
if (init != State::S0) {
|
if (init != State::S0) {
|
||||||
|
|
Loading…
Reference in a new issue