scc 2025.09
SystemC components library
scc::abstract_bitfield< datatype_t > Class Template Referenceabstract

Abstract baseclass for bitfield. More...

#include <tlm_target_bfs_register_base.h>

Inheritance diagram for scc::abstract_bitfield< datatype_t >:

Public Member Functions

 abstract_bitfield (std::string name, size_t bitOffset, size_t bitSize, std::string urid)
virtual void write (datatype_t &valueToWrite)=0
virtual datatype_t read ()=0
constexpr bool affected (size_t byteOffset, size_t byteLength) const noexcept
constexpr datatype_t mask () const noexcept

Public Attributes

const size_t bitOffset
const size_t bitSize
const std::string name
const std::string urid

Detailed Description

template<typename datatype_t>
class scc::abstract_bitfield< datatype_t >

Abstract baseclass for bitfield.

Used to resolve cyclic dependency between bitfield_register and bitfield.

Definition at line 57 of file tlm_target_bfs_register_base.h.

Constructor & Destructor Documentation

◆ abstract_bitfield()

template<typename datatype_t>
scc::abstract_bitfield< datatype_t >::abstract_bitfield ( std::string name,
size_t bitOffset,
size_t bitSize,
std::string urid )
inline

Definition at line 59 of file tlm_target_bfs_register_base.h.

Member Function Documentation

◆ affected()

template<typename datatype_t>
bool scc::abstract_bitfield< datatype_t >::affected ( size_t byteOffset,
size_t byteLength ) const
inlineconstexprnoexcept

Definition at line 69 of file tlm_target_bfs_register_base.h.

◆ mask()

template<typename datatype_t>
datatype_t scc::abstract_bitfield< datatype_t >::mask ( ) const
inlineconstexprnoexcept

Definition at line 73 of file tlm_target_bfs_register_base.h.

Member Data Documentation

◆ bitOffset

template<typename datatype_t>
const size_t scc::abstract_bitfield< datatype_t >::bitOffset

Definition at line 75 of file tlm_target_bfs_register_base.h.

◆ bitSize

template<typename datatype_t>
const size_t scc::abstract_bitfield< datatype_t >::bitSize

Definition at line 76 of file tlm_target_bfs_register_base.h.

◆ name

template<typename datatype_t>
const std::string scc::abstract_bitfield< datatype_t >::name

Definition at line 77 of file tlm_target_bfs_register_base.h.

◆ urid

template<typename datatype_t>
const std::string scc::abstract_bitfield< datatype_t >::urid

Definition at line 78 of file tlm_target_bfs_register_base.h.


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