Help to understand RF Data Converter clocking

Dear all,
I am starting to use SoC Blockset add-on and now figuring out how RF Data Converter block works.
For example I set the following parameters in RF Data Converter:
(Sample rate 1024 MSPS, Interpolation/Decimation 1, Samples per clock cycle 4 --> Stream Clock Frequency 256MHz)
The FPGA sampling time is also set to 7.1825e-9 to correspond to Stream Clock Frequency of 256MHz.
Then, in the timing manager we can see, that the RF Data Converter transmits (updates the output dacTxChy) with Stream Clock Frequency of 256MHz.
Now we can set Interpolation/Decimation to 2 (This changes Stream Clock Frequency to 128MHz. The FPGA sampling time is unchanged.
We can now see, that RF Data Converter updates the output dacTxChy with Stream Clock Frequency of 128MHz. This "eats" some of the FPGA samples, which is bad, so I am not sure this is how I should use this block.
The question is what Interpolation setting is done for and how to apply it? Is this ok that when I set the Interpolation parameter to the value different from 1 it seems like the actual sampling frequency just decreases without any benefits? Why not then just decrease Sample rate of RF Data Converter? Thank you!

 채택된 답변

Sanjay Boorle
Sanjay Boorle 2025년 5월 29일

2 개 추천

The FPGA sample time must always match the stream clock frequency shown on RF Data Converter block mask. From 23b, when you select "Behavioral" simulation mode, the block errors out if they do not match when you do model update or run simulation. The effect of interpolation/decimation mode is observed in simulation, only when you select "Behavioral" simulation mode. The interpolation filters interpolate the DAC input data by a factor selected in the block mask.
The RFDC block operates in frame mode, so the output sample time always matches the input, but the size of the data changes in "Behavioral" simulation mode. When samples per clock cycle is 4 and interpolation mode is 1, then size of the DAC output is 4x1 (a vector/frame with 4 elements). When samples per clock cycle is 4 and interpolation mode is 2, then size of the DAC output is 8x1 (a vector/frame with 8 (4*2) elements).
Hope this clarifies.
Thanks.

댓글 수: 4

Sergei
Sergei 2025년 6월 2일
Thank you! This is a perfect explanation.
Sergei
Sergei 2025년 6월 2일
So am I correct that the "Behavioral" simulation mode of RFDC is closer to what we will observe after the deployment?
Yes, you are correct.
Sergei
Sergei 2025년 6월 3일
Good to know!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Communications Toolbox에 대해 자세히 알아보기

제품

릴리스

R2024b

질문:

2025년 5월 12일

댓글:

2025년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by