From: Clifford Wolf Date: Thu, 5 Jan 2017 12:18:58 +0000 (+0100) Subject: Fixed handling of local memories in functions X-Git-Tag: yosys-0.8~539 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d32c6c4f61052254df32bc7942e4339dd59acaa;p=yosys.git Fixed handling of local memories in functions --- 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);