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,
Convenience class for input bit ports.
Convenience class for input ports.
virtual NetlistPort * clone(bool asMirrored=false) const
void setToStatic(StaticSignal value) const
NetlistPort * copyTo(BaseNetlistBlock &newParent, std::string newName="") const
void setParent(BaseNetlistBlock *parent)
DataType dataType_
Data type of the port.
bool resolveRealWidth(int &width) const
BaseNetlistBlock * parentBlock_
The parent netlist block.
void setWidthFormula(const std::string &newFormula)
bool hasStaticValue() const
bool realWidthAvailable() const
std::string widthFormula() const
Signal assignedSignal() const
bool hasParentBlock() const
DataType dataType() const
std::string widthFormula_
Formula for the width of the port.
void setDirection(Direction direction)
int realWidth_
Real width of the port.
bool hasStaticValue_
Indicates if port is connected to vcc or gnd.
StaticSignal staticValue_
Static signal value.
Direction direction_
Direction of the port.
const BaseNetlistBlock & parentBlock() const
Signal signal_
Assigned port usage.
Direction direction() const
std::string name_
Name of the port.
StaticSignal staticValue() const
void rename(const std::string &newname)
void assignSignal(Signal signal)
Convenience class for output bit ports.
Convenience class for output ports.
StaticSignal(State state)
@ OPEN
Port is left open/unused.
@ GND
All port signals set to low.
@ VCC
All port signals set to high.
@ MIXED
Port has signals both the low and high states.
DataType
Data types of hardware ports.
@ BIT_VECTOR
Several bits.
Direction
Direction of the port.