PandA-2024.02
|
This class is used to represent a connection through multiplexers. More...
#include <mux_conn.hpp>
Public Member Functions | |
mux_conn (const CustomOrderedSet< data_transfer > &_live_variable, const std::vector< std::pair< generic_objRef, unsigned int >> &_mux_tree) | |
Constructor. More... | |
~mux_conn () override=default | |
Destructor. More... | |
const std::string | get_string () const override |
Returns the name associated with the element. More... | |
std::vector< std::pair< generic_objRef, unsigned int > > | get_mux_tree () const |
Returns the mux tree associated with the connection. More... | |
unsigned int | get_mux_tree_size () const |
Returns the number of multiplexers required to implement the connection. More... | |
Public Member Functions inherited from connection_obj | |
connection_obj (element_t _type, const CustomOrderedSet< data_transfer > &_live_variable) | |
Constructor. More... | |
virtual | ~connection_obj () |
Destructor. More... | |
const CustomOrderedSet< data_transfer > & | get_variables () const |
Gets the temporary set. More... | |
unsigned int | get_type () const |
Returns type of object used to perform connection. More... | |
Private Attributes | |
std::vector< std::pair< generic_objRef, unsigned int > > | mux_tree |
It's sequence of multiplexer inputs to drive the signal from the source element to the target one. More... | |
Additional Inherited Members | |
Public Types inherited from connection_obj | |
using | element_t = enum { DIRECT_CONN, BY_MUX } |
resource type More... | |
Protected Attributes inherited from connection_obj | |
element_t | type |
type of the connection More... | |
CustomOrderedSet< data_transfer > | live_variable |
Set of variables that cross the connection. More... | |
This class is used to represent a connection through multiplexers.
Definition at line 61 of file mux_conn.hpp.
|
inline |
Constructor.
live_variable | is the set of data transfers |
_mux_tree | is mux tree for the new connection |
Definition at line 74 of file mux_conn.hpp.
References ~mux_conn().
|
overridedefault |
|
inline |
Returns the mux tree associated with the connection.
Definition at line 99 of file mux_conn.hpp.
References mux_tree.
|
inline |
Returns the number of multiplexers required to implement the connection.
Definition at line 108 of file mux_conn.hpp.
|
inlineoverridevirtual |
Returns the name associated with the element.
Implements connection_obj.
Definition at line 89 of file mux_conn.hpp.
References T_COND, and THROW_ASSERT.
|
private |
It's sequence of multiplexer inputs to drive the signal from the source element to the target one.
Note that each vector element is a multiplexer, connected to the next one the unsigned int represents the mux input port
Definition at line 66 of file mux_conn.hpp.
Referenced by get_mux_tree().