manjuja1 Posted January 26, 2013 Report Share Posted January 26, 2013 Hi, I've my class hierarchy as below class B extends class A endcalss class B1 extends class B task D() endclass class C extends class A endclass class E extends class C B1 B1_inst; function new(string name = "E", uvm_component parent = null); super.new(name,parent); B1_instt=new(); endfunction // new virtual task run_vseq(); B1_inst.D(); super.run_vseq(); endtask endclass Both class B & C are derivatives of class A class B1 is derived from class B and has a task D class E is derived from class C. Now i need to use task D in class E I followed normal method of instantiating class B1 in the class E and used the required task as inst_B1.D(). But it is not working. I'm getting a UVM fatal error message for it. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.