aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-08-22 14:46:42 +0200
committerClifford Wolf <clifford@clifford.at>2015-08-22 14:46:42 +0200
commiteb38722e98c0abfe01e4be81547d0d8c8a34801a (patch)
tree8a273812572eda538264a67a4417e342d28f1809
parentc475deec6c69d509ac828cca437e2b9502f7b0c3 (diff)
downloadyosys-eb38722e98c0abfe01e4be81547d0d8c8a34801a.tar.gz
yosys-eb38722e98c0abfe01e4be81547d0d8c8a34801a.tar.bz2
yosys-eb38722e98c0abfe01e4be81547d0d8c8a34801a.zip
Fixed handling of memory read without address
-rw-r--r--frontends/ast/simplify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 5eb173c9a..e588df922 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -1274,7 +1274,7 @@ skip_dynamic_range_lvalue_expansion:;
// found right-hand side identifier for memory -> replace with memory read port
if (stage > 1 && type == AST_IDENTIFIER && id2ast != NULL && id2ast->type == AST_MEMORY && !in_lvalue &&
- children[0]->type == AST_RANGE && children[0]->children.size() == 1) {
+ children.size() == 1 && children[0]->type == AST_RANGE && children[0]->children.size() == 1) {
newNode = new AstNode(AST_MEMRD, children[0]->children[0]->clone());
newNode->str = str;
newNode->id2ast = id2ast;