scc 2025.09
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
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 class 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 1299 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 1303 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 1297 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 1301 of file axi_tlm.h.

Member Data Documentation

◆ id

unsigned axi::common::id {0}
protected

Definition at line 194 of file axi_tlm.h.

◆ user

std::array<unsigned, 3> axi::common::user {{0, 0, 0}}
protected

Definition at line 195 of file axi_tlm.h.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/third_party/axi_chi/axi/axi_tlm.h