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 :
------------
entity testcase is
end testcase;
architecture bhv of testcase is
constant N : natural := 8;
begin -- bhv
stimuli : process
variable n : natural := 0;
begin
for i in 0 to 1000 loop
n := (n+1) rem N; -- SIGFPE error. Replace N by 8 and it works.
report "n=" & natural'image(n);
end loop;
wait;
end process;
end bhv;
----------
Thanks and long life to GHDL !
--
Jean-Christophe Le Lann
Enseignant-chercheur - Equipe IDM/STIC
ENSTA-Bretagne
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss