CIRCT
20.0.0git
|
Trait for types which have a width. More...
#include <FIRRTLTypes.h>
Public Member Functions | |
std::optional< int32_t > | getWidth () const |
Return an optional containing the width, if the width is known (or empty if width is unknown). More... | |
bool | hasWidth () const |
Return true if this integer type has a known width. More... | |
Trait for types which have a width.
Users must implement:
Definition at line 270 of file FIRRTLTypes.h.
|
inline |
Return an optional containing the width, if the width is known (or empty if width is unknown).
Definition at line 275 of file FIRRTLTypes.h.
Referenced by circt::firrtl::getBitWidth(), isTypeAllowedForDPI(), and knownWidths().
|
inline |
Return true if this integer type has a known width.
Definition at line 283 of file FIRRTLTypes.h.