overloading 'operators in VHDL

D

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
 
On Sep 13, 4:05 am, Dolphin <Karel.Dep...@gemidis.be> 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
 

Welcome to EDABoard.com

Sponsor

Back
Top