scc  2022.4.0
SystemC components library
axi::response Struct Reference

#include <axi_tlm.h>

Inheritance diagram for axi::response:

Public Member Functions

responseoperator= (const response &o)
 assignment operator More...
 
void reset ()
 reset all data member to their default
 
void set_resp (resp_e)
 set the response status as POD More...
 
resp_e get_resp () const
 get the response status as POD More...
 
bool is_okay () const
 check if the response status is OKAY More...
 
void set_okay ()
 set the response status to OKAY
 
bool is_exokay () const
 check if the response status is EXOKAY More...
 
void set_exokay ()
 set the response status to EXOKAY
 
bool is_slverr () const
 check if the response status is SLVERR More...
 
void set_slverr ()
 set the response status to SLVERR
 
bool is_decerr () const
 check if the response status is DECERR More...
 
void set_decerr ()
 set the response status to DECERR
 

Static Public Member Functions

static resp_e from_tlm_response_status (tlm::tlm_response_status)
 converts the response status of a generic payload to a More...
 
static tlm::tlm_response_status to_tlm_response_status (resp_e)
 converts a More...
 

Protected Types

enum  {
  DATATRANSFER = 1 , SNOOPEERROR = 2 , PASSDIRTY = 4 , ISSHARED = 8 ,
  WASUNIQUE = 16
}
 

Protected Attributes

uint8_t resp {static_cast<uint8_t>(resp_e::OKAY)}
 

Detailed Description

the response status of an AXI transaction

Definition at line 596 of file axi_tlm.h.

Member Function Documentation

◆ from_tlm_response_status()

resp_e axi::response::from_tlm_response_status ( tlm::tlm_response_status  st)
inlinestatic

converts the response status of a generic payload to a

See also
resp_e type
Parameters
thetlm gp response status
Returns
the axi response status

Definition at line 1475 of file axi_tlm.h.

◆ get_resp()

resp_e axi::response::get_resp ( ) const
inline

get the response status as POD

Returns
the status

Definition at line 1502 of file axi_tlm.h.

◆ is_decerr()

bool axi::response::is_decerr ( ) const
inline

check if the response status is DECERR

Returns
true if the status was decerr

Definition at line 1527 of file axi_tlm.h.

◆ is_exokay()

bool axi::response::is_exokay ( ) const
inline

check if the response status is EXOKAY

Returns
true if the status was exok

Definition at line 1519 of file axi_tlm.h.

◆ is_okay()

bool axi::response::is_okay ( ) const
inline

check if the response status is OKAY

Returns
true if the status was ok

Definition at line 1515 of file axi_tlm.h.

◆ is_slverr()

bool axi::response::is_slverr ( ) const
inline

check if the response status is SLVERR

Returns
true if the status was slverr

Definition at line 1523 of file axi_tlm.h.

◆ operator=()

response& axi::response::operator= ( const response o)
inline

assignment operator

Parameters
o
Returns
reference to self

Definition at line 603 of file axi_tlm.h.

◆ set_resp()

void axi::response::set_resp ( resp_e  resp)
inline

set the response status as POD

Parameters
thestatus

Definition at line 1500 of file axi_tlm.h.

◆ to_tlm_response_status()

tlm::tlm_response_status axi::response::to_tlm_response_status ( resp_e  resp)
inlinestatic

converts a

See also
resp_e type to a response status of a generic payload
Parameters
theaxi response status
Returns
the tlm gp response status

Definition at line 1487 of file axi_tlm.h.


The documentation for this struct was generated from the following file: