3
0
Fork 0
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:
Clifford Wolf 2013-06-08 09:34:36 +02:00
parent 56b593b91c
commit c681c17038
3 changed files with 96 additions and 29 deletions

View file

@ -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>