axi4stream_slv_agent

AXI4STREAM Slave agent. This class contains other components that comprise the entire Slave Verification component.These are the Monitor,Driver.Refer PG277 section about AXI4STREAM Slave Agent for more details.

Information
class member

axi4stream_slv_driver `XIL_AXI4STREAM_PARAM_ORDER driver;

axi4stream_monitor `XIL_AXI4STREAM_PARAM_ORDER monitor;

axi4stream_vif_proxy `XIL_AXI4STREAM_PARAM_ORDER vif_proxy;

axi4stream_slv_agent includes a monitor, a slave driver and vif_proxy. Please refer below picture for more details about axi4stream_slv_agent.

Functions
new

function new ( |
input | string | name | = | "unnamed_axi4stream_slv_agent",
virtual interface axi4stream_vip_if ` | XIL_AXI4STREAM_PARAM_ORDER | vif |  |
| );

Constructor to create an AXI4STREAM Slave Agent. ~name~ is the instance name and axi4stream_vip_if is the interface in the design. Please see PG277 for how to find the interface in design hierarchy.

set_verbosity

virtual function void set_verbosity( |
xil_verbosity | updated
| );

Sets the verbosity of the Agent and all sub classes. If updated is bigger than 300, it will print out necessary log message. Refer xil_info for verbosity information.

set_vif

function void set_vif( |
axi4stream_vif_proxy ` | XIL_AXI4STREAM_PARAM_ORDER | vif
| );

Sets the Agent's virtual interface. This is the interface that will be monitored and/or driven.

set_agent_tag

virtual function void set_agent_tag( |
string | updated
| );

Sets the tag of the Agent and all sub classes. If more than one VIPs(in slave mode) being used in the same testbench, User can use set_agent_tag with different tag to tell where exactly the log message comes from.

start_monitor
virtual task start_monitor();

Enables the monitor in this agent to start collecting data.

start_slave
virtual task start_slave();

Enables the monitor,driver in this agent to start collecting data. The driver will only issue ready generation when the send functions are called.

stop_slave
virtual task stop_slave();

Disables the driver. Once disabled, no further action will occur by the drivers.

stop_monitor
virtual task stop_monitor();

Disables the monitor in this agent from start collecting data. . Once disabled, no further action will occur by the monitor.