mirror of https://github.com/VLSIDA/OpenRAM.git
Fixed small bugs with new port index stuff and layout.
This commit is contained in:
parent
d03c9d5294
commit
71177d0b70
|
|
@ -27,9 +27,11 @@ class lib:
|
|||
|
||||
def set_port_indices(self):
|
||||
"""Copies port information set in the SRAM instance"""
|
||||
self.total_port_num = self.sram.total_ports
|
||||
self.read_ports = self.sram.read_index
|
||||
self.write_ports = self.sram.write_index
|
||||
self.total_port_num = len(self.sram.all_ports)
|
||||
self.all_ports = self.sram.all_ports
|
||||
self.readwrite_ports = self.sram.readwrite_ports
|
||||
self.read_ports = self.sram.read_ports
|
||||
self.write_ports = self.sram.write_ports
|
||||
|
||||
def prepare_tables(self):
|
||||
""" Determine the load/slews if they aren't specified in the config file. """
|
||||
|
|
@ -93,7 +95,7 @@ class lib:
|
|||
self.write_header()
|
||||
|
||||
#Loop over all ports.
|
||||
for port in range(self.total_port_num):
|
||||
for port in self.all_ports:
|
||||
#set the read and write port as inputs.
|
||||
self.write_data_bus(port)
|
||||
self.write_addr_bus(port)
|
||||
|
|
@ -387,7 +389,7 @@ class lib:
|
|||
""" Adds control pins timing results."""
|
||||
#The control pins are still to be determined. This is a placeholder for what could be.
|
||||
ctrl_pin_names = ["CSb{0}".format(port)]
|
||||
if port in self.write_ports and port in self.read_ports:
|
||||
if port in self.readwrite_ports:
|
||||
ctrl_pin_names.append("WEb{0}".format(port))
|
||||
|
||||
for i in ctrl_pin_names:
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ class bank(design.design):
|
|||
|
||||
# A space for wells or jogging m2
|
||||
self.m2_gap = max(2*drc("pwell_to_nwell") + drc("well_enclosure_active"),
|
||||
2*self.m2_pitch)
|
||||
3*self.m2_pitch)
|
||||
|
||||
|
||||
def add_modules(self):
|
||||
|
|
@ -451,6 +451,7 @@ class bank(design.design):
|
|||
mod=self.write_driver_array))
|
||||
else:
|
||||
self.write_driver_array_inst.append(None)
|
||||
continue
|
||||
|
||||
temp = []
|
||||
for bit in range(self.word_size):
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ class sram_base(design):
|
|||
temp.append("bank_sel{0}[{1}]".format(port,bank_num))
|
||||
for port in self.read_ports:
|
||||
temp.append("s_en{0}".format(port))
|
||||
for port in self.readwrite_ports:
|
||||
for port in self.write_ports:
|
||||
temp.append("w_en{0}".format(port))
|
||||
for port in self.all_ports:
|
||||
temp.append("clk_buf_bar{0}".format(port))
|
||||
|
|
|
|||
Loading…
Reference in New Issue