xil_analysis_port

The xil_analysis_port is a parameterized class which extends from xil_component

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

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

set_enabled
function void set_enabled();

Set enabled value to 1, xil_analysis_port is on.

clr_enabled
function void clr_enabled();

Set enabled to be 0, xil_analysis_port is off.

get_enabled
function logic get_enabled();

Returns enabled value of xil_analysis_port.

get_item_cnt
function integer unsigned get_item_cnt();

Returns item_cnt of xil_analysis_port.

write
virtual task write(
input trans
);

When xil_analysis_port is enabled,this function will push input argument into the queue of xil_analysis_port, increment item_cnt. User needs to make sure that enabled is on to write transaction into xil_analysis_port. if not.  use set_enabled to turn on.

get
virtual task get(
output trans
);

When xil_analysis_port is enabled,this function will get its output from the queue of xil_analysis_port, decrement item_cnt.Else, it will get fatal error message about attempting to get from disabled anaylysis port.