Post Go back to editing

Error when trying to build adrv9361 library vivado 2019.1

Category: Software
Product Number: adrv9364-z7020
Software Version: vivado 2019.1 windows 10

Hey, 

I've cloned the hdl_2019_r1  branch (https://github.com/analogdevicesinc/hdl/tree/hdl_2019_r1) from which I want to build the reference design for the ADRV9364-Z7020 on a Windows machine that has Vivado 2019.1 on it. 

I tried to follow this guide: 

https://wiki.analog.com/resources/fpga/docs/build#:~:text=projects/daq2/zc706.-,Xilinx%20auto%20Tcl%20build,-We%20do%20not

As much as I understand - I need to build the required ADI libraries prior to build the project of the ADRV9364 itself, So:

I navigated to the ADRV9364-Z7020 folder (actually to the CCBOB_CMOS project in this folder) and tried to run the following in the tcl console in Vivado: 

1. 

source ../../scripts/adi_make.tcl


2.

adi_make::lib all




1 seem to work fine (no errors) 

but when I run 2 - it does recognize which libraries it should build but I'm getting the following error: 




WARNING: [IP_Flow 19-1971] File named "../xilinx/common/up_xfer_cntrl_constr.xdc" already exists in file group "xilinx_anylanguagesynthesis", cannot add it again.

ERROR: [Common 17-39] 'ipx::reorder_files' failed due to earlier errors.

while executing
"ipx::reorder_files -front $i_file $i_filegroup"
("foreach" body line 7)
invoked from within
"foreach i_file $ip_constr_files {
set i_module [file tail $i_file]
regsub {_constr\.xdc} $i_module {} i_module
ipx::add_file $i_file $i_fi..."
(procedure "adi_ip_properties_lite" line 32)
invoked from within
"adi_ip_properties_lite $ip_name"
(procedure "adi_ip_properties" line 3)
invoked from within
"adi_ip_properties axi_ad9361"
(file "C:/t/adi_hdl/hdl-2019_r1/library/axi_ad9361/axi_ad9361_ip.tcl" line 53)
INFO: [Common 17-206] Exiting Vivado at Wed Sep 20 00:19:43 2023...
ERROR: [IP_Flow 19-851] Cannot find !C:\t\adi_hdl\hdl-2019_r1\library\xilinx\common\up_xfer_cntrl_constr.xdc1! to reorder: "(null)".ÿ


I checked and there is a file named "up_xfer_cntrl_constr.xdc" under the path mentioned in the error message....



Can someone help me here please ? 



 

  • Hello,

    You don't need to build all the libraries. During the project build process, using the make command, all the necessary libraries for the project will be built automatically.

    Here you will find all the steps for building the HDL.

    Kind regards,

    Stanca

  • Stanca thanks for your quick reply!

    I tried to follow the steps for building the HDL project (projects/adrv9364z7020/ccbob_cmos) on cygwin (with GNU make installed as required) 


    But it is still failing with the same error. 


    Here's what I ran: 


    In cygwin console: 


    cd /cygdrive/c/t/adi_hdl/projects/adrv9364z7020/ccbob_cmos
    make


    I saw that it was trying to build the first library (axi_ad9361)  but it failed with the same error that I mentioned in the original post: 


    Building axi_ad9361 library [/cygdrive/c/t/adi_hdl/library/axi_ad9361/axi_ad9361_ip.log] ... FAILED
    For details see /cygdrive/c/t/adi_hdl/library/axi_ad9361/axi_ad9361_ip.log

    make[1]: *** [../scripts/library.mk:71: component.xml] Error 1
    make: *** [../../scripts/project-xilinx.mk:76: lib] Error 2

    And printing out the log file gives the following error (after skipping a lot of warnings and info messages): 



    ERROR: [IP_Flow 19-851] Cannot find !C:/t/adi_hdl/library/xilinx/common/up_xfer_cntrl_constr.xdc1! to reorder: "(null)".l
    ERROR: [Common 17-39] 'ipx::reorder_files' failed due to earlier errors.

    while executing
    "ipx::reorder_files -front $i_file $i_filegroup"
    ("foreach" body line 5)
    invoked from within
    "foreach i_file $ip_constr_files {
    set i_module [file tail $i_file]
    regsub {_constr\.xdc} $i_module {} i_module
    ipx::add_file $i_file $i_fi..."
    (procedure "adi_ip_properties_lite" line 31)
    invoked from within
    "adi_ip_properties_lite $ip_name"
    (procedure "adi_ip_properties" line 3)
    invoked from within
    "adi_ip_properties axi_ad9361"
    (file "axi_ad9361_ip.tcl" line 53)
    INFO: [Common 17-206] Exiting Vivado at Thu Sep 21 20:34:40 2023...






    It seems that it is trying to locate a file called up_xfer_cntrl_constr.xdc1 in the common xilinx folder but there is no such file (there is actually a file named up_xfer_cntrl_constr.xdc ...)


    What can I do in order to build this reference project successfully ? 

  • Okay - I solved the problem! 

    The issue was the tag (branch) version that I tried to compile - the r2019-1 should be compiled using vivado 2018.3, and I have vivado 2019.1 installed on my machine. 

    So I checked out r2019-2 which is the correct branch for Vivado 2019.1 and everything was built successfully!


    The required Vivado version is written in the projects/scripts/adi_project_xilinx.tcl file. 


    Stanca thank you again!