mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-05 22:06:04 +00:00
Make is_fully_const use chunk iterator
This commit is contained in:
parent
bf4cfbd72d
commit
20e64ee17b
1 changed files with 2 additions and 3 deletions
|
|
@ -5432,9 +5432,8 @@ bool RTLIL::SigSpec::is_fully_const() const
|
||||||
{
|
{
|
||||||
cover("kernel.rtlil.sigspec.is_fully_const");
|
cover("kernel.rtlil.sigspec.is_fully_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 false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue