3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-04 14:25:47 +00:00
This commit is contained in:
rafaeltp 2018-10-20 17:50:21 -07:00
parent f25d0de6f8
commit 0ad4321781
2 changed files with 21 additions and 11 deletions

View file

@ -1304,6 +1304,10 @@ inline const RTLIL::SigBit &RTLIL::SigSpecConstIterator::operator*() const {
}
inline RTLIL::SigBit::SigBit(const RTLIL::SigSpec &sig) {
if(sig.size() != 1 || sig.chunks().size() != 1) {
std::cout << "rtp " << sig.size() << std::endl;
std::cout << "rtp " << sig.chunks().size() << std::endl;
}
log_assert(sig.size() == 1 && sig.chunks().size() == 1);
*this = SigBit(sig.chunks().front());
}