Topic: trying to use lower ADC and DAC rates  (Read 4852 times)

rvincentzio October 07, 2013, 01:46 AM

  • Member
  • *
  • Posts: 29
I tried to lower the ADC and DAC rates of AFE7225. First enabled decimation and LPF by changing the register 165. When I run the application it says:

--- Measuring on-board frequencies ---
Stellar IP Clock : 125.00 MHz
ADC PHY Clock    : 61.44 MHz
DAC PHY Clock    : 61.44 MHz
CDCE62005 Spare  : 245.76 MHz
I would expect only the ADC clock to change, not both. Furthermore the RX data is absolute garble. In the same setup with default settings I had nice signals as expected, sine wave etc. As well when I modify the frequency of OUT1 of CDCE62005, register 1 bits 17, also the RX data is garble.

Kyu October 08, 2013, 12:06 PM (#1)

  • Member
  • *
  • Posts: 154

Hi,


The reason why both clocks to change is that DAC clock is generated by the ADC clock in the firmware. Please refer the afe7225_phy in the source code. If you change the frequency, idelay may need to change as well.


Thanks,
Kyu

rvincentzio October 14, 2013, 01:23 AM (#2)

  • Member
  • *
  • Posts: 29
Well Arnaud's post says that AFE7225 gets its clock from CDCE62005. As well he explains:
-  Start training in the firmware; the firmware will automatically adjust input iDelays and perform Bitslip to align the serial links
But in the SD111 (FMC30RF star) documentation I see that the ADC clock is an FPGA f/w input while the DAC clock is a f/w output to AFE7225. These are part of the f/w section AFE7225 PHY. But the AFE7225 PHY is not documented or explained. Particularly the operation of IDELAY, its training and how it relates to the ADC clock. I guess the whole point of training was to adjust the IDELAY relative to tho ADC clock. But it does not work. Please provide support for the AFE7225 PHY, IDELAY and its training.

rvincentzio October 15, 2013, 07:57 PM (#3)

  • Member
  • *
  • Posts: 29
I would highly appreciate an answer on this.

Kyu October 16, 2013, 12:32 PM (#4)

  • Member
  • *
  • Posts: 154

Yes, by using a bit align machine, the training adjusts the IDELAY relative to the ADC clock. Basically, bit align machine compares the test pattern, finds the 1st and 2nd edges and then sets the IDELAY tap value to the middle. However, this design is optimized for the default frequency that reference design uses. If clock is changed, possibly bit align machine may not set the optimal tap values. You can always change the IDELAY tap values manually instead of using the training. If you open "fmc30rf_afe7225.cpp" in the reference software, you can disable the training and set the manual IDELAY tap values. For more information on IDELAY, please refer Xilinx user guides.


Thanks,
Kyu