AXI Slave Agent Class.
This class contains other components that comprise the entire Slave Verification component.
These are the Monitor, Read Driver and Write Driver.
Refer PG267 section about AXI Slave Agent for more details.
axi_monitor `AXI_PARAM_ORDER monitor;
axi_slv_wr_driver `AXI_PARAM_ORDER wr_driver;
axi_slv_rd_driver `AXI_PARAM_ORDER rd_driver;
axi_vif_mem_proxy `AXI_PARAM_ORDER vif_proxy;
axi_slv_agent includes a monitor, a read driver, a write driver and vif_proxy. Please refer below picture for more details about axi_slv_agent.
function new ( |
| ); |
Constructor to create an AXI Slave Agent. ~name~ is the instance name and axi_vip_if is the interface in the design. Please see PG267 for how to find the interface in design hierarchy.
virtual function void set_verbosity( |
| ); |
Sets the verbosity of the axi_slv_agent and all sub classes to determine whether the information will be printed out or not. refer xil_info for verbosity level setting.
virtual function void set_agent_tag( |
| ); |
Sets the tag of the axi_slv_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.
function void set_vif( |
| ); |
Sets the Agent's virtual interface. This is the interface that will be monitored and/or driven.
function void set_wr_transaction_depth( |
| ); |
Sets the maximum number of WRITE transactions that the axi_slv_agent will have in flight at one time.
Returns the maximum number of WRITE transactions that the axi_slv_agent will have in flight at one time.
function void set_rd_transaction_depth( |
| ); |
Sets the maximum number of READ transactions that the axi_slv_agent will have in flight at one time.
Returns the maximum number of READ transactions that the axi_slv_agent will have in flight at one time.
Turn on current agent's transaction depth check and its monitor's enable_transaction_depth_checks
Turn off current agent's transaction depth check and its monitor's enable_transaction_depth_checks
Enables the monitor in this agent to start collecting data.
Enables the READ and WRITE drivers in this agent. Enables monitor to start collecting data. The drivers will only issue ready when the send functions are called.
Disables the READ and WRITE drivers of the slave. Once disabled, no further action will occur by the drivers.
Disables the monitor in this agent from start collecting data. Once disabled, no further action will occur by the monitor.
Convenience function to set the ARREADY/WREADY/AWREADY of the slave to not apply any backpressure to the simulation.