aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r--frontends/ast/ast.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h
index aeb56e352..95f0f142f 100644
--- a/frontends/ast/ast.h
+++ b/frontends/ast/ast.h
@@ -240,6 +240,10 @@ namespace AST
RTLIL::Const asAttrConst();
RTLIL::Const asParaConst();
bool asBool();
+
+ // helper functions for real valued const eval
+ int isConst(); // return '1' for AST_CONSTANT and '2' for AST_REALVALUE
+ double asReal(bool is_signed);
};
// process an AST tree (ast must point to an AST_DESIGN node) and generate RTLIL code