Skip to content

Commit

Permalink
eecs151 fa23 instructional machine fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eecs151 Master committed Oct 10, 2023
1 parent 46b4e75 commit 28ab10c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions hammer/par/innovus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,16 @@ def init_design(self) -> bool:

# Set the top and bottom global/detail routing layers.
# This must happen after the tech LEF is loaded
layers = self.get_setting("vlsi.technology.routing_layers")
if layers is not None:
if self.version() >= self.version_number("201"):
verbose_append(f"set_db design_bottom_routing_layer {layers[0]}")
verbose_append(f"set_db design_top_routing_layer {layers[1]}")
else:
verbose_append(f"set_db route_early_global_bottom_layer {layers[0]}")
verbose_append(f"set_db route_early_global_top_layer {layers[1]}")
verbose_append(f"set_db route_design_bottom_layer {layers[0]}")
verbose_append(f"set_db route_design_top_layer {layers[1]}")
#layers = self.get_setting("vlsi.technology.routing_layers")
#if layers is not None:
# if self.version() >= self.version_number("201"):
# verbose_append(f"set_db design_bottom_routing_layer {layers[0]}")
# verbose_append(f"set_db design_top_routing_layer {layers[1]}")
# else:
# verbose_append(f"set_db route_early_global_bottom_layer {layers[0]}")
# verbose_append(f"set_db route_early_global_top_layer {layers[1]}")
# verbose_append(f"set_db route_design_bottom_layer {layers[0]}")
# verbose_append(f"set_db route_design_top_layer {layers[1]}")

# Set design effort.
verbose_append("set_db design_flow_effort {}".format(self.get_setting("par.innovus.design_flow_effort")))
Expand Down

0 comments on commit 28ab10c

Please sign in to comment.