131 bitsize = _bitsize > bitsize ? _bitsize :
bitsize;
generic_objRef get_final_target()
Returns the object which will receive the mux tree result.
generic_objRef target
reference to generic_obj associated with the multiplexer
generic_objRef tree_target
reference to generic_obj target of the mux tree's dataflow
Class specification of the graph structures.
mux_obj(const generic_objRef first, const generic_objRef second, unsigned int level, const std::string &name, const generic_objRef overall_target)
This is the constructor of the object class.
std::string name
connection obj id
unsigned int get_level() const
Return the level of the multiplexer.
~mux_obj() override
Destructor.
Base class for all resources into datapath.
unsigned int level
depth level of the mux
Generic class managing all resources into datapath.
unsigned int get_bitsize() const
return the maximum bitsize associated with the component
Template definition of refcount.
const generic_objRef second
reference to generic_obj associated with second input (when selector is FALSE, it's connected to out)...
unsigned int bitsize
number of bit of in/out ports
void add_bitsize(unsigned int _bitsize)
add a size to the component
void set_target(const generic_objRef tgt)
Sets target object for multiplexer.
generic_objRef GetSelector() const
Gets the selector.
generic_objRef selector
selector object. It can be both a port or the root of a logic gate
void set_selector(const generic_objRef sel)
Sets the element representing the selector.
const generic_objRef first
reference to generic_obj associated with first input (when selector is TRUE, it's connected to out) ...
This class is a specialization of generic_obj class to represent a multiplexer into the datapath...