CIRCT
20.0.0git
|
This holds the name and type that describes the module's ports. More...
#include <FIRRTLOpInterfaces.h>
Public Member Functions | |
StringRef | getName () const |
bool | isOutput () const |
Return true if this is a simple output-only port. More... | |
bool | isInput () const |
Return true if this is a simple input-only port. More... | |
bool | isInOut () const |
Return true if this is an inout port. More... | |
PortInfo (StringAttr name, Type type, Direction dir, StringAttr symName={}, std::optional< Location > location={}, std::optional< AnnotationSet > annos={}) | |
Default constructors. More... | |
PortInfo (StringAttr name, Type type, Direction dir, hw::InnerSymAttr sym, Location loc, AnnotationSet annos) | |
Public Attributes | |
StringAttr | name |
Type | type |
Direction | direction |
hw::InnerSymAttr | sym = {} |
Location | loc = UnknownLoc::get(type.getContext()) |
AnnotationSet | annotations = AnnotationSet(type.getContext()) |
This holds the name and type that describes the module's ports.
Definition at line 41 of file FIRRTLOpInterfaces.h.
|
inline |
Default constructors.
Definition at line 65 of file FIRRTLOpInterfaces.h.
|
inline |
Definition at line 76 of file FIRRTLOpInterfaces.h.
|
inline |
Definition at line 49 of file FIRRTLOpInterfaces.h.
References name.
|
inline |
Return true if this is an inout port.
This will be true if the port contains either bi-directional signals or analog types. Non-HW types (e.g., ref types) are never considered InOut.
Definition at line 62 of file FIRRTLOpInterfaces.h.
References circt::firrtl::isTypeInOut(), and type.
Referenced by isInput(), and isOutput().
|
inline |
Return true if this is a simple input-only port.
If you want the direction of the port, use the direction
parameter.
Definition at line 57 of file FIRRTLOpInterfaces.h.
References direction, circt::firrtl::In, and isInOut().
|
inline |
Return true if this is a simple output-only port.
If you want the direction of the port, use the direction
parameter.
Definition at line 53 of file FIRRTLOpInterfaces.h.
References direction, isInOut(), and circt::firrtl::Out.
AnnotationSet circt::firrtl::PortInfo::annotations = AnnotationSet(type.getContext()) |
Definition at line 47 of file FIRRTLOpInterfaces.h.
Direction circt::firrtl::PortInfo::direction |
Definition at line 44 of file FIRRTLOpInterfaces.h.
Referenced by isInput(), and isOutput().
Location circt::firrtl::PortInfo::loc = UnknownLoc::get(type.getContext()) |
Definition at line 46 of file FIRRTLOpInterfaces.h.
Referenced by computeLoweringImpl().
StringAttr circt::firrtl::PortInfo::name |
Definition at line 42 of file FIRRTLOpInterfaces.h.
Referenced by computeLoweringImpl(), and getName().
hw::InnerSymAttr circt::firrtl::PortInfo::sym = {} |
Definition at line 45 of file FIRRTLOpInterfaces.h.
Referenced by computeLoweringImpl().
Type circt::firrtl::PortInfo::type |
Definition at line 43 of file FIRRTLOpInterfaces.h.
Referenced by fsm.MachineOp::__init__(), esiaccel.types.WritePort::__serialize_msg(), hw.HWModuleOp::add_entry_block(), esiaccel.types.Port::connect(), hw.HWModuleOp::input_indices(), fsm.MachineOp::instantiate(), isInOut(), hw.HWModuleOp::outputs(), and esiaccel.types.ReadPort::read().