how to use matlab to select processor for the implementation (in hardware) of a script
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a script, that I will eventually put inside a microcessor. Is there anything I can do in matlab in order to obtain some info about what type of processor I need to choose (clock speed (MIPS), single/multiple core, SRAM, etc)
I used
LASTN = maxNumCompThreads(1);
in order to force the use of only 1 thread, and extrapolate flops operations to runing time using clock speed in order to obtain an aproximation and then divide it by target processor clocks speed, so i can obtain an estimation of running time there, but as you can expect, I didn't get reliable results. For instance, in my 2.7 Ghz Intel Core i7, my script took 10s to run, Now, by doing this:
t=10;%s
cs=3300;%MHz, that is the frequency at which it run the script
flops=t*cs*1e6;%MIPS
target_p=40*1e6;%Example MIPS
t_target=flops/target_p
t_target_min=t_target/60
So, if this is correct (which I don't think so), my 10s script will take 14 min to run in a processor with 40 MIPS.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!