Post Go back to editing

Porting Reference Design from ZCU102 to unsupported board with smaller device part - Zynq UltraScale+ settings do not port from the original Reference Design

Category: Software
Product Number: AD9081
Software Version: hdl_2021_r2

Hi,

I am trying to port the reference design from the ZCU102 + AD9081-FMC-EBZ to a different carrier board - Enclustra Mercury+ XU8.  The part has the following device on it: "XCZU7ev-fbvb900-2-i"  This is a smaller part than the one on the ZCU102 for which the reference design was designed for.  

I have followed Porting reference designs very closely.  After the current reference design didn't fit due to the new device being smaller, I modified it by removing the RX part. The modified version was first tested on the zcu102 setup and it worked.  Next, I successfully built the ported reference design for the Mercury+ XU8.  The problem I currently have is that the UltraScale+ in the ported design for the Mercury+ XU8 lost all of its settings.  I've attached an image of the block designs for the UltraScale+ so you can see the difference between the 2 setups: first is the original zcu102 setup, and below it is the ported design for the Mercury+ XU8 board.  You can see that the settings were lost in the Mercury+ XU8 board.   For example there is no UART enabled in the ported design. When I try to boot this design from the onboard SD card, obviously I get nothing on the terminal, but I suspect it might be because I have no UART setup in this ported design.  Can you please help with this?  Thank you.

  • Hi,

    The problem I currently have is that the UltraScale+ in the ported design for the Mercury+ XU8 lost all of its settings.

    I assume you created a file similar to this one: https://github.com/analogdevicesinc/hdl/blob/main/projects/common/zcu102/zcu102_system_bd.tcl describing the particularities of the Mercury board, right? And in adi_project_xilinx.tcl you need to add an entry for your Mercury board, like it is done for ZCU102: https://github.com/analogdevicesinc/hdl/blob/main/projects/scripts/adi_project_xilinx.tcl#L105-L107 

    And there, you need to specify all the "particularities" that you want to use from this part. For ZCU102, there aren't that many written there, because this is a board from Xilinx, and I think they enable the other things in the background, when the selection of the board is done (line 107 from the previous file).

    For your case, you need to manually specify each thing you want to use, in a similar manner to what we have on our Jupiter project: https://github.com/analogdevicesinc/hdl/blob/main/projects/jupiter_sdr/system_bd.tcl . And these settings should be in hdl/projects/common/mercuryxu8/mercuryxu8_system_bd.tcl (for example).

    Thanks for pointing this out. I will update the documentation to include this situation as well.

    Best regards,
    Iulia

  • Hi, thanks for the response.  That seems to work - manually specify each thing in the mercuryXU8_system_bd.tcl that I had previously created during the porting process.  I still don't understand how for the ZCU102 everting is enabled in the "background" as you say.  That is, where is the part in this design where it checks what board is being used and then proceeds to enable everything?  I'd appreciate if you can shed some more light on this.

    Thanks,

  • Hi Dan, 

    if you look into the system_bd.tcl file of the original design there is a line that sources a .tcl from hdl/projects/common/zcu102/

    That 'common' design is where we enable stuff like spi/uart when we instantiate the PS for all the projects that are using a ZCU102 carrier.

    Regards,

    Bogdan

  • Hi,

    Thanks for the response.

    The only .tcl that is sourced in that path in system_bd.tcl is in fact the zcu102_system_bd.tcl.  But that is the file which I copied into my new mercuryXU8 directory and renamed mercuryXU8_system_bd.tcl. But then this file did not initialize any of the ps8 settings for the mercury+ XU8, thus the original posted question here. Lulia said I need to initialize it manually.  I did and that seems to work.  So then I asked about why does the original tcl file work for the ZCU102 and not the Mercury XU8.  I hope my question is more clear now. 

  • Hi Dan,

    Like I said, that's being done from the common/zcu102_system_bd.tcl

    When Vivado runs the following command:

    apply_bd_automation -rule xilinx.com:bd_rule:zynq_ultra_ps_e \
      -config {apply_board_preset 1}  [get_bd_cells sys_ps8]

    It enables the following by default:

    The board preset for the Mercury board is probably different in Vivado and that's why you have to manually enable them.

    Then on the other lines we enable the SPI controllers and whatever else we need that's not already enabled.

    ad_ip_parameter sys_ps8 CONFIG.PSU__PSS_REF_CLK__FREQMHZ 33.333333333
    ad_ip_parameter sys_ps8 CONFIG.PSU__USE__M_AXI_GP0 0
    ad_ip_parameter sys_ps8 CONFIG.PSU__USE__M_AXI_GP1 0
    ad_ip_parameter sys_ps8 CONFIG.PSU__USE__M_AXI_GP2 1
    ad_ip_parameter sys_ps8 CONFIG.PSU__MAXIGP2__DATA_WIDTH 32
    ad_ip_parameter sys_ps8 CONFIG.PSU__FPGA_PL0_ENABLE 1
    ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL0_REF_CTRL__SRCSEL {IOPLL}
    ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL0_REF_CTRL__FREQMHZ 100
    ad_ip_parameter sys_ps8 CONFIG.PSU__FPGA_PL1_ENABLE 1
    ad_ip_parameter sys_ps8 CONFIG.PSU__FPGA_PL2_ENABLE 1
    ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL1_REF_CTRL__SRCSEL {IOPLL}
    ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL1_REF_CTRL__FREQMHZ 250
    ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL2_REF_CTRL__SRCSEL {IOPLL}
    ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL2_REF_CTRL__FREQMHZ 500
    ad_ip_parameter sys_ps8 CONFIG.PSU__USE__IRQ0 1
    ad_ip_parameter sys_ps8 CONFIG.PSU__USE__IRQ1 1
    ad_ip_parameter sys_ps8 CONFIG.PSU__GPIO_EMIO__PERIPHERAL__ENABLE 1
    
    set_property -dict [list \
      CONFIG.PSU__SPI0__PERIPHERAL__ENABLE 1 \
      CONFIG.PSU__SPI0__PERIPHERAL__IO {EMIO} \
      CONFIG.PSU__SPI0__GRP_SS1__ENABLE 1 \
      CONFIG.PSU__SPI0__GRP_SS2__ENABLE 1 \
      CONFIG.PSU__CRL_APB__SPI0_REF_CTRL__FREQMHZ 100 \
      CONFIG.PSU__SPI1__PERIPHERAL__ENABLE 1 \
      CONFIG.PSU__SPI1__PERIPHERAL__IO EMIO \
      CONFIG.PSU__SPI1__GRP_SS1__ENABLE 1 \
      CONFIG.PSU__SPI1__GRP_SS2__ENABLE 1 \
      CONFIG.PSU__CRL_APB__SPI1_REF_CTRL__FREQMHZ 100 \
    ] [get_bd_cells sys_ps8]

    Hope this helps.

    Regards,

    Bogdan

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.