mirror of https://github.com/YosysHQ/yosys.git
Make SigSpec::has_const use chunk iterator
This commit is contained in:
parent
1893c61fe2
commit
ed8022f53f
|
|
@ -5506,9 +5506,8 @@ bool RTLIL::SigSpec::has_const() const
|
||||||
{
|
{
|
||||||
cover("kernel.rtlil.sigspec.has_const");
|
cover("kernel.rtlil.sigspec.has_const");
|
||||||
|
|
||||||
pack();
|
for (auto &chunk : chunks())
|
||||||
for (auto it = chunks_.begin(); it != chunks_.end(); it++)
|
if (chunk.width > 0 && chunk.wire == NULL)
|
||||||
if (it->width > 0 && it->wire == NULL)
|
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue