3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-23 20:58:55 +00:00

Implemented basic real arithmetic

This commit is contained in:
Clifford Wolf 2014-06-14 08:51:22 +02:00
parent 9dd16fa41c
commit 442a8e2875
3 changed files with 51 additions and 6 deletions

View file

@ -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