diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-01-05 13:18:58 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-01-05 13:19:03 +0100 |
commit | 2d32c6c4f61052254df32bc7942e4339dd59acaa (patch) | |
tree | e9dadf0c0181f5f5ff923ebb18be324a58916e28 | |
parent | 0cac95ea9403befe3dca49621ff577ce13faebf0 (diff) | |
download | yosys-2d32c6c4f61052254df32bc7942e4339dd59acaa.tar.gz yosys-2d32c6c4f61052254df32bc7942e4339dd59acaa.tar.bz2 yosys-2d32c6c4f61052254df32bc7942e4339dd59acaa.zip |
Fixed handling of local memories in functions
-rw-r--r-- | frontends/ast/simplify.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 0e77df611..de85355b5 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -2173,7 +2173,7 @@ skip_dynamic_range_lvalue_expansion:; } for (auto child : decl->children) - if (child->type == AST_WIRE || child->type == AST_PARAMETER || child->type == AST_LOCALPARAM) + if (child->type == AST_WIRE || child->type == AST_MEMORY || child->type == AST_PARAMETER || child->type == AST_LOCALPARAM) { AstNode *wire = nullptr; @@ -2233,7 +2233,7 @@ skip_dynamic_range_lvalue_expansion:; } for (auto child : decl->children) - if (child->type != AST_WIRE && child->type != AST_PARAMETER && child->type != AST_LOCALPARAM) + if (child->type != AST_WIRE && child->type != AST_MEMORY && child->type != AST_PARAMETER && child->type != AST_LOCALPARAM) { AstNode *stmt = child->clone(); stmt->replace_ids(prefix, replace_rules); |