CIRCT 22.0.0git
|
#include "ImportVerilogInternals.h"
#include "slang/ast/EvalContext.h"
#include "slang/ast/SystemSubroutine.h"
#include "slang/syntax/AllSyntax.h"
Go to the source code of this file.
Functions | |
static FVInt | convertSVIntToFVInt (const slang::SVInt &svint) |
Convert a Slang SVInt to a CIRCT FVInt . | |
static Value | getSelectIndex (OpBuilder &builder, Location loc, Value index, const slang::ConstantRange &range) |
Map an index into an array, with bounds range , to a bit offset of the underlying bit storage. | |
|
static |
Convert a Slang SVInt
to a CIRCT FVInt
.
Definition at line 19 of file Expressions.cpp.
Referenced by circt::ImportVerilog::Context::materializeSVInt().
|
static |
Map an index into an array, with bounds range
, to a bit offset of the underlying bit storage.
This is a dynamic version of slang::ConstantRange::translateIndex
.
Definition at line 34 of file Expressions.cpp.