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# 22975

8.1 AccelDSP Synthesis Tool - How can I find out if I am running Verify -floatingpoint or Verify -fixedpoint in MATLAB code?

Description

How can I find out if I am running Verify -floatingpoint or Verify -fixedpoint in MATLAB code?

Solution

You can check if the variable AccelVerifyFixedPoint is defined or not. This is a global variable and needs to be declared before being used. For example: 

 

% At the top of your file 

global AccelVerifyFixedPoint;  

 

% Use this conditional anywhere in the script 

if ~isempty(AccelVerifyFixedPoint) 

% This is Verify -fixedpoint 

else 

% This is Verify -floatingpoint 

end

AR# 22975
Date Created 09/04/2007
Last Updated 05/20/2014
Status Archive
Type General Article