|
CIRCT 22.0.0git
|
This holds the name, type, direction of a module's ports. More...
#include <PortImplementation.h>


Public Member Functions | |
| StringRef | getName () const |
| bool | isInput () const |
| bool | isOutput () const |
| bool | isInOut () const |
| ssize_t | getId () const |
| Return a unique numeric identifier for this port. | |
| InnerSymAttr | getSym () const |
| void | setSym (InnerSymAttr sym, MLIRContext *ctx) |
| StringRef | getVerilogName () const |
Public Attributes | |
| size_t | argNum = ~0U |
| This is the argument index or the result index depending on the direction. | |
| DictionaryAttr | attrs = {} |
| The optional symbol for this port. | |
| LocationAttr | loc = {} |
Public Attributes inherited from circt::hw::ModulePort | |
| mlir::StringAttr | name |
| mlir::Type | type |
| Direction | dir |
Additional Inherited Members | |
Public Types inherited from circt::hw::ModulePort | |
| enum | Direction { Input , Output , InOut } |
This holds the name, type, direction of a module's ports.
Definition at line 24 of file PortImplementation.h.
|
inline |
Return a unique numeric identifier for this port.
Definition at line 40 of file PortImplementation.h.
References argNum, and isOutput().
|
inline |
Definition at line 34 of file PortImplementation.h.
References circt::hw::ModulePort::name.
Referenced by circt::msft::getValueName().
| hw::InnerSymAttr hw::PortInfo::getSym | ( | ) | const |
Definition at line 25 of file HWOpInterfaces.cpp.
Referenced by circt::hw::operator<<().
| StringRef hw::PortInfo::getVerilogName | ( | ) | const |
Definition at line 46 of file HWOpInterfaces.cpp.
|
inline |
Definition at line 37 of file PortImplementation.h.
References circt::hw::ModulePort::dir, and circt::hw::ModulePort::InOut.
|
inline |
Definition at line 35 of file PortImplementation.h.
References circt::hw::ModulePort::dir, and circt::hw::ModulePort::Input.
|
inline |
Definition at line 36 of file PortImplementation.h.
References circt::hw::ModulePort::dir, and circt::hw::ModulePort::Output.
Referenced by getId().
| void hw::PortInfo::setSym | ( | InnerSymAttr | sym, |
| MLIRContext * | ctx | ||
| ) |
Definition at line 32 of file HWOpInterfaces.cpp.
| size_t circt::hw::PortInfo::argNum = ~0U |
This is the argument index or the result index depending on the direction.
"0" for an output means the first output, "0" for a in/inout means the first argument.
Definition at line 28 of file PortImplementation.h.
Referenced by getId(), getMachinePortInfo(), and circt::hw::operator<<().
| DictionaryAttr circt::hw::PortInfo::attrs = {} |
The optional symbol for this port.
Definition at line 31 of file PortImplementation.h.
Referenced by circt::hw::operator<<().
| LocationAttr circt::hw::PortInfo::loc = {} |
Definition at line 32 of file PortImplementation.h.
Referenced by circt::hw::PortConverterImpl::createNewInput(), circt::hw::PortConverterImpl::createNewOutput(), and circt::hw::operator<<().