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

Make SigSpec::to_sigbit_pool use chunk iterator

This commit is contained in:
Robert O'Callahan 2025-10-28 12:40:20 +00:00
parent 8cb7cd7ac1
commit 11a91af920

View file

@ -5703,10 +5703,9 @@ pool<RTLIL::SigBit> RTLIL::SigSpec::to_sigbit_pool() const
{
cover("kernel.rtlil.sigspec.to_sigbit_pool");
pack();
pool<RTLIL::SigBit> sigbits;
sigbits.reserve(size());
for (auto &c : chunks_)
for (auto &c : chunks())
for (int i = 0; i < c.width; i++)
sigbits.insert(RTLIL::SigBit(c, i));
return sigbits;