Re: [vhdl-200x-ft] problem with initial value

From: David Bishop <dbishop_at_.....>
Date: Mon Aug 14 2006 - 17:31:21 PDT
Guilherme Jorge wrote:
> Hi Guys!
>  
>      Im having problems with my practical tests, the quartus software 
> give me the following lines:
> Warning (10632): VHDL Subprogram Body warning at float_pkg_c.vhd(2687): 
> value of variable "fract_in" used in Subprogram Body expression may 
> depend on variable's default initial value because variable may not be 
> assigned a value in the statements preceding the variable's use in the 
> expression

The issue here is that some synthesis tools support initial values for 
variables, and some don't.  When I wrote the "float_pkg_c.vhd" file, I 
wrote it to IEEE 1076.6 (standard synthesis) which allows for initial 
values for variables.

Two ways to fix.  First, use a newer version of Quartus, which may 
support initial values for variables. Second, initialize the variables 
after the "begin" statement to what they are initialized to in the 
variables list.

-- 
NAME:     David W. Bishop           INTERNET: dbishop@vhdl.org
Received on Mon Aug 14 17:31:23 2006

This archive was generated by hypermail 2.1.8 : Mon Aug 14 2006 - 17:31:35 PDT