Fix is probably to mark as a clock

This commit is contained in:
Todd Strader
2020-02-24 06:36:13 -05:00
parent db6ecbd57e
commit 120f62fe85
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -353,7 +353,8 @@ class ProtectVisitor : public AstNVisitor {
nodep->v3error("Unsupported: unpacked arrays with protect-lib on "<<nodep->prettyNameQ());
}
if (nodep->direction() == VDirection::INPUT) {
if (nodep->isUsedClock()) {
if (nodep->isUsedClock()
|| nodep->attrClocker() == VVarAttrClocker::CLOCKER_YES) {
handleClock(nodep);
} else {
handleDataInput(nodep);