17#ifndef _CXS_SCV_RECORDER_H_
18#define _CXS_SCV_RECORDER_H_
20#include <cxs/cxs_tlm.h>
21#include <tlm/nw/scv/tlm_recorder.h>
22#include <tlm/nw/scv/tlm_recorder_module.h>
28#define SCVNS ::scv_tr::
38inline void record(SCVNS scv_tr_handle& handle, cxs::cxs_flit_payload
const& o) {
39 static const std::array<std::string, 3> cmd2char{{
"FLIT",
"CREDIT",
"CRDRTN"}};
40 handle.record_attribute(
"flit.ptr",
reinterpret_cast<uintptr_t
>(&o));
41 handle.record_attribute(
"flit.type", cmd2char.at(
static_cast<unsigned>(o.
get_command())));
44 handle.record_attribute(
"flit.start",
static_cast<unsigned>(o.start));
45 handle.record_attribute(
"flit.end",
static_cast<unsigned>(o.end));
46 handle.record_attribute(
"flit.end_error", o.end_error);
47 handle.record_attribute(
"flit.last", o.last);
50inline void record(SCVNS scv_tr_handle& handle, ::cxs::cxs_packet_payload
const& o) {}
SCC SCV4TLM classes and functions.
CMDENUM get_command() const
Gets the command from the payload.