Main Content

Optimize timing controller

Timing controller entity for speed and code size

Model Configuration Pane: Global Settings / Coding style

Description

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

Settings

on (default) | off

Default: On

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.

off

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

Tips

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