Use Floating Point - Specify use of native floating-point library - MATLAB (original) (raw)
Main Content
Specify use of native floating-point library
Since R2023a
Model Configuration Pane: Floating Point
Description
Use the native floating-point library in your design. You can specify the latency strategy and whether to handle denormal numbers in your design. See Latency Strategy and Handle Denormals.
Settings
off
(default) | on
Default: Off
on
Map your design to the native floating-point target library.
off
Do not map your design to the native floating-point target library.
Tips
To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.
For example, you can enable the UseFloatingPoint
setting when you generate HDL code for the symmetric_fir
subsystem inside the sfir_single
model by using either of these methods:
- Pass the property as an argument to the
makehdl
function.
makehdl('sfir_single/symmetric_fir', ...
'UseFloatingPoint','on') - When you use
hdlset_param
, set the parameter on the model and then generate HDL code by usingmakehdl
.
hdlset_param('sfir_single','UseFloatingPoint','on')
makehdl('sfir_single/symmetric_fir')
Recommended Settings
No recommended settings.
Programmatic Use
Parameter: UseFloatingPoint |
---|
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2023a