CIRCT 23.0.0git
Loading...
Searching...
No Matches
Functions
Statements.cpp File Reference
#include "ImportVerilogInternals.h"
#include "circt/Dialect/Moore/MooreOps.h"
#include "circt/Dialect/Moore/MooreTypes.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/Diagnostics.h"
#include "slang/ast/Compilation.h"
#include "slang/ast/SemanticFacts.h"
#include "slang/ast/Statement.h"
#include "slang/ast/SystemSubroutine.h"
#include "slang/ast/expressions/MiscExpressions.h"
#include "slang/ast/symbols/CompilationUnitSymbols.h"
#include "slang/ast/symbols/InstanceSymbols.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for Statements.cpp:

Go to the source code of this file.

Functions

static std::string buildPrintTimeScaleMessage (Context &context, std::span< const slang::ast::Expression *const > args)
 Build the message printed by the $printtimescale system task.
 
static std::array< Value, 4 > getDefaultTimeFormatValues (OpBuilder &builder, Location loc, MLIRContext *context)
 
static FailureOr< Value > getRuntimeSizeAtLevel (Context &context, Location loc, const slang::ast::ForeachLoopStatement &stmt, uint32_t level, const moore::IntType &idxType)
 

Function Documentation

◆ buildPrintTimeScaleMessage()

static std::string buildPrintTimeScaleMessage ( Context context,
std::span< const slang::ast::Expression *const >  args 
)
static

Build the message printed by the $printtimescale system task.

If a module instance or $unit is passed as argument, report that scope's time scale; otherwise report the time scale of the current scope.

Definition at line 32 of file Statements.cpp.

References context.

◆ getDefaultTimeFormatValues()

static std::array< Value, 4 > getDefaultTimeFormatValues ( OpBuilder &  builder,
Location  loc,
MLIRContext *  context 
)
static

Definition at line 63 of file Statements.cpp.

References context.

Referenced by circt::ImportVerilog::Context::ensureTimeFormatGlobal().

◆ getRuntimeSizeAtLevel()

static FailureOr< Value > getRuntimeSizeAtLevel ( Context context,
Location  loc,
const slang::ast::ForeachLoopStatement &  stmt,
uint32_t  level,
const moore::IntType &  idxType 
)
static

Definition at line 81 of file Statements.cpp.

References context, and circt::ImportVerilog::getSelectIndex().