mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-24 16:12:33 +00:00
Revert "Represent memory size with size_t"
This reverts commit bb5f8415af.
This commit is contained in:
parent
bb5f8415af
commit
f218b5ba58
13 changed files with 35 additions and 60 deletions
|
|
@ -201,7 +201,7 @@ struct MemoryMapWorker
|
|||
|
||||
int count_static = 0;
|
||||
|
||||
for (size_t i = 0; i < mem.size; i++)
|
||||
for (int i = 0; i < mem.size; i++)
|
||||
{
|
||||
int addr = i + mem.start_offset;
|
||||
int idx = addr & ((1 << abits) - 1);
|
||||
|
|
@ -268,7 +268,7 @@ struct MemoryMapWorker
|
|||
}
|
||||
}
|
||||
|
||||
log(" created %zu %s cells and %d static cells of width %d.\n",
|
||||
log(" created %d %s cells and %d static cells of width %d.\n",
|
||||
mem.size-count_static, formal && (static_only || async_wr) ? "$ff" : "$dff", count_static, mem.width);
|
||||
|
||||
int count_dff = 0, count_mux = 0, count_wrmux = 0;
|
||||
|
|
@ -315,7 +315,7 @@ struct MemoryMapWorker
|
|||
|
||||
if (!static_only)
|
||||
{
|
||||
for (size_t i = 0; i < mem.size; i++)
|
||||
for (int i = 0; i < mem.size; i++)
|
||||
{
|
||||
int addr = i + mem.start_offset;
|
||||
int idx = addr & ((1 << abits) - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue