Propagation of signals in RF Data Converter block in simulation and on hardware
Show older comments
Dear all,
I am using SoC Blockset to design a simple receiver using AMD Zynq Ultrascale+ ZCU111 evaluation board. The relevant model is attached.
The word lengths for data converters on this board are 14bit for DAC and 12bit for ADC. That means, that when a digital code Ddac is fed to DAC, and the converted signal is loopbacked to ADC, the new digital code for this signal will be Dadc = Ddac/4.
However, if we simulate the model attached, we can see, that even though the HW board is set to be ZCU111, the output of adcT0Ch0Data is the same as the input to dacT0Ch0Data, of the length of 14 bits. This does not make sense to me, as I have two possibilities then:
1) Treat this signal from ADC as 14-bit. Then the logic in simulation is ok, but when I generate the code, real ADC wordlength will be 12-bit, so the design will not be suitable.
2) Convert this signal to 12-bit. for example the output of ADC is 00011011101010, I convert it to 12bit and get the result of 000110111011 (last bit becomes 1). But then on the HW, when I will convert the signal like this, the wordlength will be truncated from 12 to 10.
Could you, please, explain, why are they same and how a design with RF Data Converter set up like in the attached model will behave on the board when deployed?
Thank you!
UDP: RFDC must be set to "behavioral" mode - this makes the propagation more realistic, and signal from ADC actually is supposed to be a 16bit long, even though the resoilution is only 12bit (the 12bit ADC result is alligned to 16bit word, so there is no need to extract the 12bits).
Accepted Answer
More Answers (0)
Categories
Find more on Hardware I/O Devices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
