Class VerilogInterpreter
- java.lang.Object
-
- ru.ispras.verilog.parser.interpreter.VerilogInterpreter
-
public final class VerilogInterpreter extends java.lang.Object
VerilogInterpreter
implements a simple interpreter of Verilog statements.The main purpose of
VerilogInterpreter
is to evaluate constant expressions that include user-defined functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
interpret(VerilogStatement statement, java.util.Map<java.lang.String,ru.ispras.fortress.data.Data> context)
Interprets the given statement in the given context.
-
-
-
Method Detail
-
interpret
public static boolean interpret(VerilogStatement statement, java.util.Map<java.lang.String,ru.ispras.fortress.data.Data> context)
Interprets the given statement in the given context.- Parameters:
statement
- the statement to be interpreted.context
- the values of variables.- Returns:
true
iff the statement has been successfully interpreted.
-
-