From 5edecab41f39887f81921a107de4b52b4deef3f1 Mon Sep 17 00:00:00 2001 From: Cary R Date: Sun, 27 Dec 2020 12:53:29 -0800 Subject: [PATCH] Handle a void function call in the delay type calculation --- netlist.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/netlist.cc b/netlist.cc index 6dc0b5bd2..effde048c 100644 --- a/netlist.cc +++ b/netlist.cc @@ -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)