Skip to content

Commit b8c7d6d

Browse files
committed
projects/scripts/adi_board.tcl: remove dependency on math
Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
1 parent 130abf7 commit b8c7d6d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

projects/scripts/adi_board.tcl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
### SPDX short identifier: ADIBSD
44
###############################################################################
55

6-
package require math
7-
86
## Global variables for interconnect interface indexing
97
#
108
set sys_hpc0_interconnect_index -1
@@ -153,8 +151,8 @@ proc ad_connect_int_width {obj} {
153151
set left [get_property LEFT $obj]
154152
set right [get_property RIGHT $obj]
155153

156-
set high [::math::max $left $right]
157-
set low [::math::min $left $right]
154+
set high [expr max($left,$right)]
155+
set low [expr min($left,$right)]
158156

159157
return [expr {1 + $high - $low}]
160158
}

0 commit comments

Comments
 (0)