![]() |
|
|
|||||||
![]() |
VHDL - Use of 'simple_name/instance/path attributes - are they any use? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I cant think of any use for these attributes except in assertions, and
even then there is no way of calling something like this: assert (generics_are_good) report this'path_name & ": Generics are bad" severity failure; So you could identify where the assert output came from. Is there any way of getting hold of the path of the entity/architecture you are currently in? Tricky |
|
|
|
|
#2 |
|
Posts: n/a
|
On 9 June, 16:49, Tricky <Trickyh...@gmail.com> wrote:
> I cant think of any use for these attributes except in assertions, and > even then there is no way of calling something *like this: > > assert (generics_are_good) > * report this'path_name & ": Generics are bad" > * * severity failure; > > So you could identify where the assert output came from. Is there any > way of getting hold of the path of the entity/architecture you are > currently in? I mean 'instance_name, not path_name, but it still has the same problem. Tricky |
|
|
|
#3 |
|
Posts: n/a
|
Tricky wrote:
> On 9 June, 16:49, Tricky <Trickyh...@gmail.com> wrote: >> I cant think of any use for these attributes except in assertions, Me neither. The scope is very limited. Not much use for a testbench message. I print custom messages for errors and warnings. -- Mike Treseler Mike Treseler |
|
|
|
#4 |
|
Posts: n/a
|
"Tricky" <> wrote in message news:a6b9c473-4fda-439a-bc7b-... On 9 June, 16:49, Tricky <Trickyh...@gmail.com> wrote: > I cant think of any use for these attributes except in assertions, and > even then there is no way of calling something like this: > I've used 'path_name to create the name of a unique log file when the entity is something that gets reused in a design and where the sim model writes data to some output file for logging/debugging purposes. KJ KJ |
|
|
|
#5 |
|
Posts: n/a
|
Tricky <> writes:
> On 9 June, 16:49, Tricky <Trickyh...@gmail.com> wrote: >> I cant think of any use for these attributes except in assertions, and >> even then there is no way of calling something *like this: >> >> assert (generics_are_good) >> * report this'path_name & ": Generics are bad" >> * * severity failure; >> >> So you could identify where the assert output came from. Is there any >> way of getting hold of the path of the entity/architecture you are >> currently in? > > I mean 'instance_name, not path_name, but it still has the same > problem. So long as "this" refers to something like an entity, you can do it. I've used it for logging msgs in the past. Unfortunately, when applied to a procedure, it just reports the procedure name, not back to the entity that called it Cheers, Martin -- TRW Conekt - Consultancy in Engineering, Knowledge and Technology http://www.conekt.net/electronics.html Martin Thompson |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BGP Conditional advertisement with Community attributes | qamar | General Help Related Topics | 0 | 09-15-2009 06:49 AM |
| Errata: MCTS 70-536, Self-Paced Training Kit, 3rd print (chapters 1-7) | Zimri | MCTS | 1 | 04-03-2007 11:15 PM |