Skip to content

Commit

Permalink
Update OpenROAD + Cleanup Fallout (The-OpenROAD-Project#1169)
Browse files Browse the repository at this point in the history
+ new `openlane-and-push-tools` target added to root Makefile to enable easier updating of tools
~ antenna check results now extracted from log
~ `droute.tcl` updates to read guides before `detailed_route`

Co-authored-by: Mohamed Gaber <me@donn.website>
  • Loading branch information
cbalint13 and donn authored Jul 18, 2022
1 parent ebbb579 commit 1c5db85
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ all: get-openlane pdk
openlane: venv/created
@PYTHON_BIN=$(PWD)/venv/bin/$(PYTHON_BIN) $(MAKE) -C docker openlane

.PHONY: openlane-and-push-tools
openlane-and-push-tools: venv/created
@PYTHON_BIN=$(PWD)/venv/bin/$(PYTHON_BIN) BUILD_IF_CANT_PULL=1 BUILD_IF_CANT_PULL_THEN_PUSH=1 $(MAKE) -C docker openlane

pull-openlane:
@docker pull "$(OPENLANE_IMAGE_NAME)"

Expand Down
2 changes: 1 addition & 1 deletion dependencies/tool_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
in_install: false
- name: openroad_app
repo: https://github.com/The-OpenROAD-Project/OpenROAD
commit: 0b8b7ae255f8fbbbefa57d443949b84e73eed757
commit: 475ff5e827b8937f4810ecae75973ee74e457816
build: ""
in_install: false
- name: git
Expand Down
2 changes: 1 addition & 1 deletion scripts/extract_antenna_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import sys

in_data = sys.stdin.read()
print(re.findall(r"[Aa]ntenna violations:\s*(\d+)", in_data)[-1], end="")
print(re.findall(r"s*(\d+) antenna violations.", in_data)[-1], end="")
2 changes: 1 addition & 1 deletion scripts/openroad/antenna_check.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ if {[catch {read_def $::env(CURRENT_DEF)} errmsg]} {
}

# start checking antennas and generate a detail report
check_antennas -report_file $::env(_tmp_antenna_checker_rpt)
check_antennas -verbose
3 changes: 2 additions & 1 deletion scripts/openroad/droute.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ if { [info exists ::env(DRT_MAX_LAYER)] } {
set max_layer $::env(DRT_MAX_LAYER)
}

read_guides $::env(CURRENT_GUIDE)

detailed_route\
-guide $::env(CURRENT_GUIDE)\
-bottom_routing_layer $min_layer\
-top_routing_layer $max_layer\
-output_guide $::env(TRITONROUTE_FILE_PREFIX).guide\
Expand Down
2 changes: 1 addition & 1 deletion scripts/tcl_commands/all.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ proc run_or_antenna_check {args} {

try_catch $::env(OPENROAD_BIN) -python $::env(SCRIPTS_DIR)/extract_antenna_violators.py\
--output $antenna_violators_rpt\
$antenna_checker_rpt
$log

set ::env(ANTENNA_VIOLATOR_LIST) $antenna_violators_rpt

Expand Down

0 comments on commit 1c5db85

Please sign in to comment.