File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# for clock routing.
88
99set block [ord::get_db_block]
10- set core [$block getCoreArea]
10+ set core [$block getCoreArea]
1111
1212set element [lindex [find_macros] 0]
13- set bbox [$element getBBox]
13+ set bbox [$element getBBox]
1414
1515set x_pitch [$bbox getDX]
1616set y_pitch [expr { [$bbox getDY] + 4 / [ord::dbu_to_microns 1] }]
1717
1818set rows $::env(ARRAY_ROWS)
1919set cols $::env(ARRAY_COLS)
2020
21- set x_offset [expr { [$core xMin] + \
22- ([$core dx] - ($cols - 1) * $x_pitch - [$bbox getDX]) / 2 }]
23- set y_offset [expr { [$core yMin] + \
24- ([$core dy] - ($rows - 1) * $y_pitch - [$bbox getDY]) / 2 }]
21+ set x_offset [expr {
22+ [$core xMin] +
23+ ([$core dx] - ($cols - 1) * $x_pitch - [$bbox getDX]) / 2
24+ }]
25+ set y_offset [expr {
26+ [$core yMin] +
27+ ([$core dy] - ($rows - 1) * $y_pitch - [$bbox getDY]) / 2
28+ }]
2529
2630for { set r 0 } { $r < $rows } { incr r } {
2731 for { set c 0 } { $c < $cols } { incr c } {
@@ -32,7 +36,7 @@ for { set r 0 } { $r < $rows } { incr r } {
3236 set y [expr { $r * $y_pitch + $y_offset }]
3337 place_macro -macro_name $macro_name \
3438 -location [list [expr { [ord::dbu_to_microns 1] * $x }] \
35- [expr { [ord::dbu_to_microns 1] * $y }]] \
39+ [expr { [ord::dbu_to_microns 1] * $y }]] \
3640 -orientation R0
3741 }
3842}
You can’t perform that action at this time.
0 commit comments