On Tue, Jul 08, 2008 at 12:16:41PM -0300, Salvador Eduardo Tropea wrote:
> Hello!
> 
> Trying to analyze the attached code I get:
> 
> $ ghdl -a error.vhdl
> error.vhdl:16:17: choice must be locally static expression
> ghdl: compilation error
> 
> Here the choice is B and this is a constant! even when B is derived from
> another constant it doesn't mean it can change at all.
> What exactly means "locally static expression"? B looks locally static
> to me, but I don't know what exactly means for GHDL.

Hi,

unfortunately GHDL is correct.  B is not a locally static constant as it is
defined through an aggregate.
See LRM 7.4.1 for details about staticness.

Tristan.

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to