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:
parent
1942327ae2
commit
aeac491cfc
|
|
@ -65,8 +65,11 @@ void PDelays::set_delays(const svector<PExpr*>*del, bool df)
|
||||||
delete_flag_ = 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);
|
NetExpr*dex = expr->elaborate_expr(des, scope, -1, false);
|
||||||
eval_expr(dex);
|
eval_expr(dex);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue