mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 01:24:39 +02:00
Rewrite if/else to be correct and more legible.
This commit is contained in:
@@ -87,12 +87,14 @@ class sram_config:
|
||||
|
||||
if tentative_num_cols < 1.5*word_size:
|
||||
return 1
|
||||
elif tentative_num_cols > 3*word_size:
|
||||
return 4
|
||||
elif tentative_num_cols > 6*word_size:
|
||||
return 8
|
||||
else:
|
||||
elif tentative_num_cols < 3*word_size:
|
||||
return 2
|
||||
elif tentative_num_cols < 6*word_size:
|
||||
return 4
|
||||
else:
|
||||
if tentative_num_cols > 10*word_size:
|
||||
debug.warning("Reaching column mux size limit. Consider increasing above 8-way.")
|
||||
return 8
|
||||
|
||||
def amend_words_per_row(self,tentative_num_rows, words_per_row):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user