Re: [vhdl-200x] VHDL-2008: Records and aggregates

From: Tristan Gingold <tgingold@free.fr>
Date: Fri Apr 10 2015 - 23:28:58 PDT
On 10/04/15 22:24, Jim Lewis wrote:
> Hi Tristan,
> Here are a few more details, the following are defined in a package.
> For the whole package, see:
> http://www.synthworks.com/downloads/AggregateIssuePkg.vhd

[...]

> In the second function, the return statement:
>      return to_string( (Data, ErrorMode) ) ;
>
> With VHDL-2008 is now ambiguous since "(Data, ErrorMode)" can be
> interpreted as a record, of a type such as UartStimType, or it can be
> interpreted as a single std_logic_vector.

No, almost nothing has changed since 87.  Even in VHDL-87 (if there
were a to_string [slv return string] function), this would have
been ambiguous because the type of an aggregate is determined by
the context, not by the aggregate itself.  So even VHDL-87 ight
consider (Data, ErrorMode) as single std_logic_vector (but will
then report an error on the elements).

Regards,
Tristan.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Apr 10 23:29:09 2015

This archive was generated by hypermail 2.1.8 : Fri Apr 10 2015 - 23:29:52 PDT