Support inout clocking items (#5160)

This commit is contained in:
Arkadiusz Kozdra
2024-06-07 08:30:58 -04:00
committed by GitHub
parent 3f886f7c61
commit 1dbf1be3e6
9 changed files with 116 additions and 23 deletions
+4
View File
@@ -50,6 +50,10 @@ class LinkLValueVisitor final : public VNVisitor {
// so it is needed to check only if m_setContinuously is true
if (m_setStrengthSpecified) nodep->varp()->hasStrengthAssignment(true);
}
if (const AstClockingItem* itemp = VN_CAST(nodep->varp()->backp(), ClockingItem)) {
UINFO(5, "ClkOut " << nodep << endl);
if (itemp->outputp()) nodep->varp(itemp->outputp()->varp());
}
if (m_setForcedByCode) {
nodep->varp()->setForcedByCode();
} else if (!nodep->varp()->isFuncLocal() && nodep->varp()->isReadOnly()) {