projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9caeadf
)
Fixed complexity of assigning to vectors in constant functions
author
Clifford Wolf
<clifford@clifford.at>
Thu, 1 Oct 2015 10:15:35 +0000
(12:15 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Thu, 1 Oct 2015 10:15:35 +0000
(12:15 +0200)
frontends/ast/simplify.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/simplify.cc
b/frontends/ast/simplify.cc
index 2e6892a82becc3d60099c6c9062e2482a291ee88..861c3bcc0805a3423357741c7162468ef6f35d83 100644
(file)
--- a/
frontends/ast/simplify.cc
+++ b/
frontends/ast/simplify.cc
@@
-2828,6
+2828,9
@@
AstNode *AstNode::eval_const_function(AstNode *fcall)
if (stmt->type == AST_ASSIGN_EQ)
{
+ if (stmt->children.at(0)->type == AST_IDENTIFIER && stmt->children.at(0)->children.size() != 0 &&
+ stmt->children.at(0)->children.at(0)->type == AST_RANGE)
+ stmt->children.at(0)->children.at(0)->replace_variables(variables, fcall);
stmt->children.at(1)->replace_variables(variables, fcall);
while (stmt->simplify(true, false, false, 1, -1, false, true)) { }