mirror of https://github.com/YosysHQ/yosys.git
Add missing memory width assert preventing division by zero (#3546)
This commit is contained in:
parent
faa1c2e7fe
commit
c75f12a989
|
@ -504,6 +504,7 @@ void Mem::check() {
|
|||
int mask = (1 << max_wide_log2) - 1;
|
||||
log_assert(!(start_offset & mask));
|
||||
log_assert(!(size & mask));
|
||||
log_assert(width != 0);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Reference in New Issue