mirror of https://github.com/VLSIDA/OpenRAM.git
parameterize how power ring is connected to crba
This commit is contained in:
parent
28fef79202
commit
541d4ff572
|
|
@ -10,6 +10,7 @@ from openram.base import contact
|
|||
from openram.sram_factory import factory
|
||||
from openram.tech import drc, spice
|
||||
from openram.tech import cell_properties as props
|
||||
from openram.tech import connect_ring_bottom, connect_ring_left, connect_ring_right, connect_ring_top
|
||||
from openram import OPTS
|
||||
from .bitcell_base_array import bitcell_base_array
|
||||
|
||||
|
|
@ -338,10 +339,10 @@ class capped_replica_bitcell_array(bitcell_base_array):
|
|||
bitcell = factory.create(module_type="pbitcell")
|
||||
else:
|
||||
bitcell = getattr(props, "bitcell_{}port".format(OPTS.num_ports))
|
||||
top = True
|
||||
bottom = True
|
||||
left = False
|
||||
right = False
|
||||
top = connect_ring_top
|
||||
bottom = connect_ring_bottom
|
||||
left = connect_ring_left
|
||||
right = connect_ring_right
|
||||
|
||||
if top:
|
||||
inst = self.dummy_row_insts[1]
|
||||
|
|
|
|||
|
|
@ -64,9 +64,12 @@ class dummy_array(bitcell_base_array):
|
|||
core_block[(1 + r) % 2][(0+c) %2] = geometry.instance(f"core_{(1 + r)%2}_{(0+c)%2}", mod=self.dummy_cell, is_bitcell=True, mirror='MX')
|
||||
core_block[(1 + r) % 2][(1+c) %2] = geometry.instance(f"core_{(1 + r)%2}_{(1+c)%2}", mod=self.dummy_cell, is_bitcell=True, mirror='XY')
|
||||
else:
|
||||
core_block = [[0 for x in range(1)] for y in range(2)]
|
||||
core_block[(0 + self.row_offset) % 2][(0+self.column_offset) %2] = geometry.instance("core_0_0", mod=self.dummy_cell, is_bitcell=True)
|
||||
core_block[(1 + self.row_offset) % 2][(0+self.column_offset) %2] = geometry.instance("core_1_0", mod=self.dummy_cell, is_bitcell=True, mirror='MX')
|
||||
core_block = [[0 for x in range(1)] for y in range(2)]
|
||||
core_block[(0 + r) % 2][0] = geometry.instance("core_0_0", mod=self.dummy_cell, is_bitcell=True)
|
||||
core_block[(1 + r) % 2][0] = geometry.instance("core_1_0", mod=self.dummy_cell, is_bitcell=True, mirror='MX')
|
||||
|
||||
print(core_block)
|
||||
|
||||
#print(r, c)
|
||||
#print(core_block)
|
||||
|
||||
|
|
|
|||
|
|
@ -33,11 +33,21 @@ tech_modules = d.module_type()
|
|||
###################################################
|
||||
cell_properties = d.cell_properties()
|
||||
|
||||
cell_properties.bitcell_1port.mirror.y = True
|
||||
cell_properties.bitcell_1port.mirror.y = False
|
||||
|
||||
cell_properties.bitcell_2port.mirror.y = True
|
||||
cell_properties.bitcell_2port.mirror.y = False
|
||||
|
||||
###################################################
|
||||
# Custom cell properties
|
||||
###################################################
|
||||
layer_properties = d.layer_properties()
|
||||
|
||||
connect_ring_top = False
|
||||
connect_ring_bottom = False
|
||||
connect_ring_left = True
|
||||
connect_ring_right = True
|
||||
###################################################
|
||||
# GDS file info
|
||||
###################################################
|
||||
|
|
@ -94,6 +104,9 @@ preferred_directions = {"poly": "V",
|
|||
"m2": "V",
|
||||
"m3": "H",
|
||||
"m4": "V"}
|
||||
|
||||
lef_rom_interconnect = ["m1", "m2", "m3", "m4"]
|
||||
|
||||
###################################################
|
||||
# Power grid
|
||||
###################################################
|
||||
|
|
|
|||
|
|
@ -34,6 +34,12 @@ cell_properties = d.cell_properties()
|
|||
cell_properties.bitcell_1port.gnd_layer = "m2"
|
||||
cell_properties.bitcell_1port.gnd_dir = "V"
|
||||
|
||||
cell_properties.bitcell_1port.mirror.y = True
|
||||
cell_properties.bitcell_1port.mirror.y = False
|
||||
|
||||
cell_properties.bitcell_2port.mirror.y = True
|
||||
cell_properties.bitcell_2port.mirror.y = False
|
||||
|
||||
###################################################
|
||||
# Custom cell properties
|
||||
###################################################
|
||||
|
|
@ -92,12 +98,19 @@ preferred_directions = {"poly": "V",
|
|||
"m3": "H",
|
||||
"m4": "V"}
|
||||
|
||||
lef_rom_interconnect = ["m1", "m2", "m3", "m4"]
|
||||
|
||||
|
||||
###################################################
|
||||
# Power grid
|
||||
###################################################
|
||||
# Use M3/M4
|
||||
power_grid = m3_stack
|
||||
|
||||
connect_ring_top = False
|
||||
connect_ring_bottom = False
|
||||
connect_ring_left = True
|
||||
connect_ring_right = True
|
||||
###################################################
|
||||
##GDS Layer Map
|
||||
###################################################
|
||||
|
|
@ -340,6 +353,8 @@ drc.add_enclosure("m4",
|
|||
layer = "via3",
|
||||
enclosure = 2*_lambda_)
|
||||
|
||||
|
||||
|
||||
###################################################
|
||||
# Spice Simulation Parameters
|
||||
###################################################
|
||||
|
|
|
|||
|
|
@ -245,6 +245,14 @@ cell_properties.names["write_driver"] = "sky130_fd_bd_sram__openram_write_driver
|
|||
array_row_multiple = 2
|
||||
array_col_multiple = 2
|
||||
|
||||
###################################################
|
||||
# Power grid
|
||||
###################################################
|
||||
connect_ring_top = True
|
||||
connect_ring_bottom = True
|
||||
connect_ring_left = False
|
||||
connect_ring_right = False
|
||||
|
||||
###################################################
|
||||
# Custom layer properties
|
||||
###################################################
|
||||
|
|
|
|||
|
|
@ -273,6 +273,13 @@ layer_properties.wordline_driver.vertical_supply = True
|
|||
|
||||
layer_properties.global_wordline_layer = "m5"
|
||||
|
||||
###################################################
|
||||
# Power grid
|
||||
###################################################
|
||||
connect_ring_top = True
|
||||
connect_ring_bottom = True
|
||||
connect_ring_left = False
|
||||
connect_ring_right = False
|
||||
|
||||
###################################################
|
||||
# Discrete tx bins
|
||||
|
|
|
|||
Loading…
Reference in New Issue