8/3/2018 6:08 PM | |
Joined: 1/28/2009 Last visit: 6/8/2023 Posts: 6805 Rating:
|
Dear user,
All iterations of a loop(in STL) that is FOR in SCL is performed in one cycle of CPU and the result is available at the end of 100 iterations calculation.If you try extensive code section on a large number of iterations, the overall cycle time of CPU will be extended dramatically if it is not strong enough.To calculate the rough execution time, convert the SCL FOR loop program t o STL , find the instruction list(OP list) for the CPU you are using and calculate the values.Check THIS for execution time required for each instruction. The other easy way to calculate the execution time is testing the only loop section on a real CPU and check the cycle time each time that is a parameter in OB1. I hope it helps, hdhosseini
|
Last edited by: hdhosseini at: 8/3/2018 6:42:30 PMLast edited by: hdhosseini at: 8/3/2018 7:04:04 PM |
|
Follow us on