Help me! SV attributes application,who can tell me the usage of attributes? Thanks!

2 posts / 0 new
Last post
chx
Offline
Academy Total Access User
Joined: 08/14/2011
Posts: 2
Help me! SV attributes application,who can tell me the usage of attributes? Thanks!

Hi everyone:
I have a syntax problem when i read VMM source code. Here is the code segment:

(*_vcs_vmm_class=1*)
class vmm_sb_ds_registeration;
  bit is_in;
  bit is_out;
  vmm_sb_ds::ordering_eorder;
endclass

So, what's the meaning of the "(*_vcs_vmm_class=1*)", and why use it before the class vmm_sb_ds_registeration?

I looked for the IEEE 1800-2009, only konws the syntax above is attributes, but do not understand is meaning, and how to use it properly.

Could anyone tell me this question and give me a application example? Thanks a lot!

dave_59
Offline
Verification Forum Moderator
Joined: 03/10/2010
Posts: 976
Re: Help me! SV attributes application,who can tell me the usage of attributes? Thanks!

What is your syntax problem?

Attributes are used by other tools for whatever reason they want. Comments in your code are removed by the parser. Think of attributes as special comments that can be parsed

__________________

Dave Rich
Mentor Graphics
http://go.mentor.com/drich