diff --git a/templates/ExprEval.cpp b/templates/ExprEval.cpp index 8eeb248e..7987ce2f 100644 --- a/templates/ExprEval.cpp +++ b/templates/ExprEval.cpp @@ -2568,12 +2568,12 @@ any *ExprEval::hierarchicalSelector(std::vector &select_path, } tmp->Ranges(tmpR); return tmp; - } + } } else if (const array_typespec *ltps = any_cast(object)) { if (const ref_typespec *rt = ltps->Elem_typespec()) { return (typespec *)rt->Actual_typespec(); - } + } } else if (const packed_array_typespec *ltps = any_cast(object)) { if (const ref_typespec *rt = ltps->Elem_typespec()) { @@ -4049,17 +4049,17 @@ expr *ExprEval::reduceExpr(const any *result, bool &invalidValue, int64_t lrv = eval.get_value(invalidValue, lr); rr = reduceExpr(rr, invalidValue, inst, pexpr, muteError); int64_t rrv = eval.get_value(invalidValue, rr); - if (name == "left") { + if (name == "$left") { return lr; - } else if (name == "right") { + } else if (name == "$right") { return rr; - } else if (name == "high") { + } else if (name == "$high") { if (lrv > rrv) { return lr; } else { return rr; } - } else if (name == "low") { + } else if (name == "$low") { if (lrv > rrv) { return rr; } else { diff --git a/templates/vpi_visitor.cpp b/templates/vpi_visitor.cpp index 104a6b4a..e9ee9401 100644 --- a/templates/vpi_visitor.cpp +++ b/templates/vpi_visitor.cpp @@ -30,6 +30,7 @@ #include #include #include +#include static bool showIDs = false; static constexpr int32_t kLevelIndent = 2;