CIRCT 21.0.0git
|
Bundles represent a collection of channels. More...
#include <Types.h>
Public Types | |
enum | Direction { To , From } |
using | ChannelVector = std::vector< std::tuple< std::string, Direction, const Type * > > |
![]() | |
using | ID = std::string |
Public Member Functions | |
BundleType (const ID &id, const ChannelVector &channels) | |
const ChannelVector & | getChannels () const |
std::ptrdiff_t | getBitWidth () const override |
std::pair< const Type *, Direction > | findChannel (std::string name) const |
![]() | |
Type (const ID &id) | |
virtual | ~Type ()=default |
ID | getID () const |
Protected Attributes | |
ChannelVector | channels |
![]() | |
ID | id |
Bundles represent a collection of channels.
Services exclusively expose bundles (sometimes of just one channel). As such, they are the type of accessible ports on an accelerator, from a host API perspective. TODO: Add a good description of direction?
using esi::BundleType::ChannelVector = std::vector<std::tuple<std::string, Direction, const Type *> > |
|
inline |
Definition at line 57 of file Types.h.
References channels.
Referenced by esi::services::FuncService::Function::toString(), and esi::services::CallService::Callback::toString().
|
inlineoverridevirtual |
|
inline |
Definition at line 54 of file Types.h.
References channels.
Referenced by esi::BundleEngineMap::requestPorts().
|
protected |
Definition at line 65 of file Types.h.
Referenced by findChannel(), and getChannels().