mirror of
https://github.com/YosysHQ/yosys
synced 2026-03-19 11:33:11 +00:00
setundef: rename process loop variable and respect selection in -init mode
This commit is contained in:
parent
df283fa1c9
commit
6cd66aed47
1 changed files with 11 additions and 2 deletions
|
|
@ -417,6 +417,9 @@ struct SetundefPass : public Pass {
|
|||
if (wire->name[0] == (wire_types ? '\\' : '$'))
|
||||
continue;
|
||||
|
||||
if (!design->selected(module, wire))
|
||||
continue;
|
||||
|
||||
if (!wire->attributes.count(ID::init))
|
||||
continue;
|
||||
|
||||
|
|
@ -446,6 +449,9 @@ struct SetundefPass : public Pass {
|
|||
if (wire->name[0] == (wire_types ? '\\' : '$'))
|
||||
continue;
|
||||
|
||||
if (!design->selected(module, wire))
|
||||
continue;
|
||||
|
||||
for (auto bit : sigmap(wire))
|
||||
if (!ffbits.count(bit))
|
||||
goto next_wire;
|
||||
|
|
@ -467,6 +473,9 @@ struct SetundefPass : public Pass {
|
|||
if (wire->name[0] == (wire_types ? '\\' : '$'))
|
||||
continue;
|
||||
|
||||
if (!design->selected(module, wire))
|
||||
continue;
|
||||
|
||||
for (auto bit : sigmap(wire))
|
||||
if (ffbits.count(bit))
|
||||
initwires.insert(wire);
|
||||
|
|
@ -505,8 +514,8 @@ struct SetundefPass : public Pass {
|
|||
for (auto cell : module->selected_cells())
|
||||
if (!cell->get_bool_attribute(ID::xprop_decoder))
|
||||
cell->rewrite_sigspecs(worker);
|
||||
for (auto &it : module->selected_processes())
|
||||
it->rewrite_sigspecs(worker);
|
||||
for (auto proc : module->selected_processes())
|
||||
proc->rewrite_sigspecs(worker);
|
||||
for (auto &it : module->connections_) {
|
||||
SigSpec lhs = it.first;
|
||||
bool selected = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue