diff options
author | clairexen <claire@symbioticeda.com> | 2020-08-18 17:37:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 17:37:11 +0200 |
commit | a9681f4e0648046fcef5c2e11165cc2e8aa5acf7 (patch) | |
tree | 27eedc68efef3e8cec0fe91a0085c5b98e5a7093 /frontends/ast/ast.h | |
parent | fce5f02a9d0ee4eff9d5622dbba18f9ab4a344b4 (diff) | |
parent | c3e95eb1abb35fff98111b3a98e2fa7766754552 (diff) | |
download | yosys-a9681f4e0648046fcef5c2e11165cc2e8aa5acf7.tar.gz yosys-a9681f4e0648046fcef5c2e11165cc2e8aa5acf7.tar.bz2 yosys-a9681f4e0648046fcef5c2e11165cc2e8aa5acf7.zip |
Merge pull request #2317 from zachjs/expand-genblock
Fix generate scoping issues
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r-- | frontends/ast/ast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h index 9a5aa15f9..203b50021 100644 --- a/frontends/ast/ast.h +++ b/frontends/ast/ast.h @@ -250,7 +250,7 @@ namespace AST // 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); 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); + 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); void mem2reg_as_needed_pass1(dict<AstNode*, pool<std::string>> &mem2reg_places, dict<AstNode*, uint32_t> &mem2reg_flags, dict<AstNode*, uint32_t> &proc_flags, uint32_t &status_flags); |