SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Protected Attributes | List of all members
sc_dt::ScNativeDigits< unsigned long > Class Reference

#include <sysc/datatypes/int/sc_vector_utils.h>

Public Types

enum  {
  ACTUAL_WIDTH = 8*sizeof(unsigned long)+1 , DIGITS_N = SC_DIGIT_COUNT(ACTUAL_WIDTH) , HOD = SC_DIGIT_INDEX(ACTUAL_WIDTH-1) , WIDTH = ACTUAL_WIDTH-1 ,
  SIGNED = 0
}
 

Public Member Functions

 ScNativeDigits (unsigned long init)
 
int get_actual_length () const
 
const sc_digitget_digits () const
 
sc_digitget_digits ()
 
int get_digits_n () const
 
int get_hod () const
 
int is_signed () const
 
int length () const
 

Protected Attributes

sc_digit m_digits [DIGITS_N]
 

Detailed Description

Definition at line 235 of file sc_vector_utils.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ACTUAL_WIDTH 
DIGITS_N 
HOD 
WIDTH 
SIGNED 

Definition at line 238 of file sc_vector_utils.h.

Constructor & Destructor Documentation

◆ ScNativeDigits()

sc_dt::ScNativeDigits< unsigned long >::ScNativeDigits ( unsigned long  init)
inline

Definition at line 247 of file sc_vector_utils.h.

Member Function Documentation

◆ get_actual_length()

int sc_dt::ScNativeDigits< unsigned long >::get_actual_length ( ) const
inline

Definition at line 256 of file sc_vector_utils.h.

◆ get_digits() [1/2]

sc_digit * sc_dt::ScNativeDigits< unsigned long >::get_digits ( )
inline

Definition at line 258 of file sc_vector_utils.h.

◆ get_digits() [2/2]

const sc_digit * sc_dt::ScNativeDigits< unsigned long >::get_digits ( ) const
inline

Definition at line 257 of file sc_vector_utils.h.

◆ get_digits_n()

int sc_dt::ScNativeDigits< unsigned long >::get_digits_n ( ) const
inline

Definition at line 259 of file sc_vector_utils.h.

◆ get_hod()

int sc_dt::ScNativeDigits< unsigned long >::get_hod ( ) const
inline

Definition at line 260 of file sc_vector_utils.h.

◆ is_signed()

int sc_dt::ScNativeDigits< unsigned long >::is_signed ( ) const
inline

Definition at line 261 of file sc_vector_utils.h.

◆ length()

int sc_dt::ScNativeDigits< unsigned long >::length ( ) const
inline

Definition at line 262 of file sc_vector_utils.h.

Member Data Documentation

◆ m_digits

sc_digit sc_dt::ScNativeDigits< unsigned long >::m_digits[DIGITS_N]
protected

Definition at line 264 of file sc_vector_utils.h.


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