CIRCT  20.0.0git
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
circt::systemc::UIntType Class Reference

Represents a limited word-length unsigned integer in SystemC as described in IEEE 1666-2011 §7.5.5. More...

#include <SystemCTypes.h>

Inheritance diagram for circt::systemc::UIntType:
Inheritance graph
[legend]
Collaboration diagram for circt::systemc::UIntType:
Collaboration graph
[legend]

Public Member Functions

unsigned getWidth ()
 

Static Public Member Functions

static UIntType get (MLIRContext *context, unsigned width)
 
static constexpr StringLiteral getMnemonic ()
 

Static Public Attributes

static constexpr StringLiteral name = "systemc.uint"
 

Detailed Description

Represents a limited word-length unsigned integer in SystemC as described in IEEE 1666-2011 §7.5.5.

It is allowed at all places where 'IntBaseType' is allowed as it inherits and preserved all its functionality as described in IEEE 1666-2011 §7.5.5.1. The difference is that the bit-width has to be passed as a template argument and is thus known at compile-time.

Definition at line 140 of file SystemCTypes.h.

Member Function Documentation

◆ get()

UIntType UIntType::get ( MLIRContext *  context,
unsigned  width 
)
static

Definition at line 1295 of file FIRRTLTypes.cpp.

References circt::calyx::direction::get().

◆ getMnemonic()

static constexpr StringLiteral circt::systemc::UIntType::getMnemonic ( )
inlinestaticconstexpr

Definition at line 146 of file SystemCTypes.h.

Referenced by customTypeParser().

◆ getWidth()

unsigned UIntType::getWidth ( )

Definition at line 156 of file SystemCTypes.cpp.

Member Data Documentation

◆ name

constexpr StringLiteral circt::systemc::UIntType::name = "systemc.uint"
staticconstexpr

Definition at line 148 of file SystemCTypes.h.


The documentation for this class was generated from the following files: