RegisterLogin  
Update Profile
   
You are here: Forum  
Minimize 
SVUG Community Forum
Subject: About SV class...
Prev Next
You are not authorized to post a reply.

Author Messages
ManimaranUser is Offline

Posts:6

08/28/2008 10:54 PM  
Hi *,
Can anybody tell if a modport declared in the interface have the same name of a class declaration??

example:

         interface usb();

                  modport test ();

         end interface

in other .sv file can i have

         class test ---   
         
           endclass 

Thanks
regards
N.Manimaran.
MalvikaUser is Offline

Posts:3

11/03/2008 10:44 PM  
Hi

No. Better not to use like this.

Thanks
Malvika
KarthikeyanUser is Offline

Posts:2

11/10/2008 4:36 AM  
Hi

You can use the same identifiers as long as they are in different scope and you are comfortable with it.

Here modport can only be accessed through interface instance, so there will not be any clash between class name and modport name.

Thanks,
Karthik
You are not authorized to post a reply.



ActiveForums 3.7
  

 Copyright 2008 by SystemVerilog User Group Contact Us    Privacy Statement