mirror of https://github.com/VLSIDA/OpenRAM.git
Rewrite if/else to be correct and more legible.
This commit is contained in:
parent
46d3068821
commit
c0295a2c3d
|
|
@ -87,12 +87,14 @@ class sram_config:
|
||||||
|
|
||||||
if tentative_num_cols < 1.5*word_size:
|
if tentative_num_cols < 1.5*word_size:
|
||||||
return 1
|
return 1
|
||||||
elif tentative_num_cols > 3*word_size:
|
elif tentative_num_cols < 3*word_size:
|
||||||
return 4
|
|
||||||
elif tentative_num_cols > 6*word_size:
|
|
||||||
return 8
|
|
||||||
else:
|
|
||||||
return 2
|
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):
|
def amend_words_per_row(self,tentative_num_rows, words_per_row):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue