On Wed, Dec 16, 2009 at 01:23:26PM +0100, Nigel noldsworth wrote:
> Hello,
>
> I've tried the example given here
> http://www.mail-archive.com/[email protected]/msg00217.html
>
> $ ghdl -i disp_value.vhd
> $ ghdl -m disp_value
> $ ./disp_value
> tipd_i = (0 ns, 0 ns)
>
>
> $ ./disp_value --sdf=max=disp_value
>
> raised CONSTRAINT_ERROR : grt-vital_annotate.adb:485 index check failed
>
> As you can see it fails. Has anyone got any luck with it ? I'm using
> ghdl-0.28-0.130svn.0.fc12.i686
Hi,
you have found a bug in the annotator. As a work-around, set the path to
annotate: use --sdf=max=/=disp_value1.sdf
Also, the example was not complete. Try with this one:
library ieee;
use ieee.vital_timing.all;
use ieee.std_logic_1164.all;
entity disp_value is
generic (tipd_i : VitalDelayType01 := (0 ns, 0 ns));
port (i : std_logic);
end disp_value;
use std.textio.all;
architecture behav of disp_value is
begin
process
variable l : line;
begin
write (l, string'("tipd_i = ("));
write (l, tipd_i (tr01));
write (l, string'(", "));
write (l, tipd_i (tr10));
write (l, ')');
writeline (output, l);
wait;
end process;
end behav;
Tristan.
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss