3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-08 10:25:19 +00:00

Merge pull request #3797 from charlottia/one-length-memories

This commit is contained in:
Jannis Harder 2023-06-19 16:21:06 +02:00 committed by GitHub
commit d3ee4eba5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -773,7 +773,7 @@ struct Smt2Worker
int arrayid = idcounter++;
memarrays[mem] = arrayid;
int abits = ceil_log2(mem->size);
int abits = max(1, ceil_log2(mem->size));
bool has_sync_wr = false;
bool has_async_wr = false;
@ -1220,7 +1220,7 @@ struct Smt2Worker
{
int arrayid = memarrays.at(mem);
int abits = ceil_log2(mem->size);;
int abits = max(1, ceil_log2(mem->size));
bool has_sync_wr = false;
bool has_async_wr = false;