54 socket_(socket), segment_(segment) {
94 if (!hwOp->
isBound(*port))
continue;
95 int operandId = hwOp->
io(*port);
98 if (osalOp.
isNull())
break;
111 if (port->name().size() > 0 && port->name()[0] ==
'r')
virtual bool isInput() const
Operation & operation(const char *name)
virtual Operand & operand(int id) const
virtual ~SocketBusConnCmd()
TTAMachine::Socket * socket_
Socket to connect.
SocketBusConnCmd(TTAMachine::Socket *socket, TTAMachine::Segment *segment)
TTAMachine::Segment * segment_
Bus segment to connect.
virtual HWOperation * operation(const std::string &name) const
virtual int operationCount() const
int io(const FUPort &port) const
const std::string & name() const
bool isBound(const FUPort &port) const
void setDirection(Direction direction)
@ OUTPUT
Data goes from port to bus.
@ INPUT
Data goes from bus to port.
@ UNKNOWN
Unknown direction.
bool isConnectedTo(const Bus &bus) const
void detachBus(Segment &bus)
Direction direction() const
Port * port(int index) const
void attachBus(Segment &bus)