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:
parent
5c10d2ee36
commit
76da2fe172
3 changed files with 41 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue