45 #ifndef ADDER_CONN_OBJ_HPP 46 #define ADDER_CONN_OBJ_HPP 84 bitsize = _bitsize > bitsize ? _bitsize :
bitsize;
98 is_aligned_adder_p =
true;
99 trimmed_bits = _trimmed_bits;
115 #endif // ADDER_CONN_OBJ_HPP an element used for connecting the resources (e.g., muxes)
unsigned long long bitsize
number of bit of in/out ports
bool is_align_adder() const
return true in case the addition is aligned
unsigned int get_trimmed_bits() const
return the trimmed bits
adder_conn_obj(const std::string &_name)
Constructor.
void set_trimmed_bits(unsigned int _trimmed_bits)
set the multiplication as a multiplication to a constant
bool is_aligned_adder_p
when true the addition can trim the last bits
Base class for all resources into datapath.
Generic class managing all resources into datapath.
~adder_conn_obj() override=default
Destructor.
unsigned long long get_bitsize() const
return the maximum bitsize associated with the component
void add_bitsize(unsigned long long _bitsize)
add a size to the component
unsigned int trimmed_bits
last bits that can be trimmed
This class is used when pointers arithmetic is implicitly performed.