Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > overloading 'operators in VHDL

Reply
Thread Tools

overloading 'operators in VHDL

 
 
Dolphin
Guest
Posts: n/a
 
      09-13-2007
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

 
Reply With Quote
 
 
 
 
Andy
Guest
Posts: n/a
 
      09-13-2007
On Sep 13, 4:05 am, Dolphin <(E-Mail Removed)> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
RE: Overloading __init__ & Function overloading Iyer, Prasad C Python 4 09-30-2005 08:01 PM
Overloading __init__ & Function overloading Iyer, Prasad C Python 3 09-30-2005 02:17 PM
Re: Overloading __init__ & Function overloading Steve Holden Python 0 09-30-2005 01:58 PM
Re: Overloading __init__ & Function overloading Fredrik Lundh Python 0 09-30-2005 01:53 PM



Advertisments