Latency Strategy
Specify minimum or maximum latency
Model Configuration Pane: Floating Point
Description
Specify whether you want the design to map to minimum or maximum latency with native floating-point libraries.
Dependencies
To specify this parameter, select Use Floating Point.
Settings
MAX (default) | MIN | ZERODefault: MAX
The options are:
MINMaps to minimum latency for the native floating-point libraries.
MAXMaps to maximum latency for the native floating-point libraries.
ZERODoes not use any latency for the native floating-point libraries.
Tips
To specify the latency strategy:
Create a floating-point target configuration object for
Native Floating Pointas the floating-point library.fpconfig = hdlcoder.createFloatingPointTargetConfig('NativeFloatingPoint');Specify the
LatencyStrategyproperty of theLibrarySettingsattribute of the floating-point target configuration object.fpconfig.LibrarySettings.LatencyStrategy = 'MIN';Set the floating-point target configuration on the model and then generate HDL code. This example shows how to set the configuration on the
sfir_singlemodel and generate HDL code for thesymmetric_firsubsystem:hdlset_param('sfir_single','FloatingPointTargetConfig',fpconfig) makehdl('sfir_single/symmetric_fir')
Recommended Settings
No recommended settings.
Programmatic Use
Parameter:
LatencyStrategy property of LibrarySettings
attribute of hdlcoder.FloatingPointTargetConfig object |
| Type: character vector |
Values:
'MAX' | 'MIN' |
'ZERO' |
Default:
'MAX' |
Version History
Introduced in R2020b