Hi everyone,
I have made a model in MATLAB R2012a using Simulink which designed to convert RGB to gray video !
It's a simple model but in run-time on DSP 6437 it's works very slow.
What's wrong with my model or my DSP ?!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone,
I have made a model in MATLAB R2012a using Simulink which designed to convert RGB to gray video !
It's a simple model but in run-time on DSP 6437 it's works very slow.
What's wrong with my model or my DSP ?!
Amirhossein Gharib,
Since the device is a DM6437 and the question concerns video, this may be best asked in the E2E DM64x Forum.
If you are saying that Matlab generates code that does not run well on the DSP, then you may want to ask Matlab about either their code generation or their SImulink.
Do you have cache enabled?
Are you using video ports or peripherals for the device, or simply DSP code running on the C64x+ fixed-point DSP core?
What have you been able to determine is the area in which the slow operation occurs? Your debug experience will be vital to solving this problem.
Regards,
RandyP
Thank you Mr.RandyP
I don't know what is cache enable, how i can configure it with Matlab ?
Also I'm using video port from a camera but I'm not using peripheral devices.
I have no idea why generated code from my model in Matlab works slow. can you give me some hints ? and how i can optimized it to run fast enough for real-time performance ?
Amirhossein,
I will request a Moderator to move this to the DM64x forum for your convenience.
If you are using a camera to supply video, then you are using a peripheral port to bring in that video.
You will want to contact Matlab to see if they generate code to bring that video into the device using a video port or some other method. I cannot determine that from what you have said in your posts here.
If you are expecting Matlab to generate all of the code for you, then that will include device configuration which include the L1P, L1D, and L2 cache configurations.
Regards,
RandyP