Add assertion on mix of combo/posedge (#3170)

This commit is contained in:
Wilson Snyder 2021-10-13 21:29:14 -04:00
parent fc80ace6e4
commit 749a66b7a2
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ private:
"Unsupported: Complicated event expression in sensitive activity list");
return nullptr;
}
UASSERT_OBJ(nodep->varrefp(), nodep, "No clock found on sense item");
AstVarScope* clkvscp = nodep->varrefp()->varScopep();
if (nodep->edgeType() == VEdgeType::ET_POSEDGE) {
AstVarScope* lastVscp = getCreateLastClk(clkvscp);