Added SigMap::allbits()

This commit is contained in:
Clifford Wolf 2015-08-31 16:42:19 +02:00
parent 92dce21f6e
commit ee8f6f31f4
1 changed files with 8 additions and 0 deletions

View File

@ -421,6 +421,14 @@ struct SigMap
apply(sig);
return sig;
}
RTLIL::SigSpec allbits() const
{
RTLIL::SigSpec sig;
for (auto &it : bits)
sig.append(SigBit(it.first.first, it.first.second));
return sig;
}
};
YOSYS_NAMESPACE_END