|
CIRCT 22.0.0git
|
An unpacked SystemVerilog type. More...
#include <MooreTypes.h>


Public Member Functions | |
| Domain | getDomain () const |
| Get the value domain of this type. | |
| std::optional< unsigned > | getBitSize () const |
| Get the size of this type in bits. | |
| void | print (mlir::AsmPrinter &odsPrinter) const |
Static Public Member Functions | |
| static bool | classof (Type type) |
| static Type | parse (mlir::AsmParser &odsParser) |
An unpacked SystemVerilog type.
Unpacked types are a second level of types in SystemVerilog. They extend a core unpacked type with a variety of unpacked dimensions, depending on which syntactic construct generated the type (variable or otherwise). The core unpacked types are:
shortreal, real, realtimestring, chandle, eventThe unpacked dimensions are:
[])[x])[x:y])[T] or [*])[$] or [$:x]) Definition at line 101 of file MooreTypes.h.
|
inlinestatic |
Definition at line 103 of file MooreTypes.h.
| std::optional< unsigned > UnpackedType::getBitSize | ( | ) | const |
Get the size of this type in bits.
Returns None if any of the type's dimensions is unsized, associative, or a queue, or the core type itself has no known size.
Definition at line 76 of file MooreTypes.cpp.
References circt::moore::f32.
| Domain UnpackedType::getDomain | ( | ) | const |
Get the value domain of this type.
Definition at line 61 of file MooreTypes.cpp.
References circt::moore::FourValued, and circt::moore::TwoValued.
|
static |
Definition at line 111 of file MooreTypes.cpp.
References parseMooreType().
| void UnpackedType::print | ( | mlir::AsmPrinter & | odsPrinter | ) | const |
Definition at line 118 of file MooreTypes.cpp.
References printMooreType().