scc  2022.4.0
SystemC components library
axi::common Struct Reference

#include <axi_tlm.h>

Inheritance diagram for axi::common:

Public Types

enum class  id_type { CTRL , DATA , RESP }
 

Public Member Functions

 common ()=default
 the constructor
 
void reset ()
 reset all data member to their default
 
commonoperator= (const common &o)
 copy assignment operator More...
 
void set_id (unsigned int value)
 
unsigned int get_id () const
 
void set_user (id_type chnl, unsigned int value)
 
unsigned int get_user (id_type chnl) const
 

Protected Attributes

unsigned id {0}
 
std::array< unsigned, 3 > user {{0, 0, 0}}
 

Detailed Description

the variable part of all requests containing AxID and AxUSER

Definition at line 160 of file axi_tlm.h.

Member Enumeration Documentation

◆ id_type

enum axi::common::id_type
strong

Since AXI has up to three channels per transaction the id and user fields are denoted by this enum

Definition at line 178 of file axi_tlm.h.

Member Function Documentation

◆ get_id()

unsigned int axi::common::get_id ( ) const
inline

get the id value of a particular channel

Returns
the AxID

Definition at line 1254 of file axi_tlm.h.

◆ get_user()

unsigned int axi::common::get_user ( id_type  chnl) const
inline

get the user value of a particular channel

Returns
AxUSER value

Definition at line 1258 of file axi_tlm.h.

◆ operator=()

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

copy assignment operator

Parameters
o
Returns
reference to self

Definition at line 170 of file axi_tlm.h.

◆ set_id()

void axi::common::set_id ( unsigned int  value)
inline

set the id value of a particular channel

Parameters
valueof the AxID of the ADDR, DATA, and RESP channel

Definition at line 1252 of file axi_tlm.h.

◆ set_user()

void axi::common::set_user ( id_type  chnl,
unsigned int  value 
)
inline

set the user value of a particular channel

Parameters
chnlAxUSER value of the ADDR, DATA, and RESP channel
valueof the user field

Definition at line 1256 of file axi_tlm.h.


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