Power routing changes.

Make the power rails an "experimental_power" option and conditional.
Rename route_vdd_gnd to route_supplies everywhere for consistency.
This commit is contained in:
mrg
2022-03-06 09:56:00 -08:00
parent 8b3c10ae79
commit d69e55c2e3
11 changed files with 227 additions and 100 deletions
+16 -2
View File
@@ -75,8 +75,8 @@ class sense_amp_array(design.design):
self.width = self.local_insts[-1].rx()
self.add_layout_pins()
self.route_horizontal_pins("vdd")
self.route_horizontal_pins("gnd")
self.route_supplies()
self.route_rails()
self.add_boundary()
@@ -173,6 +173,20 @@ class sense_amp_array(design.design):
width=dout_pin.width(),
height=dout_pin.height())
def route_supplies(self):
if OPTS.experimental_power:
self.route_horizontal_pins("vdd")
self.route_horizontal_pins("gnd")
else:
for i in range(len(self.local_insts)):
inst = self.local_insts[i]
for gnd_pin in inst.get_pins("gnd"):
self.copy_power_pin(gnd_pin)
for vdd_pin in inst.get_pins("vdd"):
self.copy_power_pin(vdd_pin)
def route_rails(self):
# Add enable across the array
en_pin = self.amp.get_pin(self.amp.en_name)