Skip to content

Time

The Time tab shows the estimated execution time of the model on every processor and compares it with the sample time Ts of the model. It is the tab the estimator opens with.

The Time tab

The chart

"Estimated Execution Time": one pair of bars per processor ("Target"), blue for Linear Code and green for RTOS Code, see How the estimate works.

  • The bar is the average time, the whisker reaches from the minimum to the maximum.
  • The tool tip of a bar shows all three values, e.g. "TMS320F28335, Linear Code: min 9.10 / avg 10.20 / max 11.55 µs".
  • The tool tip of a legend entry explains how linear and RTOS code count the blocks.
  • Faded bars belong to a processor whose block coverage is incomplete: their estimate is too low, see Coverage.
  • The line Ts marks the sample time of the model. If Ts is above the range of the chart, it is drawn at the top as "▲Ts": every processor is then well below Ts.

A processor whose CPU clock is not valid has no bars.

Below the chart

One column per processor:

Row Meaning
Target The processor
Block Coverage Covered blocks / all blocks of the model; red if incomplete, see Coverage
CPU Clock [Hz] The clock the cycles are converted with, see CPU clock
Load (max) The worst-case CPU load, see Load

CPU clock

The time is the number of cycles divided by the CPU clock. The field starts with the maximum clock of the processor. Enter the clock your application actually runs at, e.g. 150E6 or 1.2E9; a decimal comma is accepted as well.

The new value is applied on Enter or when you leave the field. A value that is not a positive number turns the field red; that processor's bars disappear and its load shows "-".

Load

"Load (max)" is the maximum time of the linear code divided by Ts: the share of a sample step that the blocks take in the worst case, when all of them run in the same step.

Load Shown
below 80 % in the normal text color
from 80 % in orange: little room left for the code around the blocks
above 100 % in red: the blocks do not fit into Ts

The code around the blocks is not included, see How the estimate works, so plan for a load clearly below 100 %.