CIRCT
20.0.0git
|
#include <FIRRTLTypes.h>
Public Member Functions | |
ClassElement (StringAttr name, Type type, Direction direction) | |
StringRef | getName () const |
bool | isInput () const |
Return true if this is a simple output-only element. More... | |
bool | isOutput () const |
Return true if this is a simple input-only element. More... | |
bool | isInOut () const |
Return true if this is an inout port. More... | |
bool | operator== (const ClassElement &rhs) const |
bool | operator!= (const ClassElement &rhs) const |
Public Attributes | |
StringAttr | name |
Type | type |
Direction | direction |
Definition at line 337 of file FIRRTLTypes.h.
|
inline |
Definition at line 338 of file FIRRTLTypes.h.
|
inline |
Definition at line 345 of file FIRRTLTypes.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 358 of file FIRRTLTypes.h.
References circt::firrtl::isTypeInOut(), and type.
Referenced by isInput(), and isOutput().
|
inline |
Return true if this is a simple output-only element.
If you want the direction of the port, use the direction
field directly.
Definition at line 349 of file FIRRTLTypes.h.
References direction, circt::firrtl::In, and isInOut().
|
inline |
Return true if this is a simple input-only element.
If you want the direction of the port, use the direction
field directly.
Definition at line 353 of file FIRRTLTypes.h.
References direction, isInOut(), and circt::firrtl::Out.
|
inline |
Definition at line 364 of file FIRRTLTypes.h.
|
inline |
Definition at line 360 of file FIRRTLTypes.h.
Direction circt::firrtl::ClassElement::direction |
Definition at line 343 of file FIRRTLTypes.h.
Referenced by circt::firrtl::hash_value(), isInput(), and isOutput().
StringAttr circt::firrtl::ClassElement::name |
Definition at line 341 of file FIRRTLTypes.h.
Referenced by getName(), circt::firrtl::hash_value(), and operator==().
Type circt::firrtl::ClassElement::type |
Definition at line 342 of file FIRRTLTypes.h.
Referenced by fsm.MachineOp::__init__(), esiaccel.types.WritePort::__serialize_msg(), hw.HWModuleOp::add_entry_block(), esiaccel.types.Port::connect(), circt::firrtl::hash_value(), hw.HWModuleOp::input_indices(), fsm.MachineOp::instantiate(), isInOut(), operator==(), hw.HWModuleOp::outputs(), and esiaccel.types.ReadPort::read().