MatchLib
|
An AXI subordinate with its memory prepopulated from a file for use in testbenches. More...
#include <SubordinateFromFile.h>
Public Types | |
typedef axi::axi4< axiCfg > | axi4_ |
Public Member Functions | |
SC_HAS_PROCESS (SubordinateFromFile) | |
SubordinateFromFile (sc_module_name name_, std::string filename="mem.csv") | |
Public Attributes | |
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 |
axi4_::WritePayload | load_data_pld |
Static Public Attributes | |
static const int | kDebugLevel = 1 |
static const int | bytesPerBeat = axi4_::DATA_WIDTH >> 3 |
Protected Member Functions | |
void | run_rd () |
void | run_wr () |
An AXI subordinate with its memory prepopulated from a file for use in testbenches.
axiCfg | A valid AXI config. |
address_in_hex,data_in_hex
It's best to specify the full DATA_WIDTH of data.
Definition at line 48 of file SubordinateFromFile.h.