axi_dmac: patch version checking

Current implementation does not supports updated versions of Vivado
e.g. 2017.4.1 or 2018.2.1

This fix ignores the update number from the version checking.
main
Laszlo Nagy 2018-12-20 08:18:59 +00:00 committed by Laszlo Nagy
parent f5af939c04
commit fc74201c88
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ 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 [version -short] > 2017.2]} {
if {[expr [join [lrange [split [version -short] .] 0 1] .] > 2017.2 ]} {
set_property "CONFIG.ALLOW_ASYM_MEM" 1 $ip
}
}