Handle a void function call in the delay type calculation

This commit is contained in:
Cary R 2020-12-27 12:53:29 -08:00
parent cf53584733
commit 5edecab41f
1 changed files with 6 additions and 1 deletions

View File

@ -2974,7 +2974,12 @@ DelayType NetTaskDef::delay_type(bool print_delay) const
DelayType NetUTask::delay_type(bool print_delay) const
{
return task()->task_def()->delay_type(print_delay);
// Is this a void function call in a final block?
if (task()->type() == NetScope::FUNC) {
return NO_DELAY;
} else {
return task()->task_def()->delay_type(print_delay);
}
}
static bool do_expr_event_match(const NetExpr*expr, const NetEvWait*evwt)