Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
alias declaration
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bernhard Mohr  
View profile  
 More options Dec 9 1998, 3:00 am
Newsgroups: comp.lang.vhdl
From: Bernhard Mohr <bernh...@diagonal.ch>
Date: 1998/12/09
Subject: alias declaration
An alias is declared like this (LRM 4.3.3):

        alias_declaration::=
                alias alias_designator [: subtype_indication]
                is name [signature];

later int the LRM (4.3.3.2 b) there is written:

        A signature is required if the name denotes a subprogram
        (including an operator) or enumberation literal.

How can a enumeration literal be a name? Is it legal to have
the following alias defined ?

        alias zero is true [return boolean];
        alias low is '0' [return bit];

Maybe the correct syntax declaration of an alias shoud be

        alias_declaration::=
                alias alias_designator [: subtype_indication]
                is name | enumeration_literal [signature];

Benny

 ___________________________________________________________

      _/_/_/_/     _/_/_/     DS Diagonal Systems AG
     _/     _/   _/           Bernhard Mohr
    _/     _/     _/_/        Tumigerstrasse 71
   _/     _/         _/       CH-8606 Greifensee
  _/_/_/_/     _/_/_/         Switzerland
                              Phone : +41-1-905-6060
    DIAGONAL SYSTEMS          Fax   : +41-1-905-6069
                              Email : bernh...@diagonal.ch
___________________________________________________________


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mench  
View profile  
 More options Dec 11 1998, 3:00 am
Newsgroups: comp.lang.vhdl
From: me...@mench.com
Date: 1998/12/11
Subject: Re: alias declaration

Bernhard Mohr <bernh...@diagonal.ch> wrote:
> An alias is declared like this (LRM 4.3.3):
>    alias_declaration::=
>            alias alias_designator [: subtype_indication]
>            is name [signature];
> later int the LRM (4.3.3.2 b) there is written:

>    A signature is required if the name denotes a subprogram
>    (including an operator) or enumberation literal.
> How can a enumeration literal be a name? Is it legal to have
> the following alias defined ?

An enumeration literal can either be an identifier (for example, True)
or a character literal (for example, '0').

An identifier is a name (see Chapter 6).

A character literal can be part of a name; for example, it is part of
a selected name: Std.Standard.'0' (which is ambiguous, since it can
denote either the literal in Std.Standard.Bit or Std.Standard.Character).

But a character literal is not a name (again, see Chapter 6).

>    alias zero is true [return boolean];
>    alias low is '0' [return bit];

The first example is legal, the second is not (since '0' is not a name).

> Maybe the correct syntax declaration of an alias shoud be
>    alias_declaration::=
>            alias alias_designator [: subtype_indication]
>            is name | enumeration_literal [signature];

Perhaps; the only thing this change allows is to make the second
example legal.  Note that

        alias low is ieee.std_logic_1164.'0' [return std_ulogic];

is legal in either formulation.

Regards,

Paul

--
Paul Menchini          | me...@mench.com | "Se tu sarai solo,
Menchini & Associates  | www.mench.com   |  tu sarai tutto tuo."
P.O. Box 71767         | 919-479-1670[v] |   -- Leonardo Da Vinci
Durham, NC  27722-1767 | 919-479-1671[f] |


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »