An AXI subordinate for use in a testbench.
More...
#include <Subordinate.h>
|
axi4_::read::template subordinate | if_rd |
|
axi4_::write::template subordinate | if_wr |
|
sc_in< bool > | reset_bar |
|
sc_in< bool > | clk |
|
std::queue< typename axi4_::ReadPayload > | rd_resp |
|
std::queue< typename axi4_::Addr > | rd_resp_addr |
|
std::queue< typename axi4_::AddrPayload > | wr_addr |
|
std::queue< typename axi4_::WritePayload > | wr_data |
|
std::queue< typename axi4_::WRespPayload > | wr_resp |
|
std::map< typename axi4_::Addr, typename axi4_::Data > | localMem |
|
std::map< typename axi4_::Addr, NVUINT8 > | localMem_wstrb |
|
std::vector< typename axi4_::Addr > | validReadAddresses |
|
|
static const int | kDebugLevel = 1 |
|
static const int | bytesPerBeat = axi4_::DATA_WIDTH >> 3 |
|
|
void | run_rd () |
|
void | run_wr () |
|
template<typename axiCfg>
class Subordinate< axiCfg >
An AXI subordinate for use in a testbench.
- Template Parameters
-
axiCfg | A valid AXI config. |
- Overview
- This test structure acts as an AXI subordinate memory, responding to read and write requests and generating responses. An internal memory, initially unpopulated, stores the values of AXI write requests and is accessed for read requests. The block enforces the following by assertion:
- Read requests are only valid if the address has previously been written to.
- Write data beats must each assert at least one strobe bit.
Definition at line 45 of file Subordinate.h.
The documentation for this class was generated from the following file: