Input Sample rate of HDL LTE Cell Search module

2 次查看(过去 30 天)
Hi,
I'm working with LTE HDL Cell Search example to generate VHDL code. (LTE HDL Cell Search)
When simulating the VHDL code generated by Matlab on Vivado, I see that every sample at the input takes 2 cycles of clock like the image below.
The document said that the input sample rate is 30.72 Msps, I understand that 30.72 Msps is the sample rate of ADC and different with clock rate, it makes me a little bit confused about why the sample takes 2 cycles clock here because in the actual case, it takes only 1 cycle clock?
Could you help me with my problem?
Thank you so much!

采纳的回答

Garrey Rice
Garrey Rice 2021-2-9
The HDL code generated by the LTE HDL Cell Search model requires a clock rate of at least twice the input sampling rate. Therefore if the input sampling rate is 30.72 MHz (as modeled in Simulink) then a clock rate of at least 61.44 MHz is required. There are Upsample blocks in the ltehdlCellSearch/Cell Search HDL/Downlink Sync Demod (ltehdlDownlinkSyncDemod) subsystem which raise the sampling rate from 30.72MHz to 61.44MHz. HDL Coder recognises that this is the highest rate in the design and designates it as the clock rate. This is reflected in the HDL testbench and explains why the data being passed into the design only changes every two clock cycles.
  1 个评论
Tuan Hoang Dinh
Tuan Hoang Dinh 2021-2-10
Hi Garrey Rice,
Thanks for spending time with my problem.
From your answer, I have understood the way block works.
Best regards,
Tuan

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 HDL Coder 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by