Main Content

Optimize timing controller

Timing controller entity for speed and code size

Model Configuration Pane: Global Settings / Coding style


Optimize timing controller entity for speed and code size by implementing separate counters per rate.


on (default) | off

Default: On


HDL Coder™ generates multiple counters (one counter for each rate in the model) in the timing controller code. The benefit of this optimization is that it generates faster logic, and the size of the generated code is usually much smaller.


The coder generates a timing controller that uses one counter to generate all rates in the model.


To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

Recommended Settings

No recommended settings.

Programmatic Use

Parameter: OptimizeTimingController
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2012a