Package: axi_slave_pkg
- File: axi_slave_pkg.vhd
Constants
Name | Type | Value | Description |
---|---|---|---|
axi_slave_logger | logger_t | get_logger("vunit_lib:axi_slave_pkg") | |
axi_slave_set_address_fifo_depth_msg | msg_type_t | new_msg_type("axi slave set address channel fifo depth") | Private constants |
axi_slave_set_write_response_fifo_depth_msg | msg_type_t | new_msg_type("set write response fifo depth") | |
axi_slave_set_address_stall_probability_msg | msg_type_t | new_msg_type("axi slave set address channel stall probability") | |
axi_slave_set_data_stall_probability_msg | msg_type_t | new_msg_type("axi slave set data stall probability") | |
axi_slave_set_write_response_stall_probability_msg | msg_type_t | new_msg_type("axi slave set write response stall probability") | |
axi_slave_set_response_latency_msg | msg_type_t | new_msg_type("axi slave response latency probability") | |
axi_slave_configure_4kbyte_boundary_check_msg | msg_type_t | new_msg_type("axi slave configure 4kbyte boundary check") | |
axi_slave_get_statistics_msg | msg_type_t | new_msg_type("axi slave get statistics") | |
axi_slave_enable_well_behaved_check_msg | msg_type_t | new_msg_type("axi slave enable well behaved check") |
Types
Name | Type | Description |
---|---|---|
axi_slave_t |
Functions
- get_logger (axi_slave : axi_slave_t) return logger_t
Description
Get the logger used by the axi_slave
- set_address_fifo_depth (signal net : inout network_t;
axi_slave : axi_slave_t;
depth : positive) return ()
Description
Set the maximum number address channel tokens that can be queued
- set_write_response_fifo_depth (signal net : inout network_t;
axi_slave : axi_slave_t;
depth : positive) return ()
Description
Set the maximum number write responses that can be queued
- set_address_stall_probability (signal net : inout network_t;
axi_slave : axi_slave_t;
probability : probability_t) return ()
Description
Set the address channel stall probability
- set_data_stall_probability (signal net : inout network_t;
axi_slave : axi_slave_t;
probability : probability_t) return ()
Description
Set the data channel stall probability
- set_write_response_stall_probability (signal net : inout network_t;
axi_slave : axi_slave_t;
probability : probability_t) return ()
Description
Set the write response stall probability
- set_response_latency (signal net : inout network_t;
axi_slave : axi_slave_t;
min_latency,
max_latency : delay_length) return ()
Description
Set the response latency
For a write slave this is the time between the last write data
and providing the write reponse. All write data is written to the
memory model right before providing write response.
Data address and expected value is still checked as soons as it arrives to
the axi slave and is not delayed until the write response time.
For a read slave this is the time between the read burst arrival and the
first provided read data
The response latency is randomly choosen in the uniform interval:
[min_latency, max_latency]
- set_response_latency (signal net : inout network_t;
axi_slave : axi_slave_t;
latency : delay_length) return ()
Description
Short hand for set_response_latency when min and max are the same
- enable_4kbyte_boundary_check (signal net : inout network_t;
axi_slave : axi_slave_t) return ()
- disable_4kbyte_boundary_check (signal net : inout network_t;
axi_slave : axi_slave_t) return ()
- get_statistics (signal net : inout network_t;
axi_slave : axi_slave_t;
variable stat : inout axi_statistics_t;
clear : boolean := false) return ()
Description
Get statistics object from axi slave
Dynamically allocates new statistics object which must he deallocated when
used
This procedure will automatically deallocate the input statistics object
if it is not null
- enable_well_behaved_check (signal net : inout network_t;
axi_slave : axi_slave_t) return ()
Description
Check that bursts are well behaved, that is that data channel traffic is
as compact as possible
For write:
- awvalid never high without wvalid
- wvalid never goes low during active burst
- uses max awsize supported by data width
- bready never low during active burst
For read: - rready never low during active burst
- uses max arsize supported by data width