Friday, November 21, 2008     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Hierarchial Access of Class Objects
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
vaas_m
Posts: 2
Online: User is Offline
8/31/2007 3:19 AM  
Hi all,
I am trying to access the method in my class hierachially. But the tool is reporting that hierarchial access to dynamic objects is not supported. I am using LDV5.8. Which version of the LDV supports SV properly. Does I need to have any special licence to upgrade from one version to other.
Thanks,
Sreenivas
stephenh
Posts: 77
Online: User is Offline
8/31/2007 3:58 AM  
Hi Sreenivas

Which exact version of IUS are you using (paste the results of "ncsim -version")?
I tried the following example in IUS 5.83s9 and in IUS 6.11s3 and it works fine.
If this example isn't close enough to what you're trying, please can you paste a better description of the problem?


module tb;
 
class a_c;
  rand int a;
  task print;
    $display("%m : a_c.a == %d", a);
  endtask
endclass
 
class b_c;
  rand a_c a_i;
  task print;
    if (a_i != null) a_i.print();
    else $display("Cannot print a_i - it is null");
  endtask
endclass
 
class c_c;
  rand b_c b_i;
  task print;
    if (b_i != null) b_i.print();
    else $display("Cannot print b_i - it is null");
  endtask
endclass
 
c_c c_i = new;
 
initial begin
  c_i.b_i = new();
  c_i.b_i.a_i = new();
  c_i.print();
  c_i.b_i.a_i.print();
end
 
endmodule

Steve H.
vaas_m
Posts: 2
Online: User is Offline
9/03/2007 3:06 AM  
Hi Steve,
I am using LDV 5.83-p003. I have a verilog module in which my classes are defined. When I am trying to call the methods of my the classes I am getting an error. (Ex: tb.U_model.class_obj.task_name )
ajeetha
Posts: 97
Online: User is Offline
9/03/2007 9:52 PM  
Posted By vaas_m on 9/03/2007 3:06 AM
Hi Steve,
I am using LDV 5.83-p003. I have a verilog module in which my classes are defined. When I am trying to call the methods of my the classes I am getting an error. (Ex: tb.U_model.class_obj.task_name )

Srinivas,
   My guess is that you have not constructed the class object before calling the task. Can you take Steve's example code and modify as per your need and see if you can reproduce the problem? As far as I see it should work - provided the class objects are new'ed before calling tasks.

Cheers
Ajeetha, CVC
www.noveldv.com
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > SystemVerilog > Hierarchial Access of Class Objects


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.