Skip to content

Commit

Permalink
Avoid off-grid errors in FP_PDN_AUTO_ADJUST (The-OpenROAD-Project#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
maliberty authored Apr 13, 2022
1 parent fc96d12 commit 67bbd24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/openroad/pdn_cfg.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if { [info exists ::env(FP_PDN_ENABLE_GLOBAL_CONNECTIONS)] } {

set_voltage_domain -name CORE -power $::env(VDD_NET) -ground $::env(GND_NET)

# Assesses whether the deisgn is the core of the chip or not based on the
# Assesses whether the design is the core of the chip or not based on the
# value of $::env(DESIGN_IS_CORE) and uses the appropriate stdcell section
if { $::env(DESIGN_IS_CORE) == 1 } {
# Used if the design is the core of the chip
Expand Down
8 changes: 4 additions & 4 deletions scripts/tcl_commands/floorplan.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ proc init_floorplan {args} {
$core_height <= [expr {$::env(FP_PDN_HOFFSET) + $::env(FP_PDN_HPITCH)}]} {
puts_warn "Current core area is too small for a power grid. The power grid will be minimized."

set ::env(FP_PDN_VOFFSET) [expr {$core_width/6.0}]
set ::env(FP_PDN_HOFFSET) [expr {$core_height/6.0}]
set ::env(FP_PDN_VOFFSET) [expr {$core_width/8.0}]
set ::env(FP_PDN_HOFFSET) [expr {$core_height/8.0}]

set ::env(FP_PDN_VPITCH) [expr {$core_width/3.0}]
set ::env(FP_PDN_HPITCH) [expr {$core_height/3.0}]
set ::env(FP_PDN_VPITCH) [expr {$core_width/4.0}]
set ::env(FP_PDN_HPITCH) [expr {$core_height/4.0}]
}

}
Expand Down

0 comments on commit 67bbd24

Please sign in to comment.