mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 17:39:02 +02:00
modules/port_data: Add get_bl/br_name method
if we rely on the names of the submodules (sense_amp_array, write_driver_array, etc.) for port_data's pins, we get into trouble on multiport SRAMs. To avoid this we use explicit names for br/bl depending on the port number in port_data. Now each submodule does no longer need to figure out the right name depending on the port number. Signed-off-by: Bastian Koppelmann <[email protected]>
This commit is contained in:
@@ -32,20 +32,13 @@ class precharge_array(design.design):
|
||||
if not OPTS.netlist_only:
|
||||
self.create_layout()
|
||||
|
||||
def get_bl_name(self, port=0):
|
||||
def get_bl_name(self):
|
||||
bl_name = self.pc_cell.get_bl_names()
|
||||
if len(self.all_ports) == 1:
|
||||
return bl_name
|
||||
else:
|
||||
return bl_name + "{}".format(port)
|
||||
return bl_name
|
||||
|
||||
def get_br_name(self, port=0):
|
||||
def get_br_name(self):
|
||||
br_name = self.pc_cell.get_br_names()
|
||||
if len(self.all_ports) == 1:
|
||||
return br_name
|
||||
else:
|
||||
return br_name + "{}".format(port)
|
||||
|
||||
return br_name
|
||||
|
||||
def add_pins(self):
|
||||
"""Adds pins for spice file"""
|
||||
|
||||
Reference in New Issue
Block a user