mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Improved auto-detection of -show signals in sat_solve
This commit is contained in:
parent
56b593b91c
commit
c681c17038
3 changed files with 96 additions and 29 deletions
|
@ -139,6 +139,30 @@ struct SigPool
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
RTLIL::SigSpec export_one()
|
||||
{
|
||||
RTLIL::SigSpec sig;
|
||||
for (auto &bit : bits) {
|
||||
sig.append(RTLIL::SigSpec(bit.first, 1, bit.second));
|
||||
break;
|
||||
}
|
||||
return sig;
|
||||
}
|
||||
|
||||
RTLIL::SigSpec export_all()
|
||||
{
|
||||
RTLIL::SigSpec sig;
|
||||
for (auto &bit : bits)
|
||||
sig.append(RTLIL::SigSpec(bit.first, 1, bit.second));
|
||||
sig.sort_and_unify();
|
||||
return sig;
|
||||
}
|
||||
|
||||
size_t size()
|
||||
{
|
||||
return bits.size();
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue