Scalarize Vector Ports option get the HDL code running time is infinite

1 view (last 30 days)
Hello There,
I'm working on converting Matlab code to VHDL through HDL Coder, and I turned the option of Scalarize Vector Ports, but the program still running from 2 days, and the code didn't generate yet.
Please notes the code could be converted to VHDL code without Scalarize Vector Ports option within 10 mins
So do you have any suggestions could help me to get this code converting with Scalarize option at reasonable time.
I'm using Matlab 2015a at windows 7 - 64Bit, with 16 Gb Ram
I have 33 vectors [ double (1x1000000)].
The programs is still running from 8 days, and didn't finish yet. Do you have any suggestions ?!!!
Thanks,

Answers (1)

Kiran Kintali
Kiran Kintali on 30 Oct 2023
You have unsynthesizable IO in your model. Please consider IO optimization to convert the frame model to sample model manually or using automatic frame to sample conversion. This IO workflow is now automated in HDL Coder.
HDL Code Generation from Frame-Based Algorithms
Platforms that have limited I/O like FPGA or ASIC devices typically process large datasets as streaming pixels or samples. To deploy a frame-based model onto these devices, you must manually translate your algorithms to operate on streams of data. You can automate this process and generate HDL code from frame-based models or MATLAB® functions with matrix inputs by using the frame-to-sample optimization in HDL Coder™. This optimization converts frame-based vector or matrix inputs to smaller-sized samples or pixels for HDL code generation to target stream-based hardware and reduce the FPGA I/O needed to handle large input and output signals. You can optimize designs for hardware while reducing algorithm development time for various use cases in domains that have large inputs, such as image processing, digital signal processing, radar applications, and audio processing.
When you use the frame-to-sample optimization, HDL Coder generates hardware-ready HDL code from frame-based algorithms that has the necessary logic to store samples inside the DUT in line buffers, align streams, and balance data paths. You can use multiple modeling patterns, such as element-wise operations, neighborhood operations, and iterative and reduction operations, to author frame-based algorithms supported by the frame-to-sample optimization.

Community Treasure Hunt

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

Start Hunting!