21 const std::array<std::string, 3> cmd_str{
"R",
"W",
"I"};
23 template <>
const char* to_char<burst_e>(burst_e v) {
46 template <>
const char* to_char<resp_e>(resp_e v) {
61 std::ostream& operator<<(std::ostream& os,
const tlm::tlm_generic_payload& t) {
62 os <<
"CMD:" << cmd_str[t.get_command()] <<
", "
63 <<
"ADDR:0x" << std::hex << t.get_address() <<
", TXLEN:0x" << t.get_data_length();
66 <<
"BURST:" <<
to_char(e->get_burst()) <<
", " << (e->is_seq() ?
"SEQ" :
"NONSEQ") <<
", "
67 <<
"MSTLOCK:" << e->is_locked() <<
", "
68 <<
"PROT:0x" << std::hex << static_cast<unsigned>(e->get_protection());
70 os <<
" [ptr:" << &t <<
"]";
TLM2.0 components modeling AHB.
const char * to_char(E t)