OpenASIP  2.0
Public Member Functions | List of all members
ProGe::OutPort Class Reference

Convenience class for output ports. More...

#include <NetlistPort.hh>

Inheritance diagram for ProGe::OutPort:
Inheritance graph
Collaboration diagram for ProGe::OutPort:
Collaboration graph

Public Member Functions

 OutPort (const std::string &name, const std::string &widthFormula, int realWidth, DataType dataType, BaseNetlistBlock &parent, Signal signal=Signal())
 
 OutPort (const std::string &name, const std::string &widthFormula, DataType dataType, BaseNetlistBlock &parent, Signal signal=Signal())
 
 OutPort (const std::string &name, const std::string &widthFormula, DataType dataType=BIT_VECTOR, Signal signal=Signal())
 
- Public Member Functions inherited from ProGe::NetlistPort
 NetlistPort (const std::string &name, const std::string &widthFormula, int realWidth, DataType dataType, Direction direction, BaseNetlistBlock &parent, Signal signal=Signal())
 
 NetlistPort (const std::string &name, int realWidth, DataType dataType, Direction direction, BaseNetlistBlock &parent, Signal signal=Signal())
 
 NetlistPort (const std::string &name, const std::string &widthFormula, DataType dataType, Direction direction, BaseNetlistBlock &parent, Signal signal=Signal())
 
 NetlistPort (const std::string &name, const std::string &widthFormula, DataType dataType, Direction direction, Signal signal=Signal())
 
virtual ~NetlistPort ()
 
bool resolveRealWidth (int &width) const
 
NetlistPortcopyTo (BaseNetlistBlock &newParent, std::string newName="") const
 
virtual NetlistPortclone (bool asMirrored=false) const
 
std::string name () const
 
void rename (const std::string &newname)
 
std::string widthFormula () const
 
void setWidthFormula (const std::string &newFormula)
 
bool realWidthAvailable () const
 
int realWidth () const
 
DataType dataType () const
 
Direction direction () const
 
void setDirection (Direction direction)
 
bool hasParentBlock () const
 
const BaseNetlistBlockparentBlock () const
 
BaseNetlistBlockparentBlock ()
 
void setToStatic (StaticSignal value) const
 
void unsetStatic () const
 
bool hasStaticValue () const
 
StaticSignal staticValue () const
 
void assignSignal (Signal signal)
 
Signal assignedSignal () const
 

Detailed Description

Convenience class for output ports.

Definition at line 158 of file NetlistPort.hh.

Constructor & Destructor Documentation

◆ OutPort() [1/3]

ProGe::OutPort::OutPort ( const std::string &  name,
const std::string &  widthFormula,
int  realWidth,
DataType  dataType,
BaseNetlistBlock parent,
Signal  signal = Signal() 
)

Definition at line 459 of file NetlistPort.cc.

467  dataType, OUT, parent, signal) {
468 }

◆ OutPort() [2/3]

ProGe::OutPort::OutPort ( const std::string &  name,
const std::string &  widthFormula,
DataType  dataType,
BaseNetlistBlock parent,
Signal  signal = Signal() 
)

Definition at line 470 of file NetlistPort.cc.

476  : NetlistPort(name, widthFormula, dataType, OUT, parent, signal) {
477 }

◆ OutPort() [3/3]

ProGe::OutPort::OutPort ( const std::string &  name,
const std::string &  widthFormula,
DataType  dataType = BIT_VECTOR,
Signal  signal = Signal() 
)

Definition at line 479 of file NetlistPort.cc.

484  : NetlistPort(name, widthFormula, dataType, OUT, signal) {
485 }

The documentation for this class was generated from the following files:
ProGe::NetlistPort::NetlistPort
NetlistPort(const std::string &name, const std::string &widthFormula, int realWidth, DataType dataType, Direction direction, BaseNetlistBlock &parent, Signal signal=Signal())
Definition: NetlistPort.cc:64
ProGe::NetlistPort::widthFormula
std::string widthFormula() const
Definition: NetlistPort.cc:316
ProGe::NetlistPort::name
std::string name() const
Definition: NetlistPort.cc:283
ProGe::OUT
@ OUT
Output port.
Definition: ProGeTypes.hh:54
ProGe::NetlistPort::dataType
DataType dataType() const
Definition: NetlistPort.cc:362
ProGe::NetlistPort::realWidth
int realWidth() const
Definition: NetlistPort.cc:348