PandA-2024.02
Public Member Functions | Private Attributes
adder_conn_obj Class Reference

This class is used when pointers arithmetic is implicitly performed. More...

#include <adder_conn_obj.hpp>

Inheritance diagram for adder_conn_obj:
Inheritance graph
[legend]
Collaboration diagram for adder_conn_obj:
Collaboration graph
[legend]

Public Member Functions

 adder_conn_obj (const std::string &_name)
 Constructor. More...
 
 ~adder_conn_obj () override=default
 Destructor. More...
 
void add_bitsize (unsigned long long _bitsize)
 add a size to the component More...
 
unsigned long long get_bitsize () const
 return the maximum bitsize associated with the component More...
 
void set_trimmed_bits (unsigned int _trimmed_bits)
 set the multiplication as a multiplication to a constant More...
 
unsigned int get_trimmed_bits () const
 return the trimmed bits More...
 
bool is_align_adder () const
 return true in case the addition is aligned More...
 
- Public Member Functions inherited from generic_obj
 generic_obj (const resource_type t, const std::string &_name)
 This is the constructor of the object class. More...
 
virtual ~generic_obj ()=default
 Destructor. More...
 
void print (std::ostream &os) const
 Prints elements into given stream. More...
 
const std::string get_string () const
 Returns the name associated with the element. More...
 
unsigned int get_type () const
 Return generic_obj type. More...
 
void set_structural_obj (const structural_objectRef &SM_)
 Sets structural_object associated to this object. More...
 
void set_out_sign (const structural_objectRef &out_sign_)
 Sets structural_object of output signal associated to this object. More...
 
const structural_objectRef get_structural_obj () const
 Gets structural_object associated to this object. More...
 
const structural_objectRef get_out_sign () const
 Gets structural_object of output signal associated to this object. More...
 
bool operator< (const generic_obj &other) const
 

Private Attributes

unsigned long long bitsize
 number of bit of in/out ports More...
 
bool is_aligned_adder_p
 when true the addition can trim the last bits More...
 
unsigned int trimmed_bits
 last bits that can be trimmed More...
 

Additional Inherited Members

- Public Types inherited from generic_obj
enum  resource_type {
  FUNCTIONAL_UNIT = 0, REGISTER, MULTI_UNBOUNDED_OBJ, COMMAND_PORT,
  DATA_PORT, CONNECTION_ELEMENT, ADDER_CONN_OBJ, UU_CONV_CONN_OBJ,
  UI_CONV_CONN_OBJ, IU_CONV_CONN_OBJ, II_CONV_CONN_OBJ, FF_CONV_CONN_OBJ,
  I_ASSIGN_CONN_OBJ, U_ASSIGN_CONN_OBJ, F_ASSIGN_CONN_OBJ
}
 Admissible resource types. More...
 
- Protected Attributes inherited from generic_obj
const resource_type type
 type of resource More...
 
Wrefcount< structural_objectSM
 structural_object associated to element More...
 
Wrefcount< structural_objectout_sign
 output signal associated to element. More...
 
std::string name
 connection obj id More...
 

Detailed Description

This class is used when pointers arithmetic is implicitly performed.

Definition at line 54 of file adder_conn_obj.hpp.

Constructor & Destructor Documentation

◆ adder_conn_obj()

adder_conn_obj::adder_conn_obj ( const std::string &  _name)
inline

Constructor.

Definition at line 69 of file adder_conn_obj.hpp.

References ~adder_conn_obj().

Here is the call graph for this function:

◆ ~adder_conn_obj()

adder_conn_obj::~adder_conn_obj ( )
overridedefault

Destructor.

Referenced by adder_conn_obj().

Here is the caller graph for this function:

Member Function Documentation

◆ add_bitsize()

void adder_conn_obj::add_bitsize ( unsigned long long  _bitsize)
inline

add a size to the component

Definition at line 82 of file adder_conn_obj.hpp.

References bitsize.

◆ get_bitsize()

unsigned long long adder_conn_obj::get_bitsize ( ) const
inline

return the maximum bitsize associated with the component

Definition at line 90 of file adder_conn_obj.hpp.

References bitsize.

◆ get_trimmed_bits()

unsigned int adder_conn_obj::get_trimmed_bits ( ) const
inline

return the trimmed bits

Definition at line 103 of file adder_conn_obj.hpp.

References trimmed_bits.

◆ is_align_adder()

bool adder_conn_obj::is_align_adder ( ) const
inline

return true in case the addition is aligned

Definition at line 109 of file adder_conn_obj.hpp.

References is_aligned_adder_p.

◆ set_trimmed_bits()

void adder_conn_obj::set_trimmed_bits ( unsigned int  _trimmed_bits)
inline

set the multiplication as a multiplication to a constant

Definition at line 96 of file adder_conn_obj.hpp.

Field Documentation

◆ bitsize

unsigned long long adder_conn_obj::bitsize
private

number of bit of in/out ports

Definition at line 57 of file adder_conn_obj.hpp.

Referenced by add_bitsize(), and get_bitsize().

◆ is_aligned_adder_p

bool adder_conn_obj::is_aligned_adder_p
private

when true the addition can trim the last bits

Definition at line 60 of file adder_conn_obj.hpp.

Referenced by is_align_adder().

◆ trimmed_bits

unsigned int adder_conn_obj::trimmed_bits
private

last bits that can be trimmed

Definition at line 63 of file adder_conn_obj.hpp.

Referenced by get_trimmed_bits().


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

Generated on Mon Feb 12 2024 13:03:43 for PandA-2024.02 by doxygen 1.8.13