On 01/06/2012 06:48 AM, David Koontz wrote:
On Jan 6, 2012, at 12:17 PM, Walter F.J. Mueller wrote:
on ghdl-discuss in July 2007. Unfortunately all written there still
holds, one gets an error like
tb_x:error: x_tsim.sdf:9:16: ':' (colon) expected
and ghdl aborts. ghdl doesn't accept the sdf files generated by the ISE
tool chain.
I take it this was you? bug #9597 https://gna.org/bugs/?9597
Nope, that wasn't me.
Nevertheless, ghdl refuses to accept sdf files generated by the
Xilinx tool chain. The 'Voltage' and 'Temperature' specs like
(VOLTAGE 1.14)
(TEMPERATURE 85)
cause an errors like "9:16: ':' (colon) expected"
If thats commented out, one gets for specs like
(DELAY
(ABSOLUTE
(IOPATH I O ( 100 )( 100 ))
an error like "16:30: parse error"
I had a look into the sdf specification, see
http://www.eda.org/sdf/sdf_3.0.pdf
It states that a Voltage Entry has the format
voltage ::= ( VOLTAGE rtriple )
||= ( VOLTAGE RNUMBER )
Apparently ghdl only accepts the 'rtriple' form min:typ:max
and refuses the single value form.
The SDF spec also states that delay specifications (delval's) can
be given either as single values or rtriple's, but that use of single
values and triples should not be mixed in the same SDF file.
A little experimentation showed that ghdl accepts
(IOPATH I O ( 1199 ))
but refuses
(IOPATH I O ( 100 )( 100 ))
and requires that this is stated as
(IOPATH I O ( 100:100:100 )( 100:100:100 ))
or
(IOPATH I O ( :100: )( :100: ))
From all that I conclude that the sdf parser in ghdl seems to have
some problems with the proper treatment of RNUMBER and rtriple and
seems to require rtriple's even though the SDF spec clearly does not
require that.
Having seen that I modified the tool generated sdf file and replaced
lines like
(IOPATH I O ( 100 )( 100 ))
with
(IOPATH I O ( :100: )( :100: ))
ghdl now runs, and inspection with gtkwave indicates that now a
simulations with delays was done.
The Voltage/Temperature issue was described under
https://gna.org/bugs/?9597
but I submitted a new bug report
https://gna.org/bugs/?19255
which connects the symptoms and the SDF spec a bit more.
With best regards, Walter
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss