3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-03 13:07:58 +00:00

Make is_fully_const use chunk iterator

This commit is contained in:
Robert O'Callahan 2025-10-28 12:36:36 +00:00
parent bf4cfbd72d
commit 20e64ee17b

View file

@ -5432,9 +5432,8 @@ bool RTLIL::SigSpec::is_fully_const() const
{
cover("kernel.rtlil.sigspec.is_fully_const");
pack();
for (auto it = chunks_.begin(); it != chunks_.end(); it++)
if (it->width > 0 && it->wire != NULL)
for (auto &chunk : chunks())
if (chunk.width > 0 && chunk.wire != NULL)
return false;
return true;
}