主要内容

原生浮点

R2026b
HDL Coder 原生浮点、支持的各种功能、如何进行设计建模、生成 HDL 代码并验证生成的代码

HDL Coder™ 原生浮点技术可从浮点设计生成 HDL 代码。以下是一些关键功能:

  • 生成可部署在任何 FPGA 或 ASIC 上的独立于目标的 HDL 代码。

  • 支持完整的 IEEE-754 特征集,包括非规范数、异常和舍入模式。

  • 广泛支持数学和三角函数模块。

与定点设计相比,浮点设计具有更高的精度、更大的动态范围和更短的开发周期。如果设计包含复杂的数学和三角运算,请使用原生浮点技术。

类

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

函数

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

模块

全部展开

Float Typecast blockFloat Typecast在无符号整数和浮点数据类型之间进行数据类型转换

模型设置

全部展开

使用浮点Use native floating-point library (自 R2023a 起)
延迟策略Specify latency strategy to use for floating-point values
处理非正规数Specify whether to handle denormal numbers
尾数乘法策略Specify how to implement mantissa multiplication operation
供应商特定浮点库Select vendor-specific floating-point library (自 R2023a 起)

主题

原生浮点基础知识

使用原生浮点进行代码生成

HDL 模块属性

疑难解答

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.

精选示例