diff --git a/library/axi_dmac/bd/bd.tcl b/library/axi_dmac/bd/bd.tcl index 94db88eb9..641a880c8 100644 --- a/library/axi_dmac/bd/bd.tcl +++ b/library/axi_dmac/bd/bd.tcl @@ -28,7 +28,8 @@ proc init {cellpath otherInfo} { # Versions earlier than 2017.3 infer sub-optimal asymmetric memory # See https://www.xilinx.com/support/answers/69179.html - if {[expr [join [lrange [split [version -short] .] 0 1] .] > 2017.2 ]} { + regexp {^[0-9]+\.[0-9]+} [version -short] short_version + if {[expr $short_version > 2017.2]} { set_property "CONFIG.ALLOW_ASYM_MEM" 1 $ip } }