Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix whitespace" #151

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/base/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def walk_subtree(node):
for offset in range(len(normalized_br_offsets)):
for port in range(len(br_names)):
cell_br_meta.append([br_names[offset], row, col, port])

if normalized_storage_nets == []:
debug.error("normalized storage nets should not be empty! Check if the GDS labels Q and Q_bar are correctly set on M1 of the cell",1)
Q_x = normalized_storage_nets[0][0]
Expand Down
2 changes: 1 addition & 1 deletion compiler/base/hierarchy_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ def add_via_stack_center(self,
return None

intermediate_layers = self.get_metal_layers(from_layer, to_layer)

via = None
cur_layer = from_layer
while cur_layer != to_layer:
Expand Down
5 changes: 3 additions & 2 deletions compiler/base/lef.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def lef_write(self, lef_name):
# return

# To maintain the indent level easily
self.indent = ""
self.indent = ""

if OPTS.detailed_lef:
debug.info(3, "Writing detailed LEF to {0}".format(lef_name))
Expand All @@ -88,7 +88,7 @@ def lef_write(self, lef_name):

for pin_name in self.pins:
self.lef_write_pin(pin_name)

self.lef_write_obstructions(OPTS.detailed_lef)
self.lef_write_footer()
self.lef.close()
Expand Down Expand Up @@ -220,3 +220,4 @@ def lef_write_shape(self, obj):
round(item[1],
self.round_grid)))
self.lef.write(" ;\n")

4 changes: 2 additions & 2 deletions compiler/base/pin_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, name, rect, layer_name_pp):
if self.same_lpp(layer_name_pp, lpp):
self._layer = layer_name
break

else:
try:
from tech import layer_override
Expand All @@ -57,7 +57,7 @@ def __init__(self, name, rect, layer_name_pp):
return
except:
debug.error("Layer {} is not a valid routing layer in the tech file.".format(layer_name_pp), -1)

self.lpp = layer[self.layer]
self._recompute_hash()

Expand Down
11 changes: 6 additions & 5 deletions compiler/base/timing_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_timing(self, path, corner, slew, load, params):
# If at the last output, include the final output load
if i == len(path) - 2:
cout += load

if params["model_name"] == "cacti":
delays.append(path_edge_mod.cacti_delay(corner, cur_slew, cout, params))
cur_slew = delays[-1].slew
Expand All @@ -130,14 +130,14 @@ def get_timing(self, path, corner, slew, load, params):
return_value=1)

return delays

def get_edge_mods(self, path):
"""Return all edge mods associated with path"""

if len(path) == 0:
return []

return [self.edge_mods[(path[i], path[i+1])] for i in range(len(path)-1)]
return [self.edge_mods[(path[i], path[i+1])] for i in range(len(path)-1)]

def __str__(self):
""" override print function output """
Expand All @@ -153,3 +153,4 @@ def __repr__(self):
""" override print function output """

return str(self)

2 changes: 1 addition & 1 deletion compiler/base/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_gds_pins(pin_names, name, gds_filename, units):
if layer_override[pin_name]:
lpp = layer_override[pin_name.textString]
except:
pass
pass
lpp = (lpp[0], None)
cell[str(pin_name)].append(pin_layout(pin_name, rect, lpp))

Expand Down
2 changes: 1 addition & 1 deletion compiler/base/wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def compute_pitch(self, layer_stack):
This is contact direction independent pitch,
i.e. we take the maximum contact dimension
"""

# This is here for the unit tests which may not have
# initialized the static parts of the layout class yet.
from base import layout
Expand Down
Loading