3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-14 11:15:40 +00:00

Adding Width check to resize

This commit is contained in:
Michael Baier 2026-07-09 12:24:55 +02:00
parent 086c50763d
commit 58fc67ee66

View file

@ -1109,6 +1109,7 @@ public:
bits_internal()[i] = state;
}
void resize(int size, RTLIL::State fill) {
log_assert(size >= 0 && size < RTLIL::WIDTH_LIMIT);
bits_internal().resize(size, fill);
}