Post Go back to editing

Processing and sending data using the FMCADC2

HI!

We are working on a project in which we are using the acquisition board AD-FMCADC2-EBZ coupled with the Xilinx ZC706 evaluation board. We took the HDL reference code provided by Analog Devices to work on it - specifically the project fmcadc2_zc706 for Vivado 2014.4.1.

 

Our goal is to take the bits captured by the ADC and process it with our own code - that would be inserted in the reference code mentioned above.  We are going to read the data coming out from the ADC, process it, and produce our desired bits. These bits will be then stored in the ARM's memory and sent to an external PC by Ethernet.

 

Our processing of the bits is very simple: It will do the moving average of each 4 samples and compare it with the current bit. For each sample, our code generates one output bit which will be grouped into 8, and then stored on the ARM’s memory or simply sent by the Ethernet output - we are going to work with an effective rate of  125MB/s (1GS/s / 8).

We have no problem by generating an output of 32 or 64 bits to interface with the DMA.

 

The image below shows a part of the block diagram in which we want to insert our code:

 

 

We are going to use the adc_clk and adc_wr signals to synchronize it with our clock.

 

Is it possible to implement that (knowing the speed we want to reach)?  Furthermore, we would like to know where is the best part of the reference code in which we can insert our code (between one of the two parts indicated by the green arrows in the figure). There is a better way to do what we need?

 

Finally, there are two outputs for the axi_adcfifo: one that interfaces the DDR3 and another the DMA for the ARM SDRAM. Is it necessary to use the DDR3 interface?

  • If I understood you correctly, you will NOT need any FIFO or DDR3 for the internal storage. The only reason they are here is because we are writing the samples (at 2.5G). You can insert your core right between the ADC & DMA. You may keep or remove the FIFO. 

  • Hi Rejeesh,

    Thanks for the reply. We may not have expressed ourselves well. The samples we'll be taken at 2.5GSPS, but our logic may not be able to handle that rate. So, we'll need to store, say, a block of samples of 64 or 256 length, and process these samples while another block is being saved in another FIFO. Then, when FIFO 0 is processed, we switch to FIFO1.

    Our logic would work at 2.5/8 = 300 MHz, which is doable, given the processing we need to do. We definitely need a FIFO in order to decrease the sample rate.

    Our question then is: where should we insert our logic, to both make it easy to interface with the logic already there, and to guarantee that it will work at 300 MHz? Should we work with the "adc_wdata[255..0]", "adc_rst", "adc_clk" and "adc_wr" set of signals or on the other side of the "axi_adcfifo" block, with signals "dma_wdata[63..0]" and "dma_wr"? These may be the source, we guess, of blocks with 256 or 64 samples that we mention above.

    BTW, is there a document that describes the flow of data in the fmcadc2_zc706 FPGA code?

    Thanks again, and please, let us know whatever additional information you need to make our request clearer to you.

    Julio

  • There is no documentation on it, if something is NOT clear, let us know, we will add it to the wiki.

    I would guess you need the "ADC" signals, the "DMA" signals you mentioned depends on whether DMA is running or not and has an associated software dependency. You will also be dropping samples in between runs.

Before You Switch


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