Skip value range processing for parameters with no value ranges.

Classing parameter declarations do not need value range processing,
and in fact it can get in the way.
This commit is contained in:
Stephen Williams 2008-05-17 16:55:00 -07:00
parent eb3dcc2786
commit a5e3d06412
1 changed files with 6 additions and 0 deletions

View File

@ -350,6 +350,12 @@ void NetScope::evaluate_parameter_logic_(Design*des, param_ref_t cur)
expr->set_line(*(*cur).second.expr);
(*cur).second.expr = expr;
// If there are no value ranges to test the value against,
// then we are done.
if ((*cur).second.range == 0) {
return;
}
NetEConst*val = dynamic_cast<NetEConst*>((*cur).second.expr);
ivl_assert(*(*cur).second.expr, (*cur).second.expr);
ivl_assert(*(*cur).second.expr, val);