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:
parent
82f86164d3
commit
8cb7cd7ac1
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue