how can I set a different sampling rate for ADC and DAC?

17 views (last 30 days)
Hello, currently I am using ZCU111 with matlab and simulink to develop RFSoC. According to the xilinx website (http://www.xilinx.com/zcu111) the ADC can operate at up to 4GHz sampling and the DAC can operate at up to 6.5GHz sampling. When I used the simulink example from mathworks website, I used the same sampling rate as in the example (4GHz for both the ADC and DAC). Do you know how can I set a different sampling rate for ADC and DAC???

Answers (1)

Shaik mohammed ghouse basha
Hi @Aera,
I understand that to develop RFSoC you have an ADC and DAC and by default they have 4GHz as sampling rate and you want to change them to other custom values.
First, ensure that your Simulink model includes the "AD9680" and "AD9144" blocks for the ADC and DAC respectively, and that you have set the appropriate configuration parameters for the ZCU111 board in your Simulink model.
To set different sampling rates for the ADC and DAC, you will need to modify the configuration blocks for each device:
  • For the ADC, you can change the sampling rate by modifying the "Sampling rate (Hz)" parameter in the "AD9680 Configuration" block. By default, this will be set to 4 GHz, but you can change it to any value up to the maximum supported by the ADC.
  • For the DAC, you can change the sampling rate by modifying the "Sampling rate (Hz)" parameter in the "AD9144 Configuration" block. Again, this will be set to 4 GHz by default, but you can change it to any value up to the maximum supported by the DAC.
In order to handle these different sampling rates you can use a "Rate Transition" block between ADC and DAC blocks. This allows you to decimate and interpolate the samples as needed to match the desire sampling rates.
Here are the steps to set different sampling rates for the ADC and DAC in Simulink:
  1. Insert a "Rate Transition" block between the output of the "AD9680" block (ADC) and the input of the "AD9144" block (DAC).
  2. Double-click on the "Rate Transition" block to open its properties.
  3. Set the "Output rate" parameter to the desired output sampling rate for the DAC.
  4. Set the "Input rate" parameter to the current sampling rate of the ADC.
  5. Change the "Output processing" parameter to the appropriate decimation or interpolation method to match the desired sampling rate.
  6. Save and run your Simulink model.
Note that setting different sampling rates for the ADC and DAC will affect the overall performance of your RFSoC system, and may require additional calibration or tuning to achieve optimal results.

Tags

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!