overloading 'operators in VHDL

D

Dolphin

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
 
A

Andy

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top