Clear Filters
Clear Filters

HDL coder simulation for video processing takes very long time. Is there way to do it faster ?

4 views (last 30 days)
I have discrete-time settings with fixed step of 1. The frame size of video input 480 x 640.

Accepted Answer

Bharath Venkataraman
Bharath Venkataraman on 26 May 2017
This is because of the pixel level processing. 480x640 translates to over 300K pixels per frame (not including blanking). Are you using Vision HDL Toolbox for this simulation with Frame To Pixels and Pixels To Frame blocks? If so, you have two options: 1. In Simulink, make sure that the model is in Accelerator/Rapid Accelerator mode. 2. Use a smaller image (say 60x80) to prove out your algorithm and run it on the larger frame size when you get to FPGA-in-the-Loop.
  1 Comment
Mohammed Shameem Hussain
Mohammed Shameem Hussain on 30 May 2017
Thank you for your reply, yes that rapid mode works but it fails if I tried to implement the complex algorithm.
Error: Rapid Accelerator fails
IC:/PROGRA~1/MATLAB/R2017a\rtw\c\raccel -IC:/PROGRA~1/MATLAB/R2017a\rtw\c\src\rapid -w -noregistrylookup -nodeclspec TwoDimHaarWaveletTrans_1level_capi.c cpp: twodimhaarwavelettrans_1level_capi.c:41 compiler limit: line too long (more than 20253 chars)

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!