Skip to content

Commit

Permalink
update openroad to use new PSM
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Apr 9, 2024
1 parent 686e2e9 commit 6875991
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup/_tools.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openroad": {
"git-url": "https://github.com/The-OpenROAD-Project/OpenROAD.git",
"git-commit": "d71278409f8f5b67f79d8696b325e6d711cbee58",
"git-commit": "fd769f92a63fe5fc4721e2fa8dfa586b216d47e3",
"docker-cmds": [
"# Remove OR-Tools files",
"RUN rm -f $SC_PREFIX/Makefile $SC_PREFIX/README.md",
Expand Down
5 changes: 4 additions & 1 deletion siliconcompiler/tools/openroad/scripts/sc_floorplan.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,10 @@ foreach net [sc_supply_nets] {

foreach net [sc_psm_check_nets] {
puts "Check supply net: $net"
check_power_grid -net $net
check_power_grid \
-floorplanning \
-error_file "reports/power_grid_${net}.rpt" \
-net $net
}

###########################
Expand Down
11 changes: 9 additions & 2 deletions siliconcompiler/tools/openroad/scripts/sc_write_images.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ proc sc_image_irdrop { net corner } {

# suppress error message related to failed analysis,
# that is okay, we just won't take a screenshot
suppress_message PSM 78
set msgs "38 39 69"
foreach msg $msgs {
suppress_message PSM $msg
}
set failed [catch { analyze_power_grid -net $net -corner $corner } err]
unsuppress_message PSM 78
foreach msg $msgs {
unsuppress_message PSM $msg
}
if { $failed } {
utl::warn FLW 1 "Unable to generate IR drop heatmap for $net on $corner"
return
Expand All @@ -120,6 +125,8 @@ proc sc_image_irdrop { net corner } {
}
set layer_name [$layer getName]

gui::set_heatmap IRDrop Net $net
gui::set_heatmap IRDrop Corner $corner
gui::set_heatmap IRDrop Layer $layer_name
gui::set_heatmap IRDrop rebuild

Expand Down

0 comments on commit 6875991

Please sign in to comment.