|
发表于 2016-3-21 19:03:06
|
显示全部楼层
参照uvm文件: uvm_conponent.svh
virtual class uvm_component extends uvm_report_object;
// Function: new
//
// Creates a new component with the given leaf instance ~name~ and handle to
// to its ~parent~. If the component is a top-level component (i.e. it is
// created in a static module or interface), ~parent~ should be null.
//
// The component will be inserted as a child of the ~parent~ object, if any.
// If ~parent~ already has a child by the given ~name~, an error is produced.
//
// If ~parent~ is null, then the component will become a child of the
// implicit top-level component, ~uvm_top~.
//
// All classes derived from uvm_component must call super.new(name,parent).
extern function new (string name, uvm_component parent);
//----------------------------------------------------------------------------
// Group: Hierarchy Interface
//----------------------------------------------------------------------------
//
// These methods provide user access to information about the component
// hierarchy, i.e., topology.
//
//----------------------------------------------------------------------------
// Function: get_parent
//
// Returns a handle to this component's parent, or null if it has no parent.
extern virtual function uvm_component get_parent (); |
|