diff options
author | whitequark <whitequark@whitequark.org> | 2021-01-01 09:32:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 09:32:26 +0000 |
commit | bc2de4567c46c555c453061b7e24db695a7ae62b (patch) | |
tree | b324d9f5c9558411846741fac6c3049970f469f8 /frontends/ast/ast.h | |
parent | 1a80194cd30adea054da17ebecfcbd921b34aeb5 (diff) | |
parent | 2085d9a55d38f28551739d63bede29d93edaf578 (diff) | |
download | yosys-bc2de4567c46c555c453061b7e24db695a7ae62b.tar.gz yosys-bc2de4567c46c555c453061b7e24db695a7ae62b.tar.bz2 yosys-bc2de4567c46c555c453061b7e24db695a7ae62b.zip |
Merge pull request #2518 from zachjs/recursion
verilog: improved support for recursive functions
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r-- | frontends/ast/ast.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h index 1b8ed22ca..907392166 100644 --- a/frontends/ast/ast.h +++ b/frontends/ast/ast.h @@ -250,6 +250,7 @@ namespace AST // simplify() creates a simpler AST by unrolling for-loops, expanding generate blocks, etc. // it also sets the id2ast pointers so that identifier lookups are fast in genRTLIL() bool simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, int width_hint, bool sign_hint, bool in_param); + void replace_result_wire_name_in_function(const std::string &from, const std::string &to); AstNode *readmem(bool is_readmemh, std::string mem_filename, AstNode *memory, int start_addr, int finish_addr, bool unconditional_init); void expand_genblock(std::string index_var, std::string prefix, std::map<std::string, std::string> &name_map, bool original_scope = true); void replace_ids(const std::string &prefix, const std::map<std::string, std::string> &rules); @@ -264,6 +265,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(bool &recommend_const_eval); + bool has_const_only_constructs(std::set<std::string>& visited, bool &recommend_const_eval); void replace_variables(std::map<std::string, varinfo_t> &variables, AstNode *fcall); AstNode *eval_const_function(AstNode *fcall); bool is_simple_const_expr(); |