System Generator: HDL Black Box include mem files.
Show older comments
I have successfully managed to wrap up most of my HDL cores in black boxes in Simulink. They can be successfully simulated and synthesized with System Generator. I've done all this using this user guide.
One block I am having issue wrapping up is a FIR filter for which I have specified window coefficients in .mem files for the BRAM's to load. Now, to add all the VHDL source files the black box needs for compilation/simulation, I used the following commands in the black box configuration MATLAB script (see page 186 of the linked document):
addFile("filename");
addFileToLibrary("filename","library");
These commands successfully add VHDL source files to the Vivado project (in the correct library) that System Generator produces. If I try to include a '.mem' file using the above commands however, it does not add it and synthesis down the line will complain that I do not have the required memory files in my Vivado project (obviously).
No where in that linked document is there mention of how to include memory files so I am reaching out to see whether I am missing something or there is a way in which one ought to overcome this hurdle.
PS. I've asked this question in both the Xilinx Community forum and the Xilinx Reddit page but have received no answer as yet... which is why I am asking here.
Thank you.
Accepted Answer
More Answers (1)
Kiran Kintali
on 30 Apr 2021
0 votes
Are you referring to Xilinx System Generator (XSG) model usecase here? Can you share the model with the issue? What release are you using?
5 Comments
Talon Myburgh
on 30 Apr 2021
Kiran Kintali
on 30 Apr 2021
A sample model that can reproduce the issue would help the team suggest a workaround or address the issue. Thanks
Talon Myburgh
on 30 Apr 2021
Talon Myburgh
on 3 May 2021
Kiran Kintali
on 5 May 2021
Thanks for the additional info. Waiting to hear from Xilinx team. No update yet.
Categories
Find more on AMD FPGA and SoC Devices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!