AR# 2695: 2.1i 3.1i COREGEN, NCO: "WARNING: ...XilinxCoreLib/ncovht.vhd(xx): Function get_factor may complete without a RETURN"
AR# 2695
|
2.1i 3.1i COREGEN, NCO: "WARNING: ...XilinxCoreLib/ncovht.vhd(xx): Function get_factor may complete without a RETURN"
描述
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.