3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 14:13:23 +00:00

improved const function support

This commit is contained in:
Clifford Wolf 2014-06-06 22:55:02 +02:00
parent 5c10d2ee36
commit 76da2fe172
3 changed files with 41 additions and 5 deletions

View file

@ -202,6 +202,7 @@ namespace AST
// additional functionality for evaluating constant functions
struct varinfo_t { RTLIL::Const val; int offset; bool is_signed; };
bool has_const_only_constructs();
void replace_variables(std::map<std::string, varinfo_t> &variables, AstNode *fcall);
AstNode *eval_const_function(AstNode *fcall);