overloading 'operators in VHDL

Discussion in 'VHDL' started by Dolphin, Sep 13, 2007.

  1. Dolphin

    Dolphin Guest

    Hello,

    I know that it is possible to overload operators like 'and', 'or',
    '+',... by using a function with the name "and", "or", "+",... .
    Is it also possible to overload the attribute operators like: 'high,
    'left, 'low, ..? Is it possible to create your own attributes?

    best regards,
    Karel
    Dolphin, Sep 13, 2007
    #1
    1. Advertising

  2. Dolphin

    Andy Guest

    On Sep 13, 4:05 am, Dolphin <> wrote:
    > Hello,
    >
    > I know that it is possible to overload operators like 'and', 'or',
    > '+',... by using a function with the name "and", "or", "+",... .
    > Is it also possible to overload the attribute operators like: 'high,
    > 'left, 'low, ..? Is it possible to create your own attributes?
    >
    > best regards,
    > Karel


    Yes, you can create your own attributes. No, you cannot overload the
    definition of existing attributes. I seem to recall that user-defined
    attributes are not passed with the argument that owns them into
    subprograms.

    Andy
    Andy, Sep 13, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ron Natalie
    Replies:
    0
    Views:
    390
    Ron Natalie
    Jul 9, 2003
  2. C Wood
    Replies:
    4
    Views:
    991
    Stuart Golodetz
    Jul 10, 2003
  3. B.R.Kumar

    overloading operators

    B.R.Kumar, Oct 10, 2003, in forum: C++
    Replies:
    2
    Views:
    328
    rossum
    Oct 10, 2003
  4. Zenon
    Replies:
    6
    Views:
    427
    =?ISO-8859-1?Q?Christian_Brechb=FChler?=
    Oct 25, 2003
  5. afd
    Replies:
    1
    Views:
    8,267
    Colin Paul Gloster
    Mar 23, 2007
Loading...

Share This Page