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

2.1i 3.1i COREGEN, NCO: "WARNING: ...XilinxCoreLib/ncovht.vhd(xx): Function get_factor may complete without a RETURN"

Description

Keywords: coregen, generator, get_factor, nco

Urgency: standard

General Description:
Compiling the VHDL simulation models extracted by get_models for CORE
Generator module behavioral simulation in MTI results in the following warning
message from ModelSim:


# -- Compiling entity ncovht
# -- Compiling architecture behv of ncovht
# WARNING[10]: c:/solntest/current/lib/XilinxCoreLib/ncoiqvht.vhd(111): Function get_factor may complete without a RETURN at line 107.

# -- Compiling entity ncovht
# -- Compiling architecture behv of ncovht
# WARNING[10]: c:/solntest/current/lib/XilinxCoreLib/ncovht.vhd(90): Function get_factor may complete without a RETURN at line 86.

解决方案

The warning is alerting the user to the fact that there are conditions
defined in the function called "get_factor" which may allow
the behavioral model to terminate from within the function call instead
of returning back to the place in the model where the function was
originally called.

This is simply reporting a coding style issue which does not affect
correct functioning of the model, so it can be ignored.
AR# 2695
创建日期 08/18/1997
Last Updated 08/29/2001
状态 Archive
Type 综合文章