Simulink: 5G NR MIB Recovery Example Providing external inputs

1 次查看(过去 30 天)
MATLAB: 2022b
OS: Windows 11
Device: ZCU 111 RFSoC
I am working with the example provided by matlab on Xilinx RFSoC devices:
I have loaded bitstream on the device, following which the software model is generated. I would like to provide the model custom inputs for my test case and run it on the hardware.
I do see that I could provide the signal in write event block, as the received signal, but I was wondering if there would be any methods to provide my external inputs here. Thank you.

回答(2 个)

Bhanu Medasani
Bhanu Medasani 2023-11-9
Hi Danna,
You can follow this example Transmit Signal Waveform Using DDR4 on Xilinx RFSoC Device - MATLAB & Simulink (mathworks.com) , where we showcase how to transmit a waveform provided from a file in MATLAB. In this example the processor uses a bin file copied to SDCard and reads it and moves the data to DDR. You can use this mechanism in the 5G MIB recovery example to feed the required input signal inplace of the "burstWaveform" workspace variable.
Next you can build the model in deployment mode and follow the sequence for each of the test input.
  1. copy the model.elf file to the target.
  2. copy the test.bin for the 1st test.
  3. Run the model.elf and use the test.bin as input.
  4. Once the test results are obtained, kill the model.elf.
  5. repeat steps 2-4 for each of your test inputs.
Please revert if your issue is not addressed or you need more information.
Kind Regards,
Bhanu Medasani

Bhanu Medasani
Bhanu Medasani 2023-11-9
Hi Danna,
Would like to know if you have access to latest version of MathWorks tools (2023b release), if so we could suggest a better solution.
Regards,
Bhanu Medasani.
  1 个评论
Danna
Danna 2024-1-21
Hi Bhanu,
Thank you for the support, your reply flew under my radar. MATLAB Support with Vivado for this particular example is at 2022b, for Xilinx Vivado 2021.3 hence upgrading for this solution is not an option. However, I follow the example you provided and update you with my findings.
Thanks,
Danna

请先登录,再进行评论。

类别

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

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by