Some delay expressions need to probe their width (ternary)

The ternary operator requires that the expression width be defined.
This requires that the delay expression has test_width() run on it.
This commit is contained in:
Cary R 2009-06-05 13:36:20 -07:00 committed by Stephen Williams
parent 1942327ae2
commit aeac491cfc
1 changed files with 4 additions and 1 deletions

View File

@ -65,8 +65,11 @@ void PDelays::set_delays(const svector<PExpr*>*del, bool df)
delete_flag_ = df;
}
static NetExpr*calculate_val(Design*des, NetScope*scope, const PExpr*expr)
static NetExpr*calculate_val(Design*des, NetScope*scope, PExpr*expr)
{
ivl_variable_type_t tmp_type = IVL_VT_NO_TYPE;
bool tmp_flag = false;
expr->test_width(des, scope, 0, 0, tmp_type, tmp_flag);
NetExpr*dex = expr->elaborate_expr(des, scope, -1, false);
eval_expr(dex);