Support NBAs in non-inlined functions/tasks (#4496) (#4572)

This commit is contained in:
Krzysztof Bieganski
2023-10-20 20:01:45 -04:00
committed by GitHub
parent c7a0613c57
commit 7b12f6a1dd
11 changed files with 306 additions and 95 deletions
+6 -2
View File
@@ -520,8 +520,12 @@ private:
m_nextDlyp
= VN_CAST(nodep->nextp(), AssignDly); // Next assignment in same block, maybe nullptr.
if (m_cfuncp) {
nodep->v3warn(E_UNSUPPORTED,
"Unsupported: Delayed assignment inside public function/task");
if (!v3Global.rootp()->nbaEventp()) {
nodep->v3warn(
E_NOTIMING,
"Delayed assignment in a non-inlined function/task requires --timing");
}
return;
}
UASSERT_OBJ(m_procp, nodep, "Delayed assignment not under process");
const bool isArray = VN_IS(nodep->lhsp(), ArraySel)