17 #include <apb/apb_tlm.h>
22 const std::array<std::string, 3> cmd_str{
"R",
"W",
"I"};
24 std::ostream& operator<<(std::ostream& os,
const tlm::tlm_generic_payload& t) {
25 os <<
"CMD:" << cmd_str[t.get_command()] <<
", "
26 <<
"ADDR:0x" << std::hex << t.get_address() <<
", TXLEN:0x" << t.get_data_length();
29 <<
"PROT:0x" << std::hex << static_cast<unsigned>(e->get_protection()) <<
"NSE:" << (e->is_nse() ?
"True" :
"False");
31 os <<
" [ptr:" << &t <<
"]";
TLM2.0 components modeling OCP.