axi4stream_mst_agent

AXI4STREAM Master Agent. it contains other components that comprise the entire Master Verification component. These are the Monitor,Driver -- refer PG277 section about AXI4-Stream Master Agent for more details.

Information
class member

axi4stream_mst_driver `XIL_AXI4STREAM_PARAM_ORDER driver;

axi4stream_monitor `XIL_AXI4STREAM_PARAM_ORDER monitor;

axi4stream_vif_proxy `XIL_AXI4STREAM_PARAM_ORDER vif_proxy;

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

Functions
new

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

Constructor to create an AXI4STREAM Master Agent. ~name~ is the name of the instance 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_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 passthrough 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.

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.

start_monitor
virtual task start_monitor();

Enables the monitor in this agent to start collecting data.

start_master
virtual task start_master();

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

stop_master
virtual task stop_master();

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

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.