IP PortfolioDatapath and DSPfloating point

of_fp2int

Floating-point to fixed-point converter

Maturity simulatedTargets FPGA + ASICDifficulty MediumPriority 1

IEEE 754 to integer / fixed-point conversion with round-to-nearest-even or round-toward-zero and saturation (NaN -> max positive, RISC-V convention).

Simulated. The RTL is lint clean and passes its self-checking testbench against a reference model in simulation. It has not been run on an FPGA board or in silicon.

Interfaces

PortDirectionKindWidthNotes
ainparallel32 
youtparallel32 

Standards

  • IEEE 754-2019

More in floating point

IDBlockMaturity
of_fp_addFloating-point adder/subtractorsimulated
of_fp_mulFloating-point multipliersimulated
of_fp_roundFloating-point round & pack unitsimulated
of_int2fpFixed-point to floating-point convertersimulated
of_fp_fmaFloating-point fused multiply-addsimulated
of_fp_divsqrtFloating-point divide and square rootsimulated
of_fp_cmpFloating-point compare, min/max and classifysimulated
of_fp_cvtFloating-point format convertersimulated
of_bf16_dotpbfloat16 dot-product unitsimulated
of_fp8_macFP8 (E4M3 / E5M2) multiply-accumulatesimulated