mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 17:39:02 +02:00
Remove EOL whitespace globally
This commit is contained in:
@@ -23,7 +23,7 @@ class wordline_buffer_array(design.design):
|
||||
design.design.__init__(self, name)
|
||||
debug.info(1, "Creating {0}".format(self.name))
|
||||
self.add_comment("rows: {0} cols: {1}".format(rows, cols))
|
||||
|
||||
|
||||
self.rows = rows
|
||||
self.cols = cols
|
||||
|
||||
@@ -35,7 +35,7 @@ class wordline_buffer_array(design.design):
|
||||
self.add_modules()
|
||||
self.add_pins()
|
||||
self.create_drivers()
|
||||
|
||||
|
||||
def create_layout(self):
|
||||
if "li" in layer:
|
||||
self.route_layer = "li"
|
||||
@@ -47,7 +47,7 @@ class wordline_buffer_array(design.design):
|
||||
self.offset_all_coordinates()
|
||||
self.add_boundary()
|
||||
self.DRC_LVS()
|
||||
|
||||
|
||||
def add_pins(self):
|
||||
# inputs to wordline_driver.
|
||||
for i in range(self.rows):
|
||||
@@ -60,12 +60,12 @@ class wordline_buffer_array(design.design):
|
||||
|
||||
def add_modules(self):
|
||||
b = factory.create(module_type="bitcell")
|
||||
|
||||
|
||||
self.wl_driver = factory.create(module_type="inv_dec",
|
||||
size=self.cols,
|
||||
height=b.height)
|
||||
self.add_mod(self.wl_driver)
|
||||
|
||||
|
||||
def route_vdd_gnd(self):
|
||||
"""
|
||||
Add a pin for each row of vdd/gnd which
|
||||
@@ -84,7 +84,7 @@ class wordline_buffer_array(design.design):
|
||||
xoffset_list = [self.wld_inst[0].rx()]
|
||||
for num in range(self.rows):
|
||||
# this will result in duplicate polygons for rails, but who cares
|
||||
|
||||
|
||||
# use the inverter offset even though it will be the and's too
|
||||
(gate_offset, y_dir) = self.get_gate_offset(0,
|
||||
self.wl_driver.height,
|
||||
@@ -92,12 +92,12 @@ class wordline_buffer_array(design.design):
|
||||
# Route both supplies
|
||||
for name in ["vdd", "gnd"]:
|
||||
supply_pin = self.wld_inst[num].get_pin(name)
|
||||
|
||||
|
||||
# Add pins in two locations
|
||||
for xoffset in xoffset_list:
|
||||
pin_pos = vector(xoffset, supply_pin.cy())
|
||||
self.add_power_pin(name, pin_pos)
|
||||
|
||||
|
||||
def create_drivers(self):
|
||||
self.wld_inst = []
|
||||
for row in range(self.rows):
|
||||
@@ -119,7 +119,7 @@ class wordline_buffer_array(design.design):
|
||||
inst_mirror = "MX"
|
||||
|
||||
offset = [0, y_offset]
|
||||
|
||||
|
||||
self.wld_inst[row].place(offset=offset,
|
||||
mirror=inst_mirror)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user