Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Record aggregates.

0 views
Skip to first unread message

Slawek Grabowski

unread,
Dec 9, 1998, 3:00:00 AM12/9/98
to
Hello,
Can anyone tell me, is it legal or not in VHDL'93:

type time_s is record
seconds: integer range 0 to 59;
minutes: integer range 0 to 59;
hours: integer range 0 to 23;
end record;

constant what_time: time_s:=(seconds=>0, minutes=>0,hours=>1,others=>0);

^^^^^^^
There is choice "others" and all elements of record are associated by name.

Some compilers accept the constract.


Regards,
Slawek G.


Edwin Naroska

unread,
Dec 10, 1998, 3:00:00 AM12/10/98
to
Hi,

Slawek Grabowski wrote:

Actually they shouldn't. Section 7.3.2.1 states that "... If the choice others is
given as a choice of a record aggregate, it must represent at least one element."


Edwin


0 new messages