OpenASIP
2.0
|
#include <PortConnectionProperty.hh>
Public Member Functions | |
PortConnectionProperty (int port1FirstBit, int port2FirstBit, int width) | |
PortConnectionProperty (bool inverted) | |
PortConnectionProperty () | |
virtual | ~PortConnectionProperty () |
int | width () const |
bool | fullyConnected () const |
bool | inverted () const |
void | setInverted (bool setting) |
int | port1FirstBit () const |
int | port2FirstBit () const |
Private Attributes | |
int | port1FirstBit_ |
The first bit of the first port to connect. More... | |
int | port2FirstBit_ |
The first bit of the second port to connect. More... | |
int | width_ |
The width of the connection. More... | |
bool | inverted_ |
The inversion flag. More... | |
Holds the properties of an edge of the netlist graph.
Edges represent connections between ports of netlist blocks. A port connection really consists of one or more connections between the bits of two ports.
Multi-bit ports may be connected completely or partially. In the latter case, the connection involves only a subset of the bits of each port at its ends.
Definition at line 51 of file PortConnectionProperty.hh.
ProGe::PortConnectionProperty::PortConnectionProperty | ( | int | port1FirstBit, |
int | port2FirstBit, | ||
int | width | ||
) |
The constructor.
port1FirstBit | The first bit of the first port to connect. |
port2FirstBit | The first bit of the second port to connect. |
width | The width of the connection. |
Definition at line 44 of file PortConnectionProperty.cc.
ProGe::PortConnectionProperty::PortConnectionProperty | ( | bool | inverted | ) |
Definition at line 51 of file PortConnectionProperty.cc.
ProGe::PortConnectionProperty::PortConnectionProperty | ( | ) |
The constructor.
This constructor is used when all the bits of the ports are connected.
name | Name of the connection. |
Definition at line 61 of file PortConnectionProperty.cc.
|
virtual |
bool ProGe::PortConnectionProperty::fullyConnected | ( | ) | const |
Tells whether the ports are fully connected.
Definition at line 88 of file PortConnectionProperty.cc.
References width().
bool ProGe::PortConnectionProperty::inverted | ( | ) | const |
Returns true if signal between connected ports are inverted.
Definition at line 96 of file PortConnectionProperty.cc.
References inverted_.
int ProGe::PortConnectionProperty::port1FirstBit | ( | ) | const |
Returns the lowest bit of the port1 that is connected.
Definition at line 116 of file PortConnectionProperty.cc.
References port1FirstBit_.
int ProGe::PortConnectionProperty::port2FirstBit | ( | ) | const |
Returns the lowest bit of the port2 that is connected.
Definition at line 127 of file PortConnectionProperty.cc.
References port2FirstBit_.
void ProGe::PortConnectionProperty::setInverted | ( | bool | setting | ) |
Define inversion of connection.
If set to true the signal need to be inverted.
Definition at line 106 of file PortConnectionProperty.cc.
References inverted_.
int ProGe::PortConnectionProperty::width | ( | ) | const |
Returns the width of the connection.
Definition at line 77 of file PortConnectionProperty.cc.
References width_.
Referenced by fullyConnected().
|
private |
The inversion flag.
Definition at line 77 of file PortConnectionProperty.hh.
Referenced by inverted(), and setInverted().
|
private |
The first bit of the first port to connect.
Definition at line 71 of file PortConnectionProperty.hh.
Referenced by port1FirstBit().
|
private |
The first bit of the second port to connect.
Definition at line 73 of file PortConnectionProperty.hh.
Referenced by port2FirstBit().
|
private |
The width of the connection.
Definition at line 75 of file PortConnectionProperty.hh.
Referenced by width().