aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorJannis Harder <me@jix.one>2022-12-19 16:05:13 +0100
committerGitHub <noreply@github.com>2022-12-19 16:05:13 +0100
commit3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4 (patch)
tree727967084bf0df0e75b4d5572559d0b071fdcaae /frontends
parent69cbef9666a18bb7ce9fc7f6e87083ee12bd3177 (diff)
parentcf3570abde2351ae15892eb7318eccec48582a5d (diff)
downloadyosys-3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4.tar.gz
yosys-3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4.tar.bz2
yosys-3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4.zip
Merge pull request #3467 from jix/fix_cellarray_simplify
simplify: Do not recursively simplify AST_CELL within AST_CELLARRAY
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/simplify.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 349b87578..da7933d2f 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -1607,6 +1607,8 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
break;
if (type == AST_GENBLOCK)
break;
+ if (type == AST_CELLARRAY && children[i]->type == AST_CELL)
+ continue;
if (type == AST_BLOCK && !str.empty())
break;
if (type == AST_PREFIX && i >= 1)