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

Convenience class for input bit ports. More...

#include <NetlistPort.hh>

Inheritance diagram for ProGe::InBitPort:
Inheritance graph
Collaboration diagram for ProGe::InBitPort:
Collaboration graph

Public Member Functions

 InBitPort (const std::string &name, BaseNetlistBlock &parent, Signal signal=Signal())
 
 InBitPort (const std::string &name, 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 input bit ports.

Definition at line 216 of file NetlistPort.hh.

Constructor & Destructor Documentation

◆ InBitPort() [1/2]

ProGe::InBitPort::InBitPort ( const std::string &  name,
BaseNetlistBlock parent,
Signal  signal = Signal() 
)

Definition at line 528 of file NetlistPort.cc.

532  : NetlistPort(name, "1", 1, BIT, IN, parent, signal) {
533 }

◆ InBitPort() [2/2]

ProGe::InBitPort::InBitPort ( const std::string &  name,
Signal  signal = Signal() 
)

Definition at line 535 of file NetlistPort.cc.

538  : NetlistPort(name, "1", BIT, IN, signal) {
539 }

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::BIT
@ BIT
One bit.
Definition: ProGeTypes.hh:47
ProGe::NetlistPort::name
std::string name() const
Definition: NetlistPort.cc:283
ProGe::IN
@ IN
Input port.
Definition: ProGeTypes.hh:53