mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Fixed handling of local memories in functions
This commit is contained in:
parent
0cac95ea94
commit
2d32c6c4f6
|
@ -2173,7 +2173,7 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto child : decl->children)
|
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;
|
AstNode *wire = nullptr;
|
||||||
|
|
||||||
|
@ -2233,7 +2233,7 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto child : decl->children)
|
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();
|
AstNode *stmt = child->clone();
|
||||||
stmt->replace_ids(prefix, replace_rules);
|
stmt->replace_ids(prefix, replace_rules);
|
||||||
|
|
Loading…
Reference in a new issue