Skip to content

Commit 4831ad0

Browse files
committed
mock-array: linting fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 95f2578 commit 4831ad0

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

test/orfs/mock-array/place_mock_array.tcl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@
77
# for clock routing.
88

99
set block [ord::get_db_block]
10-
set core [$block getCoreArea]
10+
set core [$block getCoreArea]
1111

1212
set element [lindex [find_macros] 0]
13-
set bbox [$element getBBox]
13+
set bbox [$element getBBox]
1414

1515
set x_pitch [$bbox getDX]
1616
set y_pitch [expr { [$bbox getDY] + 4 / [ord::dbu_to_microns 1] }]
1717

1818
set rows $::env(ARRAY_ROWS)
1919
set 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

2630
for { 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
}

0 commit comments

Comments
 (0)