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

8.2 AccelDSP Synthesis Tool - "Round" Quantizer giving Incorrect Results in MATLAB 2006a


The functional behavior of "round" in the "quantizer" function does not work the same in MATLAB 2006a (7.2) as in MATLAB 7.1 (R14). RTL Simulations do not match the FixedPoint Simulations.


Beginning with MATLAB 2006a, MathWorks changed the functional behavior of "round" for the "quantizer" function. The behavior is now implemented using "nearest." Thus, wherever the string "round" was used in MATLAB's 7.1 (R14) release, you have to use "nearest" in the 2006a release. 


A fix is coming in the 9.1 Release that will convert the Quantizer Directives that use "round' to use "nearest." Until then you must replace "round" with "nearest" manually if using MATLAB 2006a, or stay with MATLAB 7.1(R14).

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