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

Represents a finite word-length bit vector (of four-state values) in SystemC as described in IEEE 1666-2011 §7.9.6. More...

#include <SystemCTypes.h>

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

Public Member Functions

unsigned getWidth ()
 

Static Public Member Functions

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

Static Public Attributes

static constexpr StringLiteral name = "systemc.lv"
 

Detailed Description

Represents a finite word-length bit vector (of four-state values) in SystemC as described in IEEE 1666-2011 §7.9.6.

It is allowed at all places where 'LogicVectorBaseType' is allowed as it inherits and preserved all its functionality as described in IEEE 1666-2011 §7.9.6.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 302 of file SystemCTypes.h.

Member Function Documentation

◆ get()

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

Definition at line 193 of file SystemCTypes.cpp.

References circt::calyx::direction::get(), and width.

◆ getMnemonic()

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

Definition at line 309 of file SystemCTypes.h.

Referenced by customTypeParser().

◆ getWidth()

unsigned LogicVectorType::getWidth ( )

Definition at line 197 of file SystemCTypes.cpp.

Member Data Documentation

◆ name

constexpr StringLiteral circt::systemc::LogicVectorType::name = "systemc.lv"
staticconstexpr

Definition at line 311 of file SystemCTypes.h.


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