aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/simplify.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-07-21 13:34:33 +0200
committerClifford Wolf <clifford@clifford.at>2016-07-21 13:34:33 +0200
commitd7763634b68a735443c61aa32918ee0cdd6e9250 (patch)
treed04a1d072d727d0776c42f68668785403cc92bf5 /frontends/ast/simplify.cc
parent721f1f5ecfb6334904f6058d6d376d21b5efc438 (diff)
downloadyosys-d7763634b68a735443c61aa32918ee0cdd6e9250.tar.gz
yosys-d7763634b68a735443c61aa32918ee0cdd6e9250.tar.bz2
yosys-d7763634b68a735443c61aa32918ee0cdd6e9250.zip
After reading the SV spec, using non-standard predict() instead of expect()
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r--frontends/ast/simplify.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index cf84a399c..18a752e06 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -1348,7 +1348,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
}
skip_dynamic_range_lvalue_expansion:;
- if (stage > 1 && (type == AST_ASSERT || type == AST_ASSUME || type == AST_EXPECT) && current_block != NULL)
+ if (stage > 1 && (type == AST_ASSERT || type == AST_ASSUME || type == AST_PREDICT) && current_block != NULL)
{
std::stringstream sstr;
sstr << "$formal$" << filename << ":" << linenum << "$" << (autoidx++);
@@ -1405,7 +1405,7 @@ skip_dynamic_range_lvalue_expansion:;
goto apply_newNode;
}
- if (stage > 1 && (type == AST_ASSERT || type == AST_ASSUME || type == AST_EXPECT) && children.size() == 1)
+ if (stage > 1 && (type == AST_ASSERT || type == AST_ASSUME || type == AST_PREDICT) && children.size() == 1)
{
children.push_back(mkconst_int(1, false, 1));
did_something = true;