File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
flow/designs/asap7/mock-array-big Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,15 @@ lassign $vals rows cols ce_pitch_x ce_pitch_y margin_x margin_y placement_grid_x
55set block [ord::get_db_block]
66set units [$block getDefUnits]
77
8- set x [expr ($margin_x + ($ce_pitch_x / 2)) * $units ]
9- set y [expr ($margin_y + ($ce_pitch_y / 2)) * $units ]
10-
118for {set row 0} {$row < $rows } {incr row} {
129 for {set col 0} {$col < $cols } {incr col} {
1310 set inst [$block findInst [format " ces_%d_%d" $row $col ]]
14- $inst setOrient R0
1511
16- $inst setOrigin [expr int($x )] [ expr int( $y )]
17- $inst setPlacementStatus FIRM
12+ set x [expr int(( $margin_x + ( $ce_pitch_x / 2) + ( $ce_pitch_x * $col )) * $units )]
13+ set y [ expr int(( $margin_y + ( $ce_pitch_y / 2) + ( $ce_pitch_y * $row )) * $units )]
1814
19- set x [expr $x + ($ce_pitch_x * $units )]
15+ $inst setOrient R0
16+ $inst setOrigin $x $y
17+ $inst setPlacementStatus FIRM
2018 }
21- set y [expr $y + ($ce_pitch_y * $units )]
22- set x [expr ($margin_x + ($ce_pitch_x / 2)) * $units ]
2319}
You can’t perform that action at this time.
0 commit comments