[sv-ec] question about name resolution in classes

From: francoise martinolle <fm_at_.....>
Date: Thu Mar 23 2006 - 14:40:43 PST
Supposed I have a base class in a package and I create a derived class of
that class in a 
module. I do not import the package but I use the package scope syntax to
indicate
the base class. Does this cause all the class item declaration of the BASE
class to be
visible in the derived class?
 
I think it should.
 
 
package p;
class BASE;
  rand logic i;
endclass
endpackage
 
 
module top;
class derived extends p::BASE;
       constraint c1 { i == 1'b1};
endclass
endmodule
 
Received on Thu Mar 23 14:40:57 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 23 2006 - 14:41:18 PST