Change non-preferred route costs.

This commit is contained in:
Matt Guthaus 2018-10-20 14:47:24 -07:00
parent 7591f25a2e
commit 38a8c46034
3 changed files with 8 additions and 5 deletions

View File

@ -4,8 +4,6 @@ from contact import contact
import math
import debug
from pin_layout import pin_layout
from vector import vector
from vector3d import vector3d
from globals import OPTS
from router import router

View File

@ -5,10 +5,10 @@ import math
import debug
from globals import OPTS
from pin_layout import pin_layout
from vector import vector
from vector3d import vector3d
from router import router
from direction import direction
import grid
import grid_utils
class supply_router(router):
@ -23,7 +23,12 @@ class supply_router(router):
either the gds file name or the design itself (by saving to a gds file).
"""
router.__init__(self, layers, design, gds_filename)
# We over-ride the regular router costs to allow
# more off-direction router in the supply grid
grid.VIA_COST = 1
grid.NONPREFERRED_COST = 1
grid.PREFERRED_COST = 1
# The list of supply rails (grid sets) that may be routed
self.supply_rails = {}

View File

@ -106,7 +106,7 @@ def write_netgen_script(cell_name, sp_name):
f.write("equate class {{pfet {0}.spice}} {{p {1}}}\n".format(cell_name, sp_name))
# This circuit has symmetries and needs to be flattened to resolve them or the banks won't pass
# Is there a more elegant way to add this when needed?
f.write("flatten class {{{0}.spice bitcell_array}}\n".format(cell_name))
f.write("flatten class {{{0}.spice bitcell_array}}\n".format(cell_name))
f.write("flatten class {{{0}.spice precharge_array_1}}\n".format(cell_name))
f.write("flatten class {{{0}.spice precharge_array_2}}\n".format(cell_name))
f.write("flatten class {{{0}.spice precharge_array_3}}\n".format(cell_name))