![]() |
|
![]() |
|
Answers Database
2.1i COREGEN, NCO: "WARNING: ...XilinxCoreLib/ncovht.vhd(xx): Function get_factor may complete without a RETURN"
Record #2695
Product Family: Software 2.1i COREGEN, NCO: "WARNING: ...XilinxCoreLib/ncovht.vhd(xx): Function get_factor may complete without a RETURN" Problem Description: 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 comp lete 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 complet e without a RETURN at line 86. Solution 1: 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. End of Record #2695 - Last Modified: 09/07/99 09:27 |
| For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips! |