mirror of https://github.com/VLSIDA/OpenRAM.git
only check dimensions on single port
This commit is contained in:
parent
0008df0204
commit
4688988434
|
|
@ -99,12 +99,13 @@ class sram_config:
|
|||
+ " Bank addr size: {}".format(self.bank_addr_size))
|
||||
|
||||
num_ports = OPTS.num_rw_ports + OPTS.num_w_ports + OPTS.num_w_ports
|
||||
if ((self.num_cols + num_ports + self.num_spare_cols) % array_col_multiple != 0):
|
||||
debug.error("Invalid number of cols including rbl(s): {}. Total cols must be divisible by {}".format(self.num_cols + num_ports + self.num_spare_cols, array_col_multiple), -1)
|
||||
if num_ports == 1:
|
||||
if ((self.num_cols + num_ports + self.num_spare_cols) % array_col_multiple != 0):
|
||||
debug.error("Invalid number of cols including rbl(s): {}. Total cols must be divisible by {}".format(self.num_cols + num_ports + self.num_spare_cols, array_col_multiple), -1)
|
||||
|
||||
if ((self.num_rows + num_ports) % array_row_multiple != 0):
|
||||
debug.error("invalid number of rows including dummy row(s): {}. Total cols must be divisible by {}".format(self.num_rows + num_ports, array_row_multiple), -1)
|
||||
|
||||
if ((self.num_rows + num_ports) % array_row_multiple != 0):
|
||||
debug.error("invalid number of rows including dummy row(s): {}. Total cols must be divisible by {}".format(self.num_rows + num_ports, array_row_multiple), -1)
|
||||
|
||||
def estimate_words_per_row(self, tentative_num_cols, word_size):
|
||||
"""
|
||||
This provides a heuristic rounded estimate for the number of words
|
||||
|
|
|
|||
Loading…
Reference in New Issue