mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Add ENUMITEMWIDTH error, and apply to X-extended and ranged values.
This commit is contained in:
+1
-1
@@ -1188,7 +1188,7 @@ uint32_t V3Number::countOnes() const {
|
||||
|
||||
uint32_t V3Number::mostSetBitP1() const {
|
||||
for (int bit = width() - 1; bit >= 0; bit--) {
|
||||
if (bitIs1(bit)) return bit + 1;
|
||||
if (!bitIs0(bit)) return bit + 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user