mirror of https://github.com/YosysHQ/yosys.git
Bugfix in "setundef" pass
This commit is contained in:
parent
84badc97b3
commit
97ac77513f
|
@ -90,6 +90,8 @@ struct SetundefPass : public Pass {
|
||||||
bool init_mode = false;
|
bool init_mode = false;
|
||||||
SetundefWorker worker;
|
SetundefWorker worker;
|
||||||
|
|
||||||
|
log_header(design, "Executing SETUNDEF pass (replace undef values with defined constants).\n");
|
||||||
|
|
||||||
size_t argidx;
|
size_t argidx;
|
||||||
for (argidx = 1; argidx < args.size(); argidx++)
|
for (argidx = 1; argidx < args.size(); argidx++)
|
||||||
{
|
{
|
||||||
|
@ -137,8 +139,11 @@ struct SetundefPass : public Pass {
|
||||||
SigPool undriven_signals;
|
SigPool undriven_signals;
|
||||||
|
|
||||||
for (auto &it : module->wires_)
|
for (auto &it : module->wires_)
|
||||||
if (!it.second->port_input)
|
undriven_signals.add(sigmap(it.second));
|
||||||
undriven_signals.add(sigmap(it.second));
|
|
||||||
|
for (auto &it : module->wires_)
|
||||||
|
if (it.second->port_input)
|
||||||
|
undriven_signals.del(sigmap(it.second));
|
||||||
|
|
||||||
CellTypes ct(design);
|
CellTypes ct(design);
|
||||||
for (auto &it : module->cells_)
|
for (auto &it : module->cells_)
|
||||||
|
|
Loading…
Reference in New Issue