mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 05:13:40 +00:00
After reading the SV spec, using non-standard predict() instead of expect()
This commit is contained in:
parent
721f1f5ecf
commit
d7763634b6
16 changed files with 28 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue