mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-18 09:12:18 +00:00
Mark kept FF output wires as ports directly instead of via the 'keep' attribute
This commit is contained in:
parent
ccb23ffc1a
commit
4de3ee093e
1 changed files with 9 additions and 6 deletions
|
@ -291,12 +291,15 @@ void AbcModuleState::extract_cell(RTLIL::Module *module, RTLIL::Cell *cell, bool
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keepff)
|
int gate_id = map_signal(ff.sig_q, type, map_signal(ff.sig_d));
|
||||||
for (auto &c : ff.sig_q.chunks())
|
if (keepff) {
|
||||||
if (c.wire != nullptr)
|
SigBit bit = ff.sig_q;
|
||||||
c.wire->attributes[ID::keep] = 1;
|
if (assign_map(bit).wire != nullptr) {
|
||||||
|
signal_list[gate_id].is_port = true;
|
||||||
map_signal(ff.sig_q, type, map_signal(ff.sig_d));
|
}
|
||||||
|
if (bit.wire != nullptr)
|
||||||
|
bit.wire->attributes[ID::keep] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
ff.remove();
|
ff.remove();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue