mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Support loop unrolling on width mismatches, bug 333
This commit is contained in:
@@ -555,6 +555,12 @@ bool V3Number::isNeqZero() const {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool V3Number::isBitsZero(int msb, int lsb) const {
|
||||
for (int i=lsb; i<=msb; i++) {
|
||||
if (VL_UNLIKELY(!bitIs0(i))) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool V3Number::isEqOne() const {
|
||||
if (m_value[0]!=1 || m_valueX[0]) return false;
|
||||
for (int i=1; i<words(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user