E
Eric Peers
Guest
I have two watchers that are identical, but watching different
interfaces.
I would like to obtain the instancename of the current
entity/architecture so that I can print it out in an error message.
I know there is a `instancename as an attribute. So I could create my
watcher and pass as a signal port to it, it's instancename. But that's
dumb.
I could also create a signal inside of the watcher and find the
'path_name to it and parse it. but that's dumb.
what I want is the equivalent of the "this" pointer in C++:
this'instancename -- I want the instance name of the current
architecture that I am sitting in.
Is there some special VHDL construct to reference the current
architecture/entity?
Thanks!
- -eric
interfaces.
I would like to obtain the instancename of the current
entity/architecture so that I can print it out in an error message.
I know there is a `instancename as an attribute. So I could create my
watcher and pass as a signal port to it, it's instancename. But that's
dumb.
I could also create a signal inside of the watcher and find the
'path_name to it and parse it. but that's dumb.
what I want is the equivalent of the "this" pointer in C++:
this'instancename -- I want the instance name of the current
architecture that I am sitting in.
Is there some special VHDL construct to reference the current
architecture/entity?
Thanks!
- -eric