Post Go back to editing

Enable DDC in FMCDAQ2 + kc705

Hi,

I am using KC705 & FMCDAQ2 combo. I would finally move to ZC706 + FMCDAQ2

I would like enable DDC in AD9680. My preferred configuration is given in ""Table 23. DDC Example Configurations"" Chip decimation ratio is 16 ie no of virtual converters 8.
I have referred to below link.

ez.analog.com/.../412002

In case of HDL design, ""you could modify the design to M=8 ""

Does that mean I need to edit projects\daq2\common\daq2_bd.tcl? What are the other parameters to change?

""
ad_ip_instance util_cpack2 axi_ad9680_cpack { \
NUM_OF_CHANNELS 2 \
SAMPLES_PER_CHANNEL 4 \
SAMPLE_DATA_WIDTH 16 \
}
""

to

""
ad_ip_instance util_cpack2 axi_ad9680_cpack { \
NUM_OF_CHANNELS 8 \
SAMPLES_PER_CHANNEL 1 \
SAMPLE_DATA_WIDTH 16 \
}
""


our requirement is similar to ""Example 2: ADC with DDC Option (Two ADCs Plus Four DDCs)"" in AD9680 data sheet.

As i understand, we may have to reduce no of lanes to 2 from given default 4 lanes in example design to maintain minimum lane rate of >3.125Gbps.

Is there any guidelines to reduce the lane nos in HDL design? Do I need to just edit daq2_bd.tcl?

Parents
  • Hello,

    You just need to edit the daq2_bd.tcl file in the common directory. Since the architecture construction is parameterized you just need to modify the variables defined in the beginning of the file: set RX_NUM_OF_LANES 2 ; # L
                                                                                 set RX_NUM_OF_CONVERTERS 8 ; # M
                                                                                 set RX_SAMPLES_PER_FRAME 1 ; # S
                                                                                 set RX_SAMPLE_WIDTH 16 ; # N/NP

    Best Regards,

    Dan Hotoleanu

  • For hdl_2019_r2 with the above modification in daq2_bd.tcl synthesis failed with following error 

    ""ERROR: [Synth 8-2908] range width must be a positive integer [d:/adi/ddc_ver/projects/daq2/kc705/daq2_kc705.srcs/sources_1/bd/system/ipshared/6295/util_cpack2.v:280]
    ERROR: [Synth 8-6156] failed synthesizing module 'util_cpack2' [d:/adi/ddc_ver/projects/daq2/kc705/daq2_kc705.srcs/sources_1/bd/system/ipshared/6295/util_cpack2.v:38]
    ERROR: [Synth 8-6156] failed synthesizing module 'system_axi_ad9680_cpack_0' [d:/adi/ddc_ver/projects/daq2/kc705/daq2_kc705.srcs/sources_1/bd/system/ip/system_axi_ad9680_cpack_0/synth/system_axi_ad9680_cpack_0.v:57]
    ERROR: [Synth 8-6156] failed synthesizing module 'system' [D:/adi/ddc_ver/projects/daq2/kc705/daq2_kc705.srcs/sources_1/bd/system/synth/system.v:2942]
    ERROR: [Synth 8-6156] failed synthesizing module 'system_wrapper' [D:/adi/ddc_ver/projects/daq2/kc705/daq2_kc705.srcs/sources_1/imports/hdl/system_wrapper.v:12]
    ERROR: [Synth 8-6156] failed synthesizing module 'system_top' [d:/adi/ddc_ver/projects/daq2/kc705/system_top.v:38]

    ""

  • Hello Dan,

    I changed daq2_bd.tcl with following line

    set RX_SAMPLES_PER_CHANNEL [expr $RX_NUM_OF_LANES * 64 / ($RX_NUM_OF_CONVERTERS * $RX_SAMPLE_WIDTH) 

    from

    set RX_SAMPLES_PER_CHANNEL [expr $RX_NUM_OF_LANES * 32/ ($RX_NUM_OF_CONVERTERS * $RX_SAMPLE_WIDTH) 

    This allowed Vivado to generate bit file. Still I am not sure about the implication of such a change. Here is the image of system block

  • Hello,

    For the required configuration, you'll have to set F=8 and datapath 8 bytes (https://github.com/analogdevicesinc/hdl/blob/master/projects/ad9083_evb/common/ad9083_evb_bd.tcl#L27)  and you'll be in a mode similar with the one described here:

    https://wiki.analog.com/resources/eval/user-guides/ad9083/ad9083_evb_reference_hdl

    You'll need a link clock (lane_rate/40) and a deviceclock (lane_rate/20). 

    DAQ2 has a single clock available as GTREFCLK from which the device_clock is derived, so you'll need to use that for all three clocks. Most likely you need to change the reference clock to 250MHz and use it as link clock and then divide it by 2 to use it as device clock. We need to test this configuration on our side and may take a few days.

    Regards,

    Adrian

  • I made the following changes to dac2_bd.tcl

    Changed line to 

    set RX_SAMPLES_PER_CHANNEL 1;# [expr $RX_NUM_OF_LANES * 32 / ($RX_NUM_OF_CONVERTERS * $RX_SAMPLE_WIDTH)]

    Added new line

    adi_axi_jesd204_rx_create axi_ad9680_jesd $RX_NUM_OF_LANES
    ad_ip_parameter axi_ad9680_jesd/rx CONFIG.DATA_PATH_WIDTH 8

    I was able to build the project. But when I check axi_ad9680_jesd(Attached image) I observed Data path Width as 4. I was expecting that this will change to 8 No sure whether this is correct.

    Attaching 4478.daq2_bd.rar

  • I made the following changes to dac2_bd.tcl

    Changed line to 

    set RX_SAMPLES_PER_CHANNEL 1;# [expr $RX_NUM_OF_LANES * 32 / ($RX_NUM_OF_CONVERTERS * $RX_SAMPLE_WIDTH)]

    Added new line

    adi_axi_jesd204_rx_create axi_ad9680_jesd $RX_NUM_OF_LANES
    ad_ip_parameter axi_ad9680_jesd/rx CONFIG.DATA_PATH_WIDTH 8

    I was able to build the project. But when I check axi_ad9680_jesd(Attached image) I observed Data path Width as 4. I was expecting that this will change to 8 No sure whether this is correct.

    Attaching 4478.daq2_bd.rar

    In Vivado log file I could see following details

    ### ad_ip_parameter axi_ad9680_jesd/rx CONFIG.DATA_PATH_WIDTH 8
    WARNING: [BD 41-721] Attempt to set value '8' on disabled parameter 'DATA_PATH_WIDTH' of cell '/axi_ad9680_jesd/rx' is ignored

Reply
  • I made the following changes to dac2_bd.tcl

    Changed line to 

    set RX_SAMPLES_PER_CHANNEL 1;# [expr $RX_NUM_OF_LANES * 32 / ($RX_NUM_OF_CONVERTERS * $RX_SAMPLE_WIDTH)]

    Added new line

    adi_axi_jesd204_rx_create axi_ad9680_jesd $RX_NUM_OF_LANES
    ad_ip_parameter axi_ad9680_jesd/rx CONFIG.DATA_PATH_WIDTH 8

    I was able to build the project. But when I check axi_ad9680_jesd(Attached image) I observed Data path Width as 4. I was expecting that this will change to 8 No sure whether this is correct.

    Attaching 4478.daq2_bd.rar

    In Vivado log file I could see following details

    ### ad_ip_parameter axi_ad9680_jesd/rx CONFIG.DATA_PATH_WIDTH 8
    WARNING: [BD 41-721] Attempt to set value '8' on disabled parameter 'DATA_PATH_WIDTH' of cell '/axi_ad9680_jesd/rx' is ignored

Children
No Data