Skip to content

Commit e7309cc

Browse files
committed
Modify - simplify calculation base
Signed-off-by: louiic <[email protected]>
1 parent 44db8a8 commit e7309cc

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

flow/designs/asap7/mock-array-big/macro-placement.tcl

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@ lassign $vals rows cols ce_pitch_x ce_pitch_y margin_x margin_y placement_grid_x
55
set block [ord::get_db_block]
66
set 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-
118
for {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
}

0 commit comments

Comments
 (0)