mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-04 14:25:47 +00:00
solves #675
This commit is contained in:
parent
f25d0de6f8
commit
0ad4321781
2 changed files with 21 additions and 11 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue