mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Bugfix in ilang frontend autoidx recovery
This commit is contained in:
parent
f7bd0a5232
commit
620d51d9f7
|
@ -131,8 +131,8 @@ void update_autoidx(const char *p)
|
||||||
q++;
|
q++;
|
||||||
if ((q - p) < 10) {
|
if ((q - p) < 10) {
|
||||||
int idx = atoi(p);
|
int idx = atoi(p);
|
||||||
if (idx > RTLIL::autoidx)
|
if (idx >= RTLIL::autoidx)
|
||||||
RTLIL::autoidx = idx;
|
RTLIL::autoidx = idx+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue