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

Make SigSpec::to_sigbit_set use chunk iterator

This commit is contained in:
Robert O'Callahan 2025-10-28 12:40:08 +00:00
parent 82f86164d3
commit 8cb7cd7ac1

View file

@ -5692,9 +5692,8 @@ std::set<RTLIL::SigBit> RTLIL::SigSpec::to_sigbit_set() const
{
cover("kernel.rtlil.sigspec.to_sigbit_set");
pack();
std::set<RTLIL::SigBit> sigbits;
for (auto &c : chunks_)
for (auto &c : chunks())
for (int i = 0; i < c.width; i++)
sigbits.insert(RTLIL::SigBit(c, i));
return sigbits;