CIRCT
18.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 332 of file FIRRTLTypes.h.
|
inline |
Definition at line 333 of file FIRRTLTypes.h.
|
inline |
Definition at line 340 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 353 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 344 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 348 of file FIRRTLTypes.h.
References direction, isInOut(), and circt::firrtl::Out.
|
inline |
Definition at line 359 of file FIRRTLTypes.h.
|
inline |
Definition at line 355 of file FIRRTLTypes.h.
Direction circt::firrtl::ClassElement::direction |
Definition at line 338 of file FIRRTLTypes.h.
Referenced by circt::firrtl::hash_value(), isInput(), and isOutput().
StringAttr circt::firrtl::ClassElement::name |
Definition at line 336 of file FIRRTLTypes.h.
Referenced by getName(), circt::firrtl::hash_value(), and operator==().
Type circt::firrtl::ClassElement::type |
Definition at line 337 of file FIRRTLTypes.h.
Referenced by fsm.MachineOp::__init__(), hw.HWModuleOp::add_entry_block(), circt::firrtl::hash_value(), hw.HWModuleOp::input_indices(), fsm.MachineOp::instantiate(), isInOut(), operator==(), and hw.HWModuleOp::outputs().