Skip to content

Commit

Permalink
Backported fix for br991 from devel branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwhitaker committed Aug 19, 2015
1 parent 8d8cdf7 commit dacd613
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions netlist.cc
Expand Up @@ -2702,10 +2702,11 @@ DelayType NetCase::delay_type() const

for (unsigned idx = 0; idx < nstmts; idx += 1) {
if (!expr(idx)) def_stmt = true;
DelayType dt = stat(idx) ? stat(idx)->delay_type() : NO_DELAY;
if (idx == 0) {
result = stat(idx)->delay_type();
result = dt;
} else {
result = combine_delays(result, stat(idx)->delay_type());
result = combine_delays(result, dt);
}
}

Expand Down Expand Up @@ -2742,6 +2743,7 @@ DelayType NetEvWait::delay_type() const

DelayType NetForever::delay_type() const
{
ivl_assert(*this, statement_);
return statement_->delay_type();
}

Expand All @@ -2764,6 +2766,7 @@ DelayType NetPDelay::delay_type() const

DelayType NetRepeat::delay_type() const
{
ivl_assert(*this, statement_);
return get_loop_delay_type(expr_, statement_);
}

Expand All @@ -2779,5 +2782,6 @@ DelayType NetUTask::delay_type() const

DelayType NetWhile::delay_type() const
{
ivl_assert(*this, proc_);
return get_loop_delay_type(cond_, proc_);
}

0 comments on commit dacd613

Please sign in to comment.