summaryrefslogtreecommitdiff
path: root/frontends/ast/ast.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-06-14 20:38:05 +0200
committerClifford Wolf <clifford@clifford.at>2014-06-14 21:00:51 +0200
commit149fe83a8dbe37fecc16326163bbc40400147a9a (patch)
tree7e21abda6373d15b595aed693ab3f112920c5c59 /frontends/ast/ast.h
parent39eb347c67056f9b56ecfdab1704362d4cd276e1 (diff)
improved (fixed) conversion of real values to bit vectors
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r--frontends/ast/ast.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h
index 95f0f142..74a476b5 100644
--- a/frontends/ast/ast.h
+++ b/frontends/ast/ast.h
@@ -244,6 +244,7 @@ namespace AST
// helper functions for real valued const eval
int isConst(); // return '1' for AST_CONSTANT and '2' for AST_REALVALUE
double asReal(bool is_signed);
+ RTLIL::Const realAsConst(int width);
};
// process an AST tree (ast must point to an AST_DESIGN node) and generate RTLIL code