主要内容

FPGA 浮点库

R2026b
映射到 Altera® 和 AMD® FPGA 浮点库

您可以映射到浮点库来综合浮点设计,而无需从浮点设计转换为定点设计。消除此转换步骤可减少数据精度损失,并使您能够对更宽的动态范围进行建模。

如果模型设计使用 Single 或 Double 数据类型,请使用 FPGA 浮点目标库为 Simulink® 模型生成代码。HDL Coder™ 可以将您的设计映射到原生浮点库和供应商特定的 FPGA 浮点库,例如 Altera 或 AMD FPGA 浮点库。同时使用原生浮点和供应商特定 IP 可以更高效地利用 FPGA 上的资源,例如硬化的 DSP 浮点加法器或乘法器基元,这样就可以在 FPGA 结构中实现更大的设计。这种混合设计对于大型复杂模型是有利的。

类

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

模型设置

全部展开

使用浮点Use native floating-point library (自 R2023a 起)
供应商特定浮点库Select vendor-specific floating-point library (自 R2023a 起)

主题