On Fri, 2013-04-26 at 17:41 +0200, Jean-Christophe Le Lann wrote:
> Hi all !
> 
> I hit a bug in an old version of GHDL :
> GHDL 0.29 (20100109) [Sokcho edition]
> Compiled with GNAT Version: 4.6
> 
> Can anybody tell me if it fixed in newer versions ?
> 
> Here is the testcase :

>    constant N : natural := 8;
>      variable n : natural := 0;
>        n := (n+1) rem N; -- SIGFPE error.

You are aware that VHDL is not case-sensitive, right? Therefore n and N
are identical and this testcase cannot possibly work under any
simulator.

It is possible that GHDL's handling of this error could be improved;
GHDL generally works very well on valid VHDL, but it is not always
bombproof when given incorrect code.

For example, replace N with NN throughout and it works.

- Brian


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

Reply via email to