Skip to content

Commit

Permalink
Fix error with repair antennas rework (#2004)
Browse files Browse the repository at this point in the history
~ properly execute `GRT_REPAIR_ANTENNAS` flow
- remove repair_antennas from common/grt.tcl
  • Loading branch information
kareefardi authored Oct 1, 2023
1 parent 2bd7085 commit c782ec3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
3 changes: 0 additions & 3 deletions scripts/openroad/common/grt.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ if { $::env(GRT_ALLOW_CONGESTION) == 1 } {
puts $arg_list
global_route {*}$arg_list

if { $::env(GRT_REPAIR_ANTENNAS) } {
repair_antennas "$::env(DIODE_CELL)" -iterations $::env(GRT_ANT_ITERS) -ratio_margin $::env(GRT_ANT_MARGIN)
}
15 changes: 10 additions & 5 deletions scripts/tcl_commands/routing.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ proc global_routing_fastroute {args} {
set initial_odb [index_file $::env(routing_tmpfiles)/global.odb]

set ::env(GRT_CONGESTION_REPORT_FILE) $::env(routing_tmpfiles)/groute-congestion.rpt
run_openroad_script $::env(SCRIPTS_DIR)/openroad/repair_antennas.tcl\
-indexed_log $log\
-save "def=$initial_def,guide=$initial_guide,odb=$initial_odb"\
-no_update_current

if { $::env(GRT_REPAIR_ANTENNAS) } {
puts_info "Starting OpenROAD Antenna Repair Iterations..."
set iter 1
run_openroad_script $::env(SCRIPTS_DIR)/openroad/repair_antennas.tcl\
-indexed_log $log\
-save "def=$initial_def,guide=$initial_guide,odb=$initial_odb"\
-no_update_current

set iter 1
set minimum_def $initial_def
set minimum_guide $initial_guide
set minimum_odb $initial_odb
Expand Down Expand Up @@ -85,6 +85,11 @@ proc global_routing_fastroute {args} {
}
incr iter
}
} else {
run_openroad_script $::env(SCRIPTS_DIR)/openroad/groute.tcl\
-indexed_log $log\
-save "def=$initial_def,guide=$initial_guide,odb=$initial_odb"\
-no_update_current
}

set_def $::env(SAVE_DEF)
Expand Down

0 comments on commit c782ec3

Please sign in to comment.