DSP Builder for Intel® FPGAs (Advanced Blockset): Handbook

ID 683337
Date 12/04/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.13.11. Fixed-point Maths Functions

This design example demonstrates how the Math, Trig and Sqrt functions support fixed-point types and the fixed-point Divide function. You can use fixed-point types of width up to and including 32 bits.

DSP Builder generates results using the same techniques as in the floating point functions but at generally reduced resource usage, depending on data bit width. Outputs are faithfully rounded. If the exact result is between two representable numbers within the data format, DSP Builder uses either of them. In some instances you see a difference in output result between simulation and hardware by one LSB. To get bit-accurate results at the subsystem level, this example uses the Bit Exact option on the SynthesisInfo block.

The model file is demo_fixed_math.mdl.