UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 56984

2013.2 Vivado HLS - What is the support status of conversion between ap_[u]int and floating point types?

Description

What is the support status of conversion between ap_[u]int and floating point types?

Solution

The below table lists the supported conversion from (left column) and to (top row) with widths, or a note that it is not supported (NA):
 

AP_INT<N>(N>64) AP_INT<N>(N<=64) float double
float fptosi_32_64 fptosi_32_64
double dptosi_64_64 dptosi_64_64
AP_INT<N>(N>64) NA NA
AP_INT<N>(N<=64) sitofp_64_32 sitodp_64_64
AP_UINT<N>(N>64) AP_UINT<N>(N<=64) float double
float fptoui_32_64 fptoui_32_64
double dptoui_64_64 dptoui_64_64
AP_INT<N>(N>64) NA NA
AP_INT<N>(N<=64) uitofp_64_32 uitodp_64_64

AR# 56984
Date Created 08/05/2013
Last Updated 03/23/2015
Status Active
Type General Article
Tools
  • Vivado Design Suite - 2013.1
  • Vivado Design Suite - 2013.2