Go to the documentation of this file.
35 #ifndef TTA_NETLIST_PORT_HH
36 #define TTA_NETLIST_PORT_HH
75 const std::string&
name,
83 const std::string&
name,
90 const std::string&
name,
97 const std::string&
name,
107 std::string newName=
"")
const;
110 std::string
name()
const;
111 void rename(
const std::string& newname);
161 const std::string&
name,
168 const std::string&
name,
174 const std::string&
name,
184 const std::string&
name,
188 const std::string&
name,
196 const std::string&
name,
203 const std::string&
name,
209 const std::string&
name,
219 const std::string&
name,
223 const std::string&
name,
bool hasStaticValue_
Indicates if port is connected to vcc or gnd.
DataType dataType_
Data type of the port.
std::string widthFormula_
Formula for the width of the port.
@ GND
All port signals set to low.
NetlistPort(const std::string &name, const std::string &widthFormula, int realWidth, DataType dataType, Direction direction, BaseNetlistBlock &parent, Signal signal=Signal())
const BaseNetlistBlock & parentBlock() const
@ OPEN
Port is left open/unused.
OutBitPort(const std::string &name, BaseNetlistBlock &parent, Signal signal=Signal())
@ BIT_VECTOR
Several bits.
std::string widthFormula() const
Convenience class for output bit ports.
void setDirection(Direction direction)
Direction direction() const
InBitPort(const std::string &name, BaseNetlistBlock &parent, Signal signal=Signal())
void setToStatic(StaticSignal value) const
Direction direction_
Direction of the port.
void assignSignal(Signal signal)
@ VCC
All port signals set to high.
InPort(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, int realWidth, DataType dataType, BaseNetlistBlock &parent, Signal signal=Signal())
StaticSignal staticValue() const
Signal signal_
Assigned port usage.
bool realWidthAvailable() const
NetlistPort * copyTo(BaseNetlistBlock &newParent, std::string newName="") const
Convenience class for input ports.
bool hasParentBlock() const
int realWidth_
Real width of the port.
virtual NetlistPort * clone(bool asMirrored=false) const
DataType dataType() const
std::string name_
Name of the port.
void setParent(BaseNetlistBlock *parent)
void setWidthFormula(const std::string &newFormula)
bool resolveRealWidth(int &width) const
DataType
Data types of hardware ports.
bool hasStaticValue() const
Signal assignedSignal() const
@ MIXED
Port has signals both the low and high states.
BaseNetlistBlock * parentBlock_
The parent netlist block.
void rename(const std::string &newname)
Direction
Direction of the port.
Convenience class for input bit ports.
Convenience class for output ports.
StaticSignal staticValue_
Static signal value.
StaticSignal(State state)