Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Use of 'simple_name/instance/path attributes - are they any use?

 
Thread Tools Search this Thread
Old 06-09-2009, 04:49 PM   #1
Default Use of 'simple_name/instance/path attributes - are they any use?


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
  Reply With Quote
Old 06-09-2009, 04:51 PM   #2
Tricky
 
Posts: n/a
Default Re: Use of 'simple_name/instance/path attributes - are they any use?
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
  Reply With Quote
Old 06-09-2009, 06:08 PM   #3
Mike Treseler
 
Posts: n/a
Default Re: Use of 'simple_name/instance/path attributes - are they any use?
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
  Reply With Quote
Old 06-10-2009, 06:30 AM   #4
KJ
 
Posts: n/a
Default Re: Use of 'simple_name/instance/path attributes - are they any use?

"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
  Reply With Quote
Old 06-10-2009, 12:53 PM   #5
Martin Thompson
 
Posts: n/a
Default Re: Use of 'simple_name/instance/path attributes - are they any use?
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46