Skip to content

Commit efef1c6

Browse files
authored
Merge pull request #2332 from Pinata-Consulting/make-memory-max-check-gaffe-fix
makefile: make memory mem_dump.py regression
2 parents 87d3adc + ad2450a commit efef1c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flow/scripts/mem_dump.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ def format_ram_table_from_json(data, max_bits=None):
8282
size = int(parameters["SIZE"], 2)
8383
width = int(parameters["WIDTH"], 2)
8484
instances = find_cells_by_type(top_modules, data, module_name)
85-
bits = size * width * len(instances)
85+
instance_bits = size * width
86+
bits = instance_bits * len(instances)
8687
entries.append((size, width, bits, module_name, ", ".join(instances)))
87-
if max_bits is not None and bits > max_bits:
88+
if max_bits is not None and instance_bits > max_bits:
8889
max_ok = False
8990

9091
# Sort the entries by descending bits

0 commit comments

Comments
 (0)