Contenido principal

Native Floating Point

R2026b
HDL Coder native floating-point, the various features supported, how to model your design, generate HDL code, and verify the generated code

HDL Coder™ native floating-point technology can generate HDL code from your floating-point design. These are some of the key features:

  • Generation of target-independent HDL code that you can deploy on any FPGA or ASIC.

  • Support for the full range of IEEE-754 features including denormal numbers, exceptions, and rounding modes.

  • Extensive support for math and trigonometric blocks.

Floating-point designs have better precision, higher dynamic range, and a shorter development cycle than fixed-point designs. If your design has complex math and trigonometric operations, use native floating-point technology.

Classes

hdlcoder.FloatingPointTargetConfigFloating-point target configuration for floating-point library
hdlcoder.FloatingPointTargetConfig.IPConfigIP settings for selected floating-point configuration

Functions

createFloatingPointTargetConfigCreate floating-point target configuration for floating-point library that you specify

Blocks

expand all

Float Typecast blockFloat TypecastTypecast data between unsigned integers and floating-point data types

Model Settings

expand all

Use Floating PointUse native floating-point library (Since R2023a)
Latency StrategySpecify latency strategy to use for floating-point values
Handle DenormalsSpecify whether to handle denormal numbers
Mantissa Multiply StrategySpecify how to implement mantissa multiplication operation
Vendor Specific Floating Point LibrarySelect vendor-specific floating-point library (Since R2023a)

Topics

Native Floating-Point Fundamentals

Code Generation with Native Floating-Point

HDL Block Properties

Troubleshooting

Optimize Generated HDL Code for Multirate Designs with Large Rate Differentials

Causes and possible solutions for fixing HDL code generation issues with multirate models that have large rate differentials.

Featured Examples