scc 2025.09
SystemC components library
bit_slice< T > Struct Template Reference

Public Member Functions

 bit_slice (T &value, unsigned base, unsigned width)
 bit_slice (T &value, unsigned index)
 operator T () const
bit_slice< T > & operator= (T v)
bit_slice< T > & operator= (bit_slice< T > const &_v)

Public Attributes

T & value
unsigned base
unsigned width

Detailed Description

template<typename T>
struct bit_slice< T >

Definition at line 84 of file ities.h.

Constructor & Destructor Documentation

◆ bit_slice() [1/2]

template<typename T>
bit_slice< T >::bit_slice ( T & value,
unsigned base,
unsigned width )
inlineexplicit

Definition at line 87 of file ities.h.

◆ bit_slice() [2/2]

template<typename T>
bit_slice< T >::bit_slice ( T & value,
unsigned index )
inlineexplicit

Definition at line 91 of file ities.h.

Member Function Documentation

◆ operator T()

template<typename T>
bit_slice< T >::operator T ( ) const
inline

Definition at line 95 of file ities.h.

◆ operator=() [1/2]

template<typename T>
bit_slice< T > & bit_slice< T >::operator= ( bit_slice< T > const & _v)
inline

Definition at line 102 of file ities.h.

◆ operator=() [2/2]

template<typename T>
bit_slice< T > & bit_slice< T >::operator= ( T v)
inline

Definition at line 97 of file ities.h.

Member Data Documentation

◆ base

template<typename T>
unsigned bit_slice< T >::base

Definition at line 86 of file ities.h.

◆ value

template<typename T>
T& bit_slice< T >::value

Definition at line 85 of file ities.h.

◆ width

template<typename T>
unsigned bit_slice< T >::width

Definition at line 86 of file ities.h.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/common/util/ities.h