- copy the model.elf file to the target.
- copy the test.bin for the 1st test.
- Run the model.elf and use the test.bin as input.
- Once the test results are obtained, kill the model.elf.
- repeat steps 2-4 for each of your test inputs.
Simulink: 5G NR MIB Recovery Example Providing external inputs
1 view (last 30 days)
Show older comments
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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1531877/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1531877/image.png)
0 Comments
Answers (2)
Bhanu Medasani
on 9 Nov 2023
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.
Please revert if your issue is not addressed or you need more information.
Kind Regards,
Bhanu Medasani
0 Comments
Bhanu Medasani
on 9 Nov 2023
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!