mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Refactoring {SigSpec|SigChunk}(RTLIL::Wire *wire, ..) constructor -- step 2/3
This commit is contained in:
parent
260c19ec5a
commit
a8d3a68971
15 changed files with 33 additions and 47 deletions
|
@ -144,7 +144,7 @@ struct SigPool
|
|||
{
|
||||
RTLIL::SigSpec sig;
|
||||
for (auto &bit : bits) {
|
||||
sig.append(RTLIL::SigSpec(bit.first, 1, bit.second));
|
||||
sig.append(RTLIL::SigSpec::grml(bit.first, bit.second));
|
||||
break;
|
||||
}
|
||||
return sig;
|
||||
|
@ -154,7 +154,7 @@ struct SigPool
|
|||
{
|
||||
RTLIL::SigSpec sig;
|
||||
for (auto &bit : bits)
|
||||
sig.append(RTLIL::SigSpec(bit.first, 1, bit.second));
|
||||
sig.append(RTLIL::SigSpec::grml(bit.first, bit.second));
|
||||
sig.sort_and_unify();
|
||||
return sig;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue