Hi all,
I have built a testbench in SIMULINK 2024b usaing the vision HDL toolbox for streaming in video from a test file (.avi) passing through a DUT and then displaying video using the video viewer.
When I try to run a simulation where I stream out 3 of my 1280x1024 8bit pixles from the file (by setting stop time to 36ms), convert to a pixel stream, convert back to a frame and view the video, it works! However, when I try to open the logic analyser to view my 6 logged signals after (or have it open before and run the simulation) MATLAB completely halts, and i have to force quit from the task manager.
From the task manager I can see the Memory consumed by MATLAB rise continually as if there is a memory leak. What is going on here?
Update:
I have removed more and more blocks in my design and have tracked the problem down i believe to the pixels to frame block
Above is a heavily simplified version of my design I/O. Video loaded in from file, converted to pixel stream, then back to a frame and into a display. However Running simulation crashes my matlab - but not immediately:
I open the design and configure my stop time to be equivalent to three frames worth, then I open the logic analyzer to view my logged signals. Then I commence the simulation. The 3 frames appear correctly in the video viewer, but my logged signals do not appear. Then a swirly Icon appears on my logic analyzer and there is a massive surge in memory usage from MATLAB (~20GB). I have to force quit the application.
Note: when I comment out the pixels to frame and video viewer, the logic analyser works completely fine for reading data out of the frame to pixels block
What is going on?