void RTLIL::SigSpec::replace(const RTLIL::SigSpec &pattern, const RTLIL::SigSpec &with, RTLIL::SigSpec *other) const
{
- if (other)
- cover("kernel.rtlil.sigspec.replace_other");
- else
- cover("kernel.rtlil.sigspec.replace");
+ cover("kernel.rtlil.sigspec.replace");
unpack();
pattern.unpack();
bits_.insert(bits_.end(), signal.bits_.begin(), signal.bits_.end());
width_ += signal.width_;
-
- check();
+ // check();
}
void RTLIL::SigSpec::append_bit(const RTLIL::SigBit &bit)
}
width_++;
-
- check();
+ // check();
}
void RTLIL::SigSpec::extend(int width, bool is_signed)
return sig;
}
+#ifndef NDEBUG
void RTLIL::SigSpec::check() const
{
-#ifndef NDEBUG
if (packed())
{
cover("kernel.rtlil.sigspec.check.packed");
assert(width_ == SIZE(bits_));
assert(chunks_.empty());
}
-#endif
}
+#endif
bool RTLIL::SigSpec::operator <(const RTLIL::SigSpec &other) const
{
operator std::vector<RTLIL::SigChunk>() const { return chunks(); }
operator std::vector<RTLIL::SigBit>() const { return bits(); }
+#ifndef NDEBUG
void check() const;
+#else
+ inline void check() const { }
+#endif
};
inline RTLIL::SigBit &RTLIL::SigSpecIterator::operator*() const {