aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-01-05 13:18:58 +0100
committerClifford Wolf <clifford@clifford.at>2017-01-05 13:19:03 +0100
commit2d32c6c4f61052254df32bc7942e4339dd59acaa (patch)
treee9dadf0c0181f5f5ff923ebb18be324a58916e28 /frontends
parent0cac95ea9403befe3dca49621ff577ce13faebf0 (diff)
downloadyosys-2d32c6c4f61052254df32bc7942e4339dd59acaa.tar.gz
yosys-2d32c6c4f61052254df32bc7942e4339dd59acaa.tar.bz2
yosys-2d32c6c4f61052254df32bc7942e4339dd59acaa.zip
Fixed handling of local memories in functions
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/simplify.cc4
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);