xil_object

The xil_object class is the base class for all Xilinx Verification Component data and hierarchical classes. Its primary role is to define a set of methods for common operations such as set name, verbosity, tag etc.

Functions
new
function new (
input string name = "unnamed_xil_object"
);

Constructor to create a new xil_object.~name~ is the name of the instance.

get_name
function string get_name();

Returns the name of xil_object.

get_full_name
function string get_full_name();

Returns the name of xil_object.

set_name
function void set_name(
input string n
);

Set the name of xil_object to be n.

get_inst_id
function int get_inst_id();

Returns m_inst_id of xil_object.

set_verbosity
virtual function void set_verbosity(
xil_verbosity updated
);

Sets the verbosity of debug information which will be printed in <xil_object>.If updated is bigger than 300, it will print out necessary log message. Refer xil_info for verbosity information.

get_verbosity
virtual function xil_verbosity get_verbosity();

Returns the current value of verbosity of xil_object.

set_tag
virtual function void set_tag(
input string value
);

Sets the name/TAG of the xil_object.

get_tag
virtual function string get_tag();

Gets the name/TAG of the xil_object.

set_is_active
virtual function void set_is_active();

Sets is_active to be 1 and xil_object is in active state.

clr_is_active
virtual function void clr_is_active();

Sets is_active to be 0 and xil_object is in not active state.

get_is_active
virtual function bit get_is_active();

Returns the is_active value of xil_object. A value of 1 is considered active.

wait_enabled
task wait_enabled();

Wait until is_active is high of xil_object.