2020-07-23 23:43:14 +02:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
#
|
2023-01-29 07:56:27 +01:00
|
|
|
# Copyright (c) 2016-2023 Regents of the University of California and The Board
|
2020-07-23 23:43:14 +02:00
|
|
|
# of Regents for the Oklahoma Agricultural and Mechanical College
|
|
|
|
|
# (acting for and on behalf of Oklahoma State University)
|
|
|
|
|
# All rights reserved.
|
|
|
|
|
#
|
2020-09-01 19:57:49 +02:00
|
|
|
from numpy import cumsum
|
2022-11-27 22:01:20 +01:00
|
|
|
from openram import debug
|
|
|
|
|
from openram.base import vector
|
|
|
|
|
from openram.sram_factory import factory
|
|
|
|
|
from openram.tech import layer_properties as layer_props
|
|
|
|
|
from openram import OPTS
|
|
|
|
|
from .bitcell_base_array import bitcell_base_array
|
2020-07-23 23:43:14 +02:00
|
|
|
|
2020-08-19 01:30:55 +02:00
|
|
|
|
2022-07-13 19:57:56 +02:00
|
|
|
class global_bitcell_array(bitcell_base_array):
|
2020-07-23 23:43:14 +02:00
|
|
|
"""
|
2020-08-19 01:30:55 +02:00
|
|
|
Creates a global bitcell array.
|
|
|
|
|
Rows is an integer number for all local arrays.
|
|
|
|
|
Cols is a list of the array widths.
|
2020-07-23 23:43:14 +02:00
|
|
|
"""
|
2023-04-05 23:47:15 +02:00
|
|
|
def __init__(self, rows, cols, rbl=None, left_rbl=None, right_rbl=None, name=""):
|
2020-07-23 23:43:14 +02:00
|
|
|
# The total of all columns will be the number of columns
|
2020-09-04 22:06:58 +02:00
|
|
|
super().__init__(name=name, rows=rows, cols=sum(cols), column_offset=0)
|
|
|
|
|
self.column_sizes = cols
|
|
|
|
|
self.col_offsets = [0] + list(cumsum(cols)[:-1])
|
2020-08-19 01:30:55 +02:00
|
|
|
|
2023-04-05 23:47:15 +02:00
|
|
|
debug.check(len(self.all_ports) < 3, "Only support dual port or less in global bitcell array.")
|
|
|
|
|
|
|
|
|
|
# This is how many RBLs are in all the arrays
|
|
|
|
|
if rbl is not None:
|
|
|
|
|
self.rbl = rbl
|
|
|
|
|
else:
|
|
|
|
|
self.rbl = [0] * len(self.all_ports)
|
|
|
|
|
# This specifies which RBL to put on the left or right by port number
|
|
|
|
|
# This could be an empty list
|
|
|
|
|
if left_rbl is not None:
|
|
|
|
|
self.left_rbl = left_rbl
|
|
|
|
|
else:
|
|
|
|
|
self.left_rbl = []
|
|
|
|
|
# This could be an empty list
|
|
|
|
|
if right_rbl is not None:
|
|
|
|
|
self.right_rbl = right_rbl
|
|
|
|
|
else:
|
|
|
|
|
self.right_rbl=[]
|
|
|
|
|
self.rbls = self.left_rbl + self.right_rbl
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-07-23 23:43:14 +02:00
|
|
|
self.create_netlist()
|
|
|
|
|
if not OPTS.netlist_only:
|
|
|
|
|
self.create_layout()
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-07-23 23:43:14 +02:00
|
|
|
def create_netlist(self):
|
|
|
|
|
""" Create and connect the netlist """
|
|
|
|
|
self.add_modules()
|
|
|
|
|
self.add_pins()
|
|
|
|
|
self.create_instances()
|
|
|
|
|
|
|
|
|
|
def create_layout(self):
|
|
|
|
|
|
|
|
|
|
self.place()
|
|
|
|
|
|
2020-09-01 19:57:49 +02:00
|
|
|
self.route()
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-07-23 23:43:14 +02:00
|
|
|
self.add_layout_pins()
|
|
|
|
|
|
|
|
|
|
self.add_boundary()
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-07-23 23:43:14 +02:00
|
|
|
self.DRC_LVS()
|
|
|
|
|
|
|
|
|
|
def add_modules(self):
|
|
|
|
|
""" Add the modules used in this design """
|
|
|
|
|
self.local_mods = []
|
2020-08-19 01:30:55 +02:00
|
|
|
|
2020-09-17 23:45:49 +02:00
|
|
|
# Special case of a single local array
|
2020-09-04 22:06:58 +02:00
|
|
|
if len(self.column_sizes) == 1:
|
2020-09-09 20:54:46 +02:00
|
|
|
la = factory.create(module_type="local_bitcell_array",
|
|
|
|
|
rows=self.row_size,
|
|
|
|
|
cols=self.column_sizes[0],
|
|
|
|
|
rbl=self.rbl,
|
2023-04-05 23:47:15 +02:00
|
|
|
left_rbl=self.left_rbl,
|
|
|
|
|
right_rbl=self.right_rbl)
|
2020-09-01 19:57:49 +02:00
|
|
|
self.local_mods.append(la)
|
|
|
|
|
return
|
2020-09-09 20:54:46 +02:00
|
|
|
|
2020-09-04 22:06:58 +02:00
|
|
|
for i, cols in enumerate(self.column_sizes):
|
2020-09-17 23:45:49 +02:00
|
|
|
# Always add the left RBLs to the first subarray
|
2020-08-19 01:30:55 +02:00
|
|
|
if i == 0:
|
2020-09-09 20:54:46 +02:00
|
|
|
la = factory.create(module_type="local_bitcell_array",
|
|
|
|
|
rows=self.row_size,
|
|
|
|
|
cols=cols,
|
|
|
|
|
rbl=self.rbl,
|
2023-04-05 23:47:15 +02:00
|
|
|
left_rbl=self.left_rbl)
|
|
|
|
|
# Add the right RBLs to the last subarray
|
|
|
|
|
elif i == len(self.column_sizes) - 1:
|
2020-09-09 20:54:46 +02:00
|
|
|
la = factory.create(module_type="local_bitcell_array",
|
|
|
|
|
rows=self.row_size,
|
|
|
|
|
cols=cols,
|
|
|
|
|
rbl=self.rbl,
|
2023-04-05 23:47:15 +02:00
|
|
|
right_rbl=self.right_rbl)
|
2020-09-17 23:45:49 +02:00
|
|
|
# Middle subarrays do not have any RBLs
|
2020-08-18 02:19:07 +02:00
|
|
|
else:
|
2020-09-09 20:54:46 +02:00
|
|
|
la = factory.create(module_type="local_bitcell_array",
|
|
|
|
|
rows=self.row_size,
|
|
|
|
|
cols=cols,
|
|
|
|
|
rbl=self.rbl)
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-07-23 23:43:14 +02:00
|
|
|
self.local_mods.append(la)
|
2020-09-01 20:59:01 +02:00
|
|
|
|
2020-08-19 01:30:55 +02:00
|
|
|
def add_pins(self):
|
2020-09-01 19:57:49 +02:00
|
|
|
|
2020-08-19 01:30:55 +02:00
|
|
|
self.add_bitline_pins()
|
|
|
|
|
self.add_wordline_pins()
|
|
|
|
|
|
|
|
|
|
self.add_pin("vdd", "POWER")
|
|
|
|
|
self.add_pin("gnd", "GROUND")
|
|
|
|
|
|
|
|
|
|
def add_bitline_pins(self):
|
2023-04-05 23:47:15 +02:00
|
|
|
# FIXME: aren't these already defined via inheritence by bitcell base array?
|
2020-09-04 22:06:58 +02:00
|
|
|
self.bitline_names = [[] for x in self.all_ports]
|
|
|
|
|
self.rbl_bitline_names = [[] for x in self.all_ports]
|
2020-08-19 01:30:55 +02:00
|
|
|
|
2023-04-05 23:47:15 +02:00
|
|
|
# The bit is which port the RBL is for
|
|
|
|
|
for bit in self.rbls:
|
|
|
|
|
for port in self.all_ports:
|
|
|
|
|
self.rbl_bitline_names[bit].append("rbl_bl_{0}_{1}".format(port, bit))
|
|
|
|
|
for port in self.all_ports:
|
|
|
|
|
self.rbl_bitline_names[bit].append("rbl_br_{0}_{1}".format(port, bit))
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-04 22:06:58 +02:00
|
|
|
for col in range(self.column_size):
|
|
|
|
|
for port in self.all_ports:
|
|
|
|
|
self.bitline_names[port].append("bl_{0}_{1}".format(port, col))
|
2020-09-01 19:57:49 +02:00
|
|
|
for port in self.all_ports:
|
2020-09-04 22:06:58 +02:00
|
|
|
self.bitline_names[port].append("br_{0}_{1}".format(port, col))
|
2020-09-01 19:57:49 +02:00
|
|
|
|
2020-09-04 22:06:58 +02:00
|
|
|
# Make a flat list too
|
|
|
|
|
self.all_bitline_names = [x for sl in zip(*self.bitline_names) for x in sl]
|
2020-09-11 01:44:54 +02:00
|
|
|
# Make a flat list too
|
|
|
|
|
self.all_rbl_bitline_names = [x for sl in zip(*self.rbl_bitline_names) for x in sl]
|
2020-09-09 22:38:13 +02:00
|
|
|
|
2023-04-05 23:47:15 +02:00
|
|
|
for port in self.left_rbl:
|
|
|
|
|
self.add_pin_list(self.rbl_bitline_names[port], "INOUT")
|
2020-09-04 22:06:58 +02:00
|
|
|
self.add_pin_list(self.all_bitline_names, "INOUT")
|
2023-04-05 23:47:15 +02:00
|
|
|
for port in self.right_rbl:
|
|
|
|
|
self.add_pin_list(self.rbl_bitline_names[port], "INOUT")
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-08-19 01:30:55 +02:00
|
|
|
def add_wordline_pins(self):
|
2020-08-21 22:44:35 +02:00
|
|
|
|
2020-09-11 01:44:54 +02:00
|
|
|
self.rbl_wordline_names = [[] for x in self.all_ports]
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-11 01:44:54 +02:00
|
|
|
self.wordline_names = [[] for x in self.all_ports]
|
2020-09-04 22:06:58 +02:00
|
|
|
|
2020-09-11 01:44:54 +02:00
|
|
|
for bit in self.all_ports:
|
2023-04-05 23:47:15 +02:00
|
|
|
if self.rbl[bit] == 0:
|
|
|
|
|
continue
|
2020-09-11 01:44:54 +02:00
|
|
|
for port in self.all_ports:
|
|
|
|
|
self.rbl_wordline_names[port].append("rbl_wl_{0}_{1}".format(port, bit))
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-11 01:44:54 +02:00
|
|
|
self.all_rbl_wordline_names = [x for sl in zip(*self.rbl_wordline_names) for x in sl]
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-08-19 01:30:55 +02:00
|
|
|
# Regular WLs
|
2020-09-04 22:06:58 +02:00
|
|
|
for row in range(self.row_size):
|
2020-09-01 19:57:49 +02:00
|
|
|
for port in self.all_ports:
|
2020-09-11 01:44:54 +02:00
|
|
|
self.wordline_names[port].append("wl_{0}_{1}".format(port, row))
|
2020-09-01 19:57:49 +02:00
|
|
|
|
2020-09-11 01:44:54 +02:00
|
|
|
self.all_wordline_names = [x for sl in zip(*self.wordline_names) for x in sl]
|
2020-09-14 23:35:52 +02:00
|
|
|
|
|
|
|
|
for port in range(self.rbl[0]):
|
|
|
|
|
self.add_pin(self.rbl_wordline_names[port][port], "INPUT")
|
2020-09-11 01:44:54 +02:00
|
|
|
self.add_pin_list(self.all_wordline_names, "INPUT")
|
2020-09-14 23:35:52 +02:00
|
|
|
for port in range(self.rbl[0], self.rbl[0] + self.rbl[1]):
|
|
|
|
|
self.add_pin(self.rbl_wordline_names[port][port], "INPUT")
|
2020-08-19 01:30:55 +02:00
|
|
|
|
2020-07-23 23:43:14 +02:00
|
|
|
def create_instances(self):
|
|
|
|
|
""" Create the module instances used in this design """
|
2020-08-21 22:44:35 +02:00
|
|
|
self.local_insts = []
|
2020-09-01 19:57:49 +02:00
|
|
|
for col, mod in zip(self.col_offsets, self.local_mods):
|
|
|
|
|
name = "la_{0}".format(col)
|
2020-08-21 22:44:35 +02:00
|
|
|
self.local_insts.append(self.add_inst(name=name,
|
2020-09-01 19:57:49 +02:00
|
|
|
mod=mod))
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-01 19:57:49 +02:00
|
|
|
temp = []
|
|
|
|
|
if col == 0:
|
2020-09-09 22:38:13 +02:00
|
|
|
temp.extend(self.get_rbl_bitline_names(0))
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-01 19:57:49 +02:00
|
|
|
port_inouts = [x for x in mod.get_inouts() if x.startswith("bl") or x.startswith("br")]
|
|
|
|
|
for pin_name in port_inouts:
|
|
|
|
|
# Offset of the last underscore that defines the bit number
|
|
|
|
|
bit_index = pin_name.rindex('_')
|
|
|
|
|
# col is the bit offset of the local array,
|
|
|
|
|
# while col_value is the offset within this array
|
|
|
|
|
col_value = int(pin_name[bit_index + 1:])
|
|
|
|
|
# Name of signal without the bit
|
|
|
|
|
base_name = pin_name[:bit_index]
|
|
|
|
|
# Strip the bit and add the new one
|
|
|
|
|
new_name = "{0}_{1}".format(base_name, col + col_value)
|
|
|
|
|
temp.append(new_name)
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-01 19:57:49 +02:00
|
|
|
if len(self.all_ports) > 1 and mod == self.local_mods[-1]:
|
2020-09-09 22:38:13 +02:00
|
|
|
temp.extend(self.get_rbl_bitline_names(1))
|
2020-09-01 19:57:49 +02:00
|
|
|
|
|
|
|
|
for port in self.all_ports:
|
|
|
|
|
port_inputs = [x for x in mod.get_inputs() if "wl_{}".format(port) in x]
|
|
|
|
|
temp.extend(port_inputs)
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-01 19:57:49 +02:00
|
|
|
temp.append("vdd")
|
|
|
|
|
temp.append("gnd")
|
|
|
|
|
self.connect_inst(temp)
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-08-19 01:30:55 +02:00
|
|
|
def place(self):
|
|
|
|
|
offset = vector(0, 0)
|
2020-08-21 22:44:35 +02:00
|
|
|
for inst in self.local_insts:
|
2020-08-19 01:30:55 +02:00
|
|
|
inst.place(offset)
|
|
|
|
|
offset = inst.rx() + 3 * self.m3_pitch
|
2020-08-21 22:44:35 +02:00
|
|
|
|
|
|
|
|
self.height = self.local_mods[0].height
|
|
|
|
|
self.width = self.local_insts[-1].rx()
|
|
|
|
|
|
2020-09-01 19:57:49 +02:00
|
|
|
def route(self):
|
|
|
|
|
|
2020-09-09 20:54:46 +02:00
|
|
|
pass
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-08-21 22:44:35 +02:00
|
|
|
def add_layout_pins(self):
|
2020-09-01 19:57:49 +02:00
|
|
|
|
|
|
|
|
# Regular bitlines
|
|
|
|
|
for col, inst in zip(self.col_offsets, self.local_insts):
|
|
|
|
|
for port in self.all_ports:
|
|
|
|
|
port_inouts = [x for x in inst.mod.get_inouts() if x.startswith("bl_{}".format(port)) or x.startswith("br_{}".format(port))]
|
|
|
|
|
for pin_name in port_inouts:
|
|
|
|
|
# Offset of the last underscore that defines the bit number
|
|
|
|
|
bit_index = pin_name.rindex('_')
|
|
|
|
|
# col is the bit offset of the local array,
|
|
|
|
|
# while col_value is the offset within this array
|
|
|
|
|
col_value = int(pin_name[bit_index + 1:])
|
|
|
|
|
# Name of signal without the bit
|
|
|
|
|
base_name = pin_name[:bit_index]
|
|
|
|
|
# Strip the bit and add the new one
|
|
|
|
|
new_name = "{0}_{1}".format(base_name, col + col_value)
|
|
|
|
|
self.copy_layout_pin(inst, pin_name, new_name)
|
|
|
|
|
|
2021-04-19 23:23:14 +02:00
|
|
|
# Add the global word lines
|
|
|
|
|
wl_layer = layer_props.global_bitcell_array.wordline_layer
|
|
|
|
|
|
2020-09-09 20:54:46 +02:00
|
|
|
for wl_name in self.local_mods[0].get_inputs():
|
2021-04-19 23:23:14 +02:00
|
|
|
for local_inst in self.local_insts:
|
|
|
|
|
wl_pin = local_inst.get_pin(wl_name)
|
|
|
|
|
self.add_via_stack_center(from_layer=wl_pin.layer,
|
|
|
|
|
to_layer=wl_layer,
|
|
|
|
|
offset=wl_pin.center())
|
|
|
|
|
|
2020-09-09 20:54:46 +02:00
|
|
|
left_pin = self.local_insts[0].get_pin(wl_name)
|
|
|
|
|
right_pin = self.local_insts[-1].get_pin(wl_name)
|
|
|
|
|
self.add_layout_pin_segment_center(text=wl_name,
|
2021-04-19 23:23:14 +02:00
|
|
|
layer=wl_layer,
|
2020-09-09 20:54:46 +02:00
|
|
|
start=left_pin.lc(),
|
|
|
|
|
end=right_pin.rc())
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2023-04-05 23:47:15 +02:00
|
|
|
if len(self.rbls) > 0:
|
|
|
|
|
# Replica bitlines
|
|
|
|
|
self.copy_layout_pin(self.local_insts[0], "rbl_bl_0_0")
|
|
|
|
|
self.copy_layout_pin(self.local_insts[0], "rbl_br_0_0")
|
|
|
|
|
|
|
|
|
|
if len(self.all_ports) > 1:
|
|
|
|
|
self.copy_layout_pin(self.local_insts[0], "rbl_bl_1_0")
|
|
|
|
|
self.copy_layout_pin(self.local_insts[0], "rbl_br_1_0")
|
|
|
|
|
self.copy_layout_pin(self.local_insts[-1], "rbl_bl_0_1")
|
|
|
|
|
self.copy_layout_pin(self.local_insts[-1], "rbl_br_0_1")
|
|
|
|
|
self.copy_layout_pin(self.local_insts[-1], "rbl_bl_1_1")
|
|
|
|
|
self.copy_layout_pin(self.local_insts[-1], "rbl_br_1_1")
|
2020-09-01 19:57:49 +02:00
|
|
|
|
|
|
|
|
for inst in self.insts:
|
|
|
|
|
self.copy_power_pins(inst, "vdd")
|
|
|
|
|
self.copy_power_pins(inst, "gnd")
|
2020-09-11 01:44:54 +02:00
|
|
|
|
|
|
|
|
def get_main_array_top(self):
|
|
|
|
|
return self.local_insts[0].offset.y + self.local_mods[0].get_main_array_top()
|
|
|
|
|
|
|
|
|
|
def get_main_array_bottom(self):
|
|
|
|
|
return self.local_insts[0].offset.y + self.local_mods[0].get_main_array_bottom()
|
|
|
|
|
|
|
|
|
|
def get_main_array_left(self):
|
|
|
|
|
return self.local_insts[0].offset.x + self.local_mods[0].get_main_array_left()
|
|
|
|
|
|
|
|
|
|
def get_main_array_right(self):
|
|
|
|
|
return self.local_insts[-1].offset.x + self.local_mods[-1].get_main_array_right()
|
2020-09-12 00:36:22 +02:00
|
|
|
|
|
|
|
|
def get_column_offsets(self):
|
|
|
|
|
"""
|
|
|
|
|
Return an array of the x offsets of all the regular bits
|
|
|
|
|
"""
|
|
|
|
|
offsets = []
|
|
|
|
|
for inst in self.local_insts:
|
2020-09-14 21:05:45 +02:00
|
|
|
offsets.extend(inst.lx() + x for x in inst.mod.get_column_offsets())
|
2020-09-12 00:36:22 +02:00
|
|
|
return offsets
|
2020-09-29 01:05:21 +02:00
|
|
|
|
|
|
|
|
def graph_exclude_bits(self, targ_row, targ_col):
|
|
|
|
|
"""
|
2020-11-03 15:29:17 +01:00
|
|
|
Excludes bits in column from being added to graph except target
|
|
|
|
|
"""
|
|
|
|
|
|
2020-09-29 01:05:21 +02:00
|
|
|
# This must find which local array includes the specified column
|
|
|
|
|
# Find the summation of columns that is large and take the one before
|
|
|
|
|
for i, col in enumerate(self.col_offsets):
|
|
|
|
|
if col > targ_col:
|
|
|
|
|
break
|
2020-09-29 21:15:42 +02:00
|
|
|
else:
|
|
|
|
|
i = len(self.local_mods)
|
2020-09-29 01:05:21 +02:00
|
|
|
|
2020-09-29 21:15:42 +02:00
|
|
|
# This is the array with the column
|
|
|
|
|
local_array = self.local_mods[i - 1]
|
2020-09-29 01:05:21 +02:00
|
|
|
# We must also translate the global array column number to the local array column number
|
2020-09-29 21:15:42 +02:00
|
|
|
local_col = targ_col - self.col_offsets[i - 1]
|
|
|
|
|
|
2021-06-22 02:20:25 +02:00
|
|
|
for mod, inst in zip(self.local_mods, self.local_insts):
|
2020-09-29 21:15:42 +02:00
|
|
|
if mod == local_array:
|
|
|
|
|
mod.graph_exclude_bits(targ_row, local_col)
|
|
|
|
|
else:
|
2021-06-22 02:20:25 +02:00
|
|
|
# Otherwise, exclude the local array inst
|
|
|
|
|
self.graph_inst_exclude.add(inst)
|
2020-09-29 21:15:42 +02:00
|
|
|
|
2020-09-29 01:05:21 +02:00
|
|
|
def graph_exclude_replica_col_bits(self):
|
|
|
|
|
"""
|
|
|
|
|
Exclude all but replica in every local array.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
for mod in self.local_mods:
|
|
|
|
|
mod.graph_exclude_replica_col_bits()
|
|
|
|
|
|
|
|
|
|
def get_cell_name(self, inst_name, row, col):
|
|
|
|
|
"""Gets the spice name of the target bitcell."""
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-29 01:05:21 +02:00
|
|
|
# This must find which local array includes the specified column
|
|
|
|
|
# Find the summation of columns that is large and take the one before
|
|
|
|
|
for i, local_col in enumerate(self.col_offsets):
|
|
|
|
|
if local_col > col:
|
|
|
|
|
break
|
2020-09-29 19:26:31 +02:00
|
|
|
else:
|
|
|
|
|
# In this case, we it should be in the last bitcell array
|
|
|
|
|
i = len(self.col_offsets)
|
2020-09-29 21:15:42 +02:00
|
|
|
|
|
|
|
|
# This is the local instance
|
|
|
|
|
local_inst = self.local_insts[i - 1]
|
|
|
|
|
# This is the array with the column
|
|
|
|
|
local_array = self.local_mods[i - 1]
|
|
|
|
|
# We must also translate the global array column number to the local array column number
|
|
|
|
|
local_col = col - self.col_offsets[i - 1]
|
|
|
|
|
|
2021-05-15 01:16:25 +02:00
|
|
|
return local_array.get_cell_name(inst_name + "{}x".format(OPTS.hier_seperator) + local_inst.name, row, local_col)
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-29 19:26:31 +02:00
|
|
|
def clear_exclude_bits(self):
|
2020-11-03 15:29:17 +01:00
|
|
|
"""
|
2020-09-29 19:26:31 +02:00
|
|
|
Clears the bit exclusions
|
|
|
|
|
"""
|
|
|
|
|
for mod in self.local_mods:
|
|
|
|
|
mod.clear_exclude_bits()
|
2021-06-22 02:20:25 +02:00
|
|
|
self.init_graph_params()
|
2020-09-29 21:15:42 +02:00
|
|
|
|
|
|
|
|
def graph_exclude_dffs(self):
|
|
|
|
|
"""Exclude dffs from graph as they do not represent critical path"""
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2020-09-29 21:15:42 +02:00
|
|
|
self.graph_inst_exclude.add(self.ctrl_dff_inst)
|